From de6b207798cd8ac4ff0b9674999f6ae392778910 Mon Sep 17 00:00:00 2001 From: Bastian Koppelmann Date: Wed, 18 Dec 2019 11:33:21 +0100 Subject: [PATCH] hierachy_layout: Move number of via arg to add_power_pins() this allows custom modules to state how many vias they need for power rails. Signed-off-by: Bastian Koppelmann --- compiler/base/hierarchy_layout.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/compiler/base/hierarchy_layout.py b/compiler/base/hierarchy_layout.py index 7f23e942..4751000a 100644 --- a/compiler/base/hierarchy_layout.py +++ b/compiler/base/hierarchy_layout.py @@ -1015,7 +1015,7 @@ class layout(): - def add_power_pin(self, name, loc, vertical=False, start_layer="m1"): + def add_power_pin(self, name, loc, size=[1,1], vertical=False, start_layer="m1"): """ Add a single power pin from M3 down to M1 at the given center location. The starting layer is specified to determine which vias are needed. @@ -1027,12 +1027,14 @@ class layout(): if start_layer=="m1": self.add_via_center(layers=self.m1_stack, + size=size, offset=loc, directions=direction) if start_layer=="m1" or start_layer=="m2": via=self.add_via_center(layers=self.m2_stack, + size=size, offset=loc, directions=direction)