diff --git a/compiler/modules/rom_bank.py b/compiler/modules/rom_bank.py index 74d0678b..244cbe16 100644 --- a/compiler/modules/rom_bank.py +++ b/compiler/modules/rom_bank.py @@ -113,7 +113,8 @@ class rom_bank(design,rom_verilog): # FIXME: Somehow ROM layout behaves weird and doesn't add all the pin # shapes before routing supplies init_bbox = self.get_bbox() - self.route_supplies(init_bbox) + if OPTS.route_supplies: + self.route_supplies(init_bbox) # Route the pins to the perimeter if OPTS.perimeter_pins: # We now route the escape routes far enough out so that they will @@ -449,11 +450,7 @@ class rom_bank(design,rom_verilog): for inst in self.insts: self.copy_power_pins(inst, pin_name) - if not OPTS.route_supplies: - # Do not route the power supply (leave as must-connect pins) - return - else: - from openram.router import supply_router as router + from openram.router import supply_router as router rtr = router(layers=self.supply_stack, design=self, bbox=bbox, diff --git a/compiler/modules/sram_1bank.py b/compiler/modules/sram_1bank.py index c4f8dc28..48e6cf89 100644 --- a/compiler/modules/sram_1bank.py +++ b/compiler/modules/sram_1bank.py @@ -251,11 +251,7 @@ class sram_1bank(design, verilog, lef): for inst in self.insts: self.copy_power_pins(inst, pin_name, self.ext_supply[pin_name]) - if not OPTS.route_supplies: - # Do not route the power supply (leave as must-connect pins) - return - else: - from openram.router import supply_router as router + from openram.router import supply_router as router rtr = router(layers=self.supply_stack, design=self, bbox=bbox, @@ -284,7 +280,7 @@ class sram_1bank(design, verilog, lef): pin.width(), pin.height()) - elif OPTS.route_supplies and OPTS.supply_pin_type == "single": + elif OPTS.supply_pin_type == "single": # Update these as we may have routed outside the region (perimeter pins) lowest_coord = self.find_lowest_coords() @@ -1080,8 +1076,8 @@ class sram_1bank(design, verilog, lef): # We now route the escape routes far enough out so that they will # reach past the power ring or stripes on the sides self.route_escape_pins(init_bbox) - - self.route_supplies(init_bbox) + if OPTS.route_supplies: + self.route_supplies(init_bbox) def route_dffs(self, add_routes=True): diff --git a/compiler/options.py b/compiler/options.py index 13649caf..38a38f26 100644 --- a/compiler/options.py +++ b/compiler/options.py @@ -115,7 +115,7 @@ class options(optparse.Values): # When enabled, layout is not generated (and no DRC or LVS are performed) netlist_only = False # Whether we should do the final power routing - route_supplies = "graph" + route_supplies = True supply_pin_type = "ring" # This determines whether LVS and DRC is checked at all. check_lvsdrc = False