Skip to content

Commit

Permalink
SBend fix
Browse files Browse the repository at this point in the history
Former-commit-id: f0c9525
  • Loading branch information
lukasc-ubc committed Feb 28, 2020
1 parent f46514d commit f21bb47
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -596,8 +596,8 @@ class Waveguide_SBend(pya.PCellDeclarationHelper):
w = self.wg_width / dbu
r = self.radius / dbu
h = self.height / dbu

waveguide_length = layout_waveguide_sbend(self.cell, LayerSiN, pya.DPoint(0,0), w, r, h, length, None) * dbu
waveguide_length = layout_waveguide_sbend(self.cell, LayerSiN, pya.Trans(Trans.R0, 0,0), w, r, h, length) * dbu

from SiEPIC._globals import PIN_LENGTH as pin_length

Expand Down Expand Up @@ -1637,7 +1637,7 @@ class contra_directional_coupler(pya.PCellDeclarationHelper):
sbend_r = 25000; sbend_length = 15000
sbend_offset= 2*port_w + port_w - (w1+w2)/2 - int(round(self.gap/dbu))
taper_length = 20*max(abs(w1-port_w), abs(w2-port_w))

t = Trans(Trans.R180, 0,y_offset_top)
layout_waveguide_sbend(self.cell, LayerSiN, t, w1, sbend_r, sbend_offset, sbend_length)
t = Trans(Trans.R0, -sbend_length-taper_length,y_offset_top-sbend_offset)
Expand Down

0 comments on commit f21bb47

Please sign in to comment.