mirror of https://github.com/VLSIDA/OpenRAM.git
Merge branch 'dev' of https://github.com/mguthaus/OpenRAM into dev
This commit is contained in:
commit
ce164fb7a8
|
|
@ -177,7 +177,7 @@ def read_config(config_file, is_unit_test=True):
|
||||||
OPTS.num_words,
|
OPTS.num_words,
|
||||||
OPTS.num_banks,
|
OPTS.num_banks,
|
||||||
OPTS.OPTS.tech_name)
|
OPTS.OPTS.tech_name)
|
||||||
|
|
||||||
# Don't delete the output dir, it may have other files!
|
# Don't delete the output dir, it may have other files!
|
||||||
# make the directory if it doesn't exist
|
# make the directory if it doesn't exist
|
||||||
try:
|
try:
|
||||||
|
|
@ -263,9 +263,8 @@ def import_tech():
|
||||||
|
|
||||||
# Set the tech to the config file we read in instead of the command line value.
|
# Set the tech to the config file we read in instead of the command line value.
|
||||||
OPTS.tech_name = OPTS.tech_name
|
OPTS.tech_name = OPTS.tech_name
|
||||||
|
|
||||||
|
# environment variable should point to the technology dir
|
||||||
# environment variable should point to the technology dir
|
|
||||||
try:
|
try:
|
||||||
OPENRAM_TECH = os.path.abspath(os.environ.get("OPENRAM_TECH"))
|
OPENRAM_TECH = os.path.abspath(os.environ.get("OPENRAM_TECH"))
|
||||||
except:
|
except:
|
||||||
|
|
@ -289,6 +288,16 @@ def import_tech():
|
||||||
debug.error("Nonexistent technology_setup_file: {0}.py".format(filename))
|
debug.error("Nonexistent technology_setup_file: {0}.py".format(filename))
|
||||||
sys.exit(1)
|
sys.exit(1)
|
||||||
|
|
||||||
|
import tech
|
||||||
|
# Set some default options now based on the technology...
|
||||||
|
if (OPTS.process_corners == ""):
|
||||||
|
OPTS.process_corners = [tech.spice["nom_corner"][0]]
|
||||||
|
if (OPTS.supply_voltages == ""):
|
||||||
|
OPTS.supply_voltages = [tech.spice["nom_corner"][1]]
|
||||||
|
if (OPTS.temperatures == ""):
|
||||||
|
OPTS.temperatures = [tech.spice["nom_corner"][2]]
|
||||||
|
|
||||||
|
|
||||||
def print_time(name, now_time, last_time=None):
|
def print_time(name, now_time, last_time=None):
|
||||||
""" Print a statement about the time delta. """
|
""" Print a statement about the time delta. """
|
||||||
if last_time:
|
if last_time:
|
||||||
|
|
|
||||||
|
|
@ -48,9 +48,10 @@ class options(optparse.Values):
|
||||||
# These are the configuration parameters
|
# These are the configuration parameters
|
||||||
rw_ports = 1
|
rw_ports = 1
|
||||||
r_ports = 0
|
r_ports = 0
|
||||||
supply_voltages = [3]
|
# These will get initialized by the the file
|
||||||
temperatures = [25]
|
supply_voltages = ""
|
||||||
process_corners = ["TT"]
|
temperatures = ""
|
||||||
|
process_corners = ""
|
||||||
|
|
||||||
|
|
||||||
# These are the default modules that can be over-riden
|
# These are the default modules that can be over-riden
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue