mirror of https://github.com/VLSIDA/OpenRAM.git
Move power supply stack to design
This commit is contained in:
parent
80a4fc7e84
commit
abac5a11ab
|
|
@ -68,6 +68,14 @@ class design(hierarchy_design):
|
||||||
|
|
||||||
self.setup_multiport_constants()
|
self.setup_multiport_constants()
|
||||||
|
|
||||||
|
try:
|
||||||
|
from tech import power_grid
|
||||||
|
self.supply_stack = power_grid
|
||||||
|
except ImportError:
|
||||||
|
# if no power_grid is specified by tech we use sensible defaults
|
||||||
|
# Route a M3/M4 grid
|
||||||
|
self.supply_stack = self.m3_stack
|
||||||
|
|
||||||
def check_pins(self):
|
def check_pins(self):
|
||||||
for pin_name in self.pins:
|
for pin_name in self.pins:
|
||||||
pins = self.get_pins(pin_name)
|
pins = self.get_pins(pin_name)
|
||||||
|
|
|
||||||
|
|
@ -41,13 +41,6 @@ class sram_base(design, verilog, lef):
|
||||||
if not self.num_spare_cols:
|
if not self.num_spare_cols:
|
||||||
self.num_spare_cols = 0
|
self.num_spare_cols = 0
|
||||||
|
|
||||||
try:
|
|
||||||
from tech import power_grid
|
|
||||||
self.supply_stack = power_grid
|
|
||||||
except ImportError:
|
|
||||||
# if no power_grid is specified by tech we use sensible defaults
|
|
||||||
# Route a M3/M4 grid
|
|
||||||
self.supply_stack = self.m3_stack
|
|
||||||
|
|
||||||
def add_pins(self):
|
def add_pins(self):
|
||||||
""" Add pins for entire SRAM. """
|
""" Add pins for entire SRAM. """
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue