mirror of https://github.com/VLSIDA/OpenRAM.git
Change OPTS.route_supplies option since there's only one router now
This commit is contained in:
parent
8fff4e2635
commit
f8b2c1e9b9
|
|
@ -113,7 +113,8 @@ class rom_bank(design,rom_verilog):
|
||||||
# FIXME: Somehow ROM layout behaves weird and doesn't add all the pin
|
# FIXME: Somehow ROM layout behaves weird and doesn't add all the pin
|
||||||
# shapes before routing supplies
|
# shapes before routing supplies
|
||||||
init_bbox = self.get_bbox()
|
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
|
# Route the pins to the perimeter
|
||||||
if OPTS.perimeter_pins:
|
if OPTS.perimeter_pins:
|
||||||
# We now route the escape routes far enough out so that they will
|
# 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:
|
for inst in self.insts:
|
||||||
self.copy_power_pins(inst, pin_name)
|
self.copy_power_pins(inst, pin_name)
|
||||||
|
|
||||||
if not OPTS.route_supplies:
|
from openram.router import supply_router as router
|
||||||
# Do not route the power supply (leave as must-connect pins)
|
|
||||||
return
|
|
||||||
else:
|
|
||||||
from openram.router import supply_router as router
|
|
||||||
rtr = router(layers=self.supply_stack,
|
rtr = router(layers=self.supply_stack,
|
||||||
design=self,
|
design=self,
|
||||||
bbox=bbox,
|
bbox=bbox,
|
||||||
|
|
|
||||||
|
|
@ -251,11 +251,7 @@ class sram_1bank(design, verilog, lef):
|
||||||
for inst in self.insts:
|
for inst in self.insts:
|
||||||
self.copy_power_pins(inst, pin_name, self.ext_supply[pin_name])
|
self.copy_power_pins(inst, pin_name, self.ext_supply[pin_name])
|
||||||
|
|
||||||
if not OPTS.route_supplies:
|
from openram.router import supply_router as router
|
||||||
# Do not route the power supply (leave as must-connect pins)
|
|
||||||
return
|
|
||||||
else:
|
|
||||||
from openram.router import supply_router as router
|
|
||||||
rtr = router(layers=self.supply_stack,
|
rtr = router(layers=self.supply_stack,
|
||||||
design=self,
|
design=self,
|
||||||
bbox=bbox,
|
bbox=bbox,
|
||||||
|
|
@ -284,7 +280,7 @@ class sram_1bank(design, verilog, lef):
|
||||||
pin.width(),
|
pin.width(),
|
||||||
pin.height())
|
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)
|
# Update these as we may have routed outside the region (perimeter pins)
|
||||||
lowest_coord = self.find_lowest_coords()
|
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
|
# We now route the escape routes far enough out so that they will
|
||||||
# reach past the power ring or stripes on the sides
|
# reach past the power ring or stripes on the sides
|
||||||
self.route_escape_pins(init_bbox)
|
self.route_escape_pins(init_bbox)
|
||||||
|
if OPTS.route_supplies:
|
||||||
self.route_supplies(init_bbox)
|
self.route_supplies(init_bbox)
|
||||||
|
|
||||||
|
|
||||||
def route_dffs(self, add_routes=True):
|
def route_dffs(self, add_routes=True):
|
||||||
|
|
|
||||||
|
|
@ -115,7 +115,7 @@ class options(optparse.Values):
|
||||||
# When enabled, layout is not generated (and no DRC or LVS are performed)
|
# When enabled, layout is not generated (and no DRC or LVS are performed)
|
||||||
netlist_only = False
|
netlist_only = False
|
||||||
# Whether we should do the final power routing
|
# Whether we should do the final power routing
|
||||||
route_supplies = "graph"
|
route_supplies = True
|
||||||
supply_pin_type = "ring"
|
supply_pin_type = "ring"
|
||||||
# This determines whether LVS and DRC is checked at all.
|
# This determines whether LVS and DRC is checked at all.
|
||||||
check_lvsdrc = False
|
check_lvsdrc = False
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue