Skip to content

Commit

Permalink
added spiral
Browse files Browse the repository at this point in the history
  • Loading branch information
lukasc-ubc committed Dec 11, 2023
1 parent 22667c5 commit dc4258d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
Binary file modified submissions/EBeam_LukasChrostowski_MZI.oas
Binary file not shown.
10 changes: 4 additions & 6 deletions submissions/KLayout Python/EBeam_LukasChrostowski_MZI.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@

tech_name = 'EBeam'

if SiEPIC.__version__ < '0.5.1':
raise Exception("Errors", "This example requires SiEPIC-Tools version 0.5.1 or greater.")
if SiEPIC.__version__ < '0.5.4':
raise Exception("Errors", "This example requires SiEPIC-Tools version 0.5.4 or greater.")

'''
Create a new layout using the EBeam technology,
Expand Down Expand Up @@ -100,7 +100,7 @@
instGC2 = cell.insert(CellInstArray(cell_ebeam_gc.cell_index(), t))

# automated test label
text = Text ("opt_in_TE_1550_device_%s_MZI1" % designer_name, t)
text = Text ("opt_in_TE_1550_device_%s_MZI2" % designer_name, t)
cell.shapes(ly.layer(ly.TECHNOLOGY['Text'])).insert(text).text_size = 5/dbu

# Y branches:
Expand All @@ -116,7 +116,6 @@
connect_pins_with_waveguide(instY1, 'opt2', instY2, 'opt3', waveguide_type=waveguide_type)
connect_pins_with_waveguide(instY1, 'opt3', instY2, 'opt2', waveguide_type=waveguide_type,turtle_B=[25,-90])

'''
# 3rd MZI, with a very long delay line
cell_ebeam_delay = ly.create_cell('spiral_paperclip', 'EBeam_Beta',
{'waveguide_type':waveguide_type_delay,
Expand All @@ -129,7 +128,7 @@
instGC2 = cell.insert(CellInstArray(cell_ebeam_gc.cell_index(), t))

# automated test label
text = Text ("opt_in_TE_1550_device_%s_MZI2" % designer_name, t)
text = Text ("opt_in_TE_1550_device_%s_MZI3" % designer_name, t)
cell.shapes(ly.layer(ly.TECHNOLOGY['Text'])).insert(text).text_size = 5/dbu

# Y branches:
Expand All @@ -148,7 +147,6 @@
connect_pins_with_waveguide(instY1, 'opt2', instY2, 'opt3', waveguide_type=waveguide_type)
connect_pins_with_waveguide(instY2, 'opt2', instSpiral, 'optA', waveguide_type=waveguide_type)
connect_pins_with_waveguide(instY1, 'opt3', instSpiral, 'optB', waveguide_type=waveguide_type,turtle_B=[5,-90])
'''

# Zoom out
zoom_out(cell)
Expand Down

0 comments on commit dc4258d

Please sign in to comment.