From 504f9aa8928dcea308ef4f56afa8ba8e2ee0919f Mon Sep 17 00:00:00 2001 From: mrg Date: Fri, 8 Jan 2021 11:34:58 -0800 Subject: [PATCH] Space tx in pinv_dec for power routing. --- compiler/pgates/pinv_dec.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/compiler/pgates/pinv_dec.py b/compiler/pgates/pinv_dec.py index b355b28f..b3d6c47f 100644 --- a/compiler/pgates/pinv_dec.py +++ b/compiler/pgates/pinv_dec.py @@ -131,7 +131,10 @@ class pinv_dec(pinv.pinv): self.nmos_inst.place(self.nmos_pos, rotate=270) # place PMOS so it is half a poly spacing down from the top - xoffset = self.nmos_inst.rx() + 2 * self.poly_extend_active + 2 * self.well_extend_active + drc("pwell_to_nwell") + well_offsets = 2 * self.poly_extend_active + 2 * self.well_extend_active + drc("pwell_to_nwell") + # This is to provide spacing for the vdd rails + metal_offsets = 2 * self.m3_pitch + xoffset = self.nmos_inst.rx() + max(well_offsets, metal_offsets) self.pmos_pos = vector(xoffset, y_offset) self.pmos_inst.place(self.pmos_pos, rotate=270)