diff --git a/pyproject.toml b/pyproject.toml index fc5090d2a..b20275fc7 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -15,8 +15,7 @@ classifiers = [ "Operating System :: OS Independent" ] dependencies = [ - "gdsfactory~=7.26.1", - "PySpice" + "gdsfactory>=7.26.0,<8" ] description = "skywater130 pdk" keywords = ["python"] diff --git a/sky130/layers.py b/sky130/layers.py index 4100030eb..e35129c33 100644 --- a/sky130/layers.py +++ b/sky130/layers.py @@ -486,6 +486,7 @@ class LayerMap(BaseModel): TM: Layer = (204, 0) TEXT: Layer = (66, 0) WG: Layer = (203, 0) # TODO remove when updating gdsfactory7 + HACK_TODO_REMOVE: Layer = (2, 0) class Config: frozen = True diff --git a/sky130/pcells/p_n_poly.py b/sky130/pcells/p_n_poly.py index 1c01453d7..16a8444a8 100644 --- a/sky130/pcells/p_n_poly.py +++ b/sky130/pcells/p_n_poly.py @@ -89,7 +89,12 @@ def p_n_poly( - (1 - i) * (licon_slots_size[1] + (p_length - licon_slots_size[1]) / 2) ) - # generate li (local interconnects) and m1 + # generate li (local interconnects) and m1 + + c.add_ports(ports=cont_arr.ports) + c.add_port("p", port=c.ports["e1"]) + c.add_port("n", port=c.ports["e2"]) + print(c.ports) rect_layer = [m1_layer, li_layer]