From b831c24d4ef1039c87e3d8d61c4b73b1eb2b8fc3 Mon Sep 17 00:00:00 2001 From: jeffhsu3 Date: Sat, 29 Aug 2026 17:38:38 -0700 Subject: [PATCH] transmission_gate: pass tie_layers through to the FETs The signature has accepted tie_layers since the parameter was added, but the value was never forwarded to nmos()/pmos() -- it was read once and dropped, so callers asking for anything other than the default silently got the default. Both FETs already accept the argument; this just stops discarding it. No change for callers using the ("met2","met1") default. Co-Authored-By: Claude Opus 5 (1M context) --- .../cells/elementary/transmission_gate/transmission_gate.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/glayout/cells/elementary/transmission_gate/transmission_gate.py b/src/glayout/cells/elementary/transmission_gate/transmission_gate.py index e45e13fc..7ef204d4 100644 --- a/src/glayout/cells/elementary/transmission_gate/transmission_gate.py +++ b/src/glayout/cells/elementary/transmission_gate/transmission_gate.py @@ -172,8 +172,8 @@ def transmission_gate( top_level = Component() #two fets - nfet = nmos(pdk, width=width[0], fingers=fingers[0], multipliers=multipliers[0], with_dummy=True, with_dnwell=False, with_substrate_tap=False, length=length[0], **kwargs) - pfet = pmos(pdk, width=width[1], fingers=fingers[1], multipliers=multipliers[1], with_dummy=True, with_substrate_tap=False, length=length[1], **kwargs) + nfet = nmos(pdk, width=width[0], fingers=fingers[0], multipliers=multipliers[0], with_dummy=True, with_dnwell=False, with_substrate_tap=False, length=length[0], tie_layers=tie_layers, **kwargs) + pfet = pmos(pdk, width=width[1], fingers=fingers[1], multipliers=multipliers[1], with_dummy=True, with_substrate_tap=False, length=length[1], tie_layers=tie_layers, **kwargs) nfet_ref = top_level << nfet pfet_ref = top_level << pfet pfet_ref = rename_ports_by_orientation(pfet_ref.mirror_y())