From f7915ec55e687adade51973fd22576563c2c3639 Mon Sep 17 00:00:00 2001 From: mrg Date: Mon, 10 Feb 2020 17:12:39 +0000 Subject: [PATCH] Route to top of NMOS to prevent poly overlap nmos --- compiler/pgates/pgate.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/compiler/pgates/pgate.py b/compiler/pgates/pgate.py index e0401726..6d385d09 100644 --- a/compiler/pgates/pgate.py +++ b/compiler/pgates/pgate.py @@ -79,8 +79,8 @@ class pgate(design.design): debug.check(nmos_gate_pin.ll().x == pmos_gate_pin.ll().x, "Connecting unaligned gates not supported. See unaligned_gates.gds.") - # Pick point on the left of NMOS and connect down to PMOS - nmos_gate_pos = nmos_gate_pin.ll() + vector(0.5 * self.poly_width, 0) + # Pick point on the left of NMOS and up to PMOS + nmos_gate_pos = nmos_gate_pin.ul() + vector(0.5 * self.poly_width, 0) pmos_gate_pos = vector(nmos_gate_pos.x, pmos_gate_pin.bc().y) self.add_path("poly", [nmos_gate_pos, pmos_gate_pos])