Move power pins before no route option

This commit is contained in:
mrg 2019-05-27 16:38:47 -07:00
parent c2cc901300
commit 72f4a223c3
1 changed files with 6 additions and 5 deletions

View File

@ -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
return total_cin