Route to top of NMOS to prevent poly overlap nmos

This commit is contained in:
mrg 2020-02-10 17:12:39 +00:00
parent 4d85640a00
commit f7915ec55e
1 changed files with 2 additions and 2 deletions

View File

@ -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])