From 2eff166527c5c98fe40afbb2ad1e72d640c9a3cc Mon Sep 17 00:00:00 2001 From: Matt Guthaus Date: Mon, 26 Nov 2018 14:05:04 -0800 Subject: [PATCH] Rotate vias in pand2 --- compiler/pgates/pand2.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/compiler/pgates/pand2.py b/compiler/pgates/pand2.py index 4134c741..caeff11b 100644 --- a/compiler/pgates/pand2.py +++ b/compiler/pgates/pand2.py @@ -101,11 +101,12 @@ class pand2(design.design): height=vdd_pin.height()) z_pin = self.inv_inst.get_pin("Z") + self.add_via_center(layers=("metal1","via1","metal2"), + offset=z_pin.center(), + rotate=90) self.add_layout_pin_rect_center(text="Z", layer="metal2", offset=z_pin.center()) - self.add_via_center(layers=("metal1","via1","metal2"), - offset=z_pin.center()) for pin_name in ["A","B"]: pin = self.nand_inst.get_pin(pin_name) @@ -113,7 +114,8 @@ class pand2(design.design): layer="metal2", offset=pin.center()) self.add_via_center(layers=("metal1","via1","metal2"), - offset=pin.center()) + offset=pin.center(), + rotate=90)