From de557f49ccbd30271243aba7ee7a175036796d46 Mon Sep 17 00:00:00 2001 From: daquintero Date: Mon, 3 Jun 2024 12:44:32 +0200 Subject: [PATCH] :wrench: Patch for r2r ladder example gplugins --- pyproject.toml | 3 +-- sky130/layers.py | 1 + sky130/pcells/p_n_poly.py | 7 ++++++- 3 files changed, 8 insertions(+), 3 deletions(-) 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]