Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions cspdk/si220/cband/cells/containers.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
pack_doe_grid = gf.c.pack_doe_grid


@gf.cell
@gf.cell(tags={"type": "containers"})
def add_fiber_array(
component: ComponentSpec = "straight",
grating_coupler=gc,
Expand Down Expand Up @@ -88,7 +88,7 @@ def add_fiber_array(
)


@gf.cell
@gf.cell(tags={"type": "containers"})
def add_fiber_single(
component: ComponentSpec = "straight",
grating_coupler=gc,
Expand Down Expand Up @@ -168,7 +168,7 @@ def add_fiber_single(
)


@gf.cell
@gf.cell(tags={"type": "containers"})
def add_pads_top(
component: ComponentSpec = "straight_metal",
port_names: Strs | None = None,
Expand Down
6 changes: 3 additions & 3 deletions cspdk/si220/cband/cells/couplers.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
from cspdk.si220.cband.tech import TECH


@gf.cell
@gf.cell(tags={"type": "couplers"})
def coupler(length: float = 14.5, gap: float = TECH.gap_strip) -> gf.Component:
"""Returns Symmetric coupler.

Expand All @@ -24,7 +24,7 @@ def coupler(length: float = 14.5, gap: float = TECH.gap_strip) -> gf.Component:
)


@gf.cell
@gf.cell(tags={"type": "couplers"})
def coupler_rib(length: float = 20, gap: float = TECH.gap_rib) -> gf.Component:
"""Returns Symmetric coupler.

Expand All @@ -42,7 +42,7 @@ def coupler_rib(length: float = 20, gap: float = TECH.gap_rib) -> gf.Component:
)


@gf.cell
@gf.cell(tags={"type": "couplers"})
def coupler_ring(
length_x: float = 4,
gap: float = TECH.gap_strip,
Expand Down
10 changes: 5 additions & 5 deletions cspdk/si220/cband/cells/die_with_pads.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
from cspdk.si220.cband.tech import LAYER


@gf.cell
@gf.cell(tags={"type": "die"})
def compass(
size: Size = (4, 2),
layer: LayerSpec = "PAD",
Expand Down Expand Up @@ -41,7 +41,7 @@ def compass(
)


@gf.cell
@gf.cell(tags={"type": "die"})
def rectangle(
size: Size = (4, 2),
layer: LayerSpec = "PAD",
Expand All @@ -67,7 +67,7 @@ def rectangle(
)


@gf.cell
@gf.cell(tags={"type": "die"})
def pad(
size: tuple[float, float] = (90.0, 90.0),
layer: LayerSpec = "PAD",
Expand All @@ -93,7 +93,7 @@ def pad(
)


@gf.cell
@gf.cell(tags={"type": "die"})
def die(size: tuple[float, float] = (16000.0, 1 * 3000.0)) -> gf.Component:
"""A die."""
c = gf.Component()
Expand All @@ -103,7 +103,7 @@ def die(size: tuple[float, float] = (16000.0, 1 * 3000.0)) -> gf.Component:
return c


@gf.cell
@gf.cell(tags={"type": "die"})
def die_with_pads(
size: tuple[float, float] = (11470.0, 4900.0),
ngratings: int = 14,
Expand Down
6 changes: 3 additions & 3 deletions cspdk/si220/cband/cells/fixed.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,13 @@
################


@gf.cell
@gf.cell(tags={"type": "fixed"})
def heater() -> gf.Component:
"""Heater fixed cell."""
return gf.import_gds(PATH.gds / "Heater.gds")


@gf.cell
@gf.cell(tags={"type": "fixed"})
def crossing_rib() -> gf.Component:
"""SOI220nm_1550nm_TE_RIB_Waveguide_Crossing fixed cell."""
c = gf.import_gds(PATH.gds / "SOI220nm_1550nm_TE_RIB_Waveguide_Crossing.gds")
Expand All @@ -36,7 +36,7 @@ def crossing_rib() -> gf.Component:
return c


@gf.cell
@gf.cell(tags={"type": "fixed"})
def crossing() -> gf.Component:
"""SOI220nm_1550nm_TE_STRIP_Waveguide_Crossing fixed cell."""
c = gf.import_gds(PATH.gds / "SOI220nm_1550nm_TE_STRIP_Waveguide_Crossing.gds")
Expand Down
4 changes: 2 additions & 2 deletions cspdk/si220/cband/cells/grating_couplers.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
##############################


@gf.cell
@gf.cell(tags={"type": "grating_couplers"})
def grating_coupler_rectangular(
period=0.315 * 2,
n_periods: int = 60,
Expand Down Expand Up @@ -57,7 +57,7 @@ def grating_coupler_rectangular(
##############################


@gf.cell
@gf.cell(tags={"type": "grating_couplers"})
def grating_coupler_elliptical(
wavelength: float = 1.55,
grating_line_width=0.315,
Expand Down
4 changes: 2 additions & 2 deletions cspdk/si220/cband/cells/heaters.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
from gdsfactory.typings import ComponentSpec, CrossSectionSpec, LayerSpec


@gf.cell
@gf.cell(tags={"type": "heaters"})
def straight_heater_metal(
length: float = 320.0,
length_undercut_spacing: float = 6.0,
Expand Down Expand Up @@ -44,7 +44,7 @@ def straight_heater_metal(
)


@gf.cell
@gf.cell(tags={"type": "heaters"})
def straight_heater_meander(
length: float = 320.0,
heater_width: float = 2.5,
Expand Down
4 changes: 2 additions & 2 deletions cspdk/si220/cband/cells/mmis.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
################


@gf.cell
@gf.cell(tags={"type": "mmis"})
def mmi1x2(
width: float | None = None,
width_taper: float = 1.5,
Expand Down Expand Up @@ -49,7 +49,7 @@ def mmi1x2(
mmi1x2_rib = partial(mmi1x2, length_mmi=32.7, gap_mmi=1.64, cross_section="rib")


@gf.cell
@gf.cell(tags={"type": "mmis"})
def mmi2x2(
width: float | None = None,
width_taper: float = 1.5,
Expand Down
2 changes: 1 addition & 1 deletion cspdk/si220/cband/cells/mzis.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
from gdsfactory.typings import ComponentSpec, CrossSectionSpec


@gf.cell
@gf.cell(tags={"type": "mzis"})
def mzi(
delta_length: float = 10,
bend: ComponentSpec = "bend_euler",
Expand Down
4 changes: 2 additions & 2 deletions cspdk/si220/cband/cells/rings.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
from cspdk.si220.cband.tech import TECH


@gf.cell
@gf.cell(tags={"type": "rings"})
def ring_single(
gap: float = TECH.gap_strip,
radius: float = 10.0,
Expand Down Expand Up @@ -65,7 +65,7 @@ def ring_single(
)


@gf.cell
@gf.cell(tags={"type": "rings"})
def ring_double(
gap: float = TECH.gap_strip,
gap_top: float | None = None,
Expand Down
6 changes: 3 additions & 3 deletions cspdk/si220/cband/cells/spirals.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
)


@gf.cell
@gf.cell(tags={"type": "spirals"})
def spiral(
length: float = 100,
cross_section: CrossSectionSpec = "strip",
Expand All @@ -33,7 +33,7 @@ def spiral(
)


@gf.cell
@gf.cell(tags={"type": "spirals"})
def spiral_racetrack(
min_radius: float | None = None,
straight_length: float = 20.0,
Expand Down Expand Up @@ -74,7 +74,7 @@ def spiral_racetrack(
)


@gf.cell
@gf.cell(tags={"type": "spirals"})
def spiral_racetrack_heater(
spacing: float = 4.0,
num: int = 8,
Expand Down
6 changes: 3 additions & 3 deletions cspdk/si220/cband/cells/tapers.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
from cspdk.si220.cband.tech import LAYER, TECH


@gf.cell
@gf.cell(tags={"type": "tapers"})
def taper(
length: float = 10.0,
width1: float = TECH.width,
Expand Down Expand Up @@ -37,7 +37,7 @@ def taper(
)


@gf.cell
@gf.cell(tags={"type": "tapers"})
def taper_metal(
length: float = 10.0,
width1: float = TECH.width_metal,
Expand Down Expand Up @@ -66,7 +66,7 @@ def taper_metal(
)


@gf.cell
@gf.cell(tags={"type": "tapers"})
def taper_strip_to_ridge(
length: float = 10.0,
width1: float = 0.5,
Expand Down
4 changes: 2 additions & 2 deletions cspdk/si220/cband/cells/text.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
from gdsfactory.typings import ComponentSpec, LayerSpec, LayerSpecs


@gf.cell
@gf.cell(tags={"type": "text"})
def text_rectangular(
text: str = "abc",
size: float = 3,
Expand All @@ -26,7 +26,7 @@ def text_rectangular(
)


@gf.cell
@gf.cell(tags={"type": "text"})
def text_rectangular_multi_layer(
text: str = "abc",
layers: LayerSpecs = ("WG", "PAD"),
Expand Down
2 changes: 1 addition & 1 deletion cspdk/si220/cband/cells/vias.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
)


@gf.cell
@gf.cell(tags={"type": "vias"})
def via_stack_heater_mtop(size: Size = (20.0, 10.0)) -> gf.Component:
"""Rectangular via array stack.
Expand Down
22 changes: 11 additions & 11 deletions cspdk/si220/cband/cells/waveguides.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
from gdsfactory.typings import CrossSectionSpec, LayerSpec, Size


@gf.cell
@gf.cell(tags={"type": "waveguides"})
def straight(
length: float = 10,
cross_section: CrossSectionSpec = "strip",
Expand All @@ -25,7 +25,7 @@ def straight(
)


@gf.cell
@gf.cell(tags={"type": "waveguides"})
def straight_strip(
length: float = 10,
cross_section: CrossSectionSpec = "strip",
Expand All @@ -45,7 +45,7 @@ def straight_strip(
)


@gf.cell
@gf.cell(tags={"type": "waveguides"})
def straight_rib(
length: float = 10,
cross_section: CrossSectionSpec = "rib",
Expand All @@ -63,7 +63,7 @@ def straight_rib(
)


@gf.cell
@gf.cell(tags={"type": "waveguides"})
def bend_euler(
radius: float | None = None,
angle: float = 90,
Expand Down Expand Up @@ -95,7 +95,7 @@ def bend_euler(
)


@gf.cell
@gf.cell(tags={"type": "waveguides"})
def bend_s(
size: Size = (11, 1.8),
cross_section: CrossSectionSpec = "strip",
Expand All @@ -122,7 +122,7 @@ def bend_s(
)


@gf.cell
@gf.cell(tags={"type": "waveguides"})
def wire_corner(
cross_section: CrossSectionSpec = "metal_routing",
width: float | None = None,
Expand All @@ -144,7 +144,7 @@ def wire_corner(
)


@gf.cell
@gf.cell(tags={"type": "waveguides"})
def wire_corner45(
cross_section: CrossSectionSpec = "metal_routing",
radius: float = 10,
Expand All @@ -170,7 +170,7 @@ def wire_corner45(
)


@gf.cell
@gf.cell(tags={"type": "waveguides"})
def wire_corner45_straight(
width: float | None = None,
radius: float | None = None,
Expand All @@ -195,7 +195,7 @@ def wire_corner45_straight(
####################


@gf.cell
@gf.cell(tags={"type": "waveguides"})
def straight_metal(
length: float = 10,
cross_section: CrossSectionSpec = "metal_routing",
Expand All @@ -213,7 +213,7 @@ def straight_metal(
)


@gf.cell
@gf.cell(tags={"type": "waveguides"})
def bend_metal(
radius: float | None = None,
angle: float = 90,
Expand All @@ -238,7 +238,7 @@ def bend_metal(
)


@gf.cell
@gf.cell(tags={"type": "waveguides"})
def bend_s_metal(
size: Size = (11, 1.8),
cross_section: CrossSectionSpec = "metal_routing",
Expand Down
Loading
Loading