From d565c9ac727917fc32efb999c13ffb671f620386 Mon Sep 17 00:00:00 2001 From: mrg Date: Tue, 25 Feb 2020 00:35:32 +0000 Subject: [PATCH] Generalize input y offsets --- compiler/pgates/pnand2.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/compiler/pgates/pnand2.py b/compiler/pgates/pnand2.py index dd04ccb9..7c40c7ab 100644 --- a/compiler/pgates/pnand2.py +++ b/compiler/pgates/pnand2.py @@ -190,16 +190,16 @@ class pnand2(pgate.pgate): def route_inputs(self): """ Route the A and B inputs """ - inputB_yoffset = self.nmos2_pos.y + self.nmos.active_height \ - + self.m2_space + 0.5 * self.m2_width + inputB_yoffset = self.nmos2_inst.uy() + 0.5 * contact.poly_contact.height self.route_input_gate(self.pmos2_inst, self.nmos2_inst, inputB_yoffset, "B", - position="center") + position="right") # This will help with the wells and the input/output placement - self.inputA_yoffset = inputB_yoffset + self.input_spacing + self.inputA_yoffset = self.pmos2_inst.by() - self.poly_extend_active \ + - contact.poly_contact.height self.route_input_gate(self.pmos1_inst, self.nmos1_inst, self.inputA_yoffset,