Move power pins before no route option

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

View File

@ -129,13 +129,14 @@ class sram_base(design, verilog, lef):
def route_supplies(self): def route_supplies(self):
""" Route the supply grid and connect the pins to them. """ """ Route the supply grid and connect the pins to them. """
# Do not route the power supply # Copy the pins to the top level
if not OPTS.route_supplies: # This will either be used to route or left unconnected.
return
for inst in self.insts: for inst in self.insts:
self.copy_power_pins(inst,"vdd") self.copy_power_pins(inst,"vdd")
self.copy_power_pins(inst,"gnd") self.copy_power_pins(inst,"gnd")
# Do not route the power supply
if not OPTS.route_supplies:
return
from supply_router import supply_router as router from supply_router import supply_router as router
layer_stack =("metal3","via3","metal4") layer_stack =("metal3","via3","metal4")