Skip to content

Commit

Permalink
EBeam-dev lib name fix on pcells
Browse files Browse the repository at this point in the history
  • Loading branch information
mustafacc committed Sep 14, 2018
1 parent 10a42c6 commit 4d87f80
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
# [email protected]
# September 2018

# Uncomment line 260 to enable path_to_waveguide, or just do it on your own.
# Uncomment line 263 to enable path_to_waveguide, or just do it on your own.


# Import KLayout-Python API
Expand All @@ -46,7 +46,7 @@ class parameters():
# parameter to sweep

# number of devices (i.e. length of this array) MUST BE EVEN as this is interleaved routing configuration!
parameterToSweep = linspace_without_numpy(1000,3000,100)
parameterToSweep = linspace_without_numpy(1000,2000,50)
parameterName = 'N'

# contraDC device parameters (refer to PCell definition)
Expand All @@ -68,13 +68,13 @@ class parameters():
wg_bend_radius = 5 # waveguide routes bend radius
bezier = 1 # Use adiabatic bezier bends (if 1)
bezier_N = 0.2 # Bezier bend parameter
device_spacing = 10 # spacing between devices
wg_width = 0.5 # waveguide routes width
device_spacing = 7.3 # spacing between devices
wg_width = 1 # waveguide routes width
taper_L = sbend_L # keep this relation!
GC_pitch = 127 # spacing between grating couplers array (for a single device)

wg_pitch = 3 # spacing between waveguides ( keep > 2 microns to minimize cross coupling)
route_down = -200 # FIXIT gonna define in a sec
wg_pitch = 13 # spacing between waveguides ( keep > 2 microns to minimize cross coupling)
route_down = -153-wg_bend_radius # FIXIT gonna define in a sec
route_up = 200 # FIXIT gonna define in a sec


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1363,8 +1363,8 @@ class DoubleBus_Ring(PCellDeclarationHelper):
wg2 = Box(0, y_offset-w/2, w+2*r, y_offset+w/2)
shapes(LayerSiN).insert(wg2)

from SiEPIC._globals import PIN_LENGTH as pin_length
# Create the pins, as short paths:
pin_length = PIN_LENGTH # database units, = 0.2 microns

pin = Path([Point(-pin_length/2, 0), Point(pin_length/2, 0)], w)
shapes(LayerPinRecN).insert(pin)
Expand Down Expand Up @@ -1470,9 +1470,9 @@ class TestStruct_DoubleBus_Ring(PCellDeclarationHelper):



lib = Library.library_by_name("SiEPIC-EBeam-dev")
lib = Library.library_by_name("EBeam-dev")
if lib == None:
raise Exception("Unknown lib 'SiEPIC-EBeam PCells'")
raise Exception("Unknown lib 'EBeam-dev'")

pcell_decl = lib.layout().pcell_declaration("DoubleBus_Ring");
if pcell_decl == None:
Expand Down Expand Up @@ -1599,7 +1599,7 @@ class TestStruct_DoubleBus_Ring2(PCellDeclarationHelper):
g = self.g
y_ring = 127*3/2+r

pcell = ly.create_cell("DoubleBus_Ring", "SiEPIC-EBeam PCells", {"r": r, "w": wg_width, "g": g, "silayer": LayerSi, "devrec": self.devrec, "pinrec": self.pinrec })
pcell = ly.create_cell("DoubleBus_Ring", "EBeam-dev", {"r": r, "w": wg_width, "g": g, "silayer": LayerSi, "devrec": self.devrec, "pinrec": self.pinrec })
print( "pcell: %s, %s" \
% (pcell.cell_index(), ly.cell_name(pcell.cell_index()) ) )
t = Trans(Trans.R270, 10 / dbu, y_ring / dbu)
Expand Down

0 comments on commit 4d87f80

Please sign in to comment.