From 4612c9c182da6ee416461aa9e020e22316cd6bf0 Mon Sep 17 00:00:00 2001 From: mrg Date: Mon, 27 May 2019 16:38:47 -0700 Subject: [PATCH] Move power pins before no route option --- compiler/sram/sram_base.py | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/compiler/sram/sram_base.py b/compiler/sram/sram_base.py index 192bc669..be422135 100644 --- a/compiler/sram/sram_base.py +++ b/compiler/sram/sram_base.py @@ -129,14 +129,15 @@ class sram_base(design, verilog, lef): def route_supplies(self): """ Route the supply grid and connect the pins to them. """ + # Copy the pins to the top level + # This will either be used to route or left unconnected. + for inst in self.insts: + self.copy_power_pins(inst,"vdd") + self.copy_power_pins(inst,"gnd") # Do not route the power supply if not OPTS.route_supplies: return - for inst in self.insts: - self.copy_power_pins(inst,"vdd") - self.copy_power_pins(inst,"gnd") - from supply_router import supply_router as router layer_stack =("metal3","via3","metal4") rtr=router(layer_stack, self) @@ -579,4 +580,4 @@ class sram_base(design, verilog, lef): total_cin += self.data_dff.get_clk_cin() if self.col_addr_size > 0: total_cin += self.col_addr_dff.get_clk_cin() - return total_cin \ No newline at end of file + return total_cin