This commit is contained in:
Matt Guthaus 2018-02-10 10:03:26 -08:00
commit ce164fb7a8
2 changed files with 17 additions and 7 deletions

View File

@ -177,7 +177,7 @@ def read_config(config_file, is_unit_test=True):
OPTS.num_words,
OPTS.num_banks,
OPTS.OPTS.tech_name)
# Don't delete the output dir, it may have other files!
# make the directory if it doesn't exist
try:
@ -263,9 +263,8 @@ def import_tech():
# Set the tech to the config file we read in instead of the command line value.
OPTS.tech_name = OPTS.tech_name
# environment variable should point to the technology dir
# environment variable should point to the technology dir
try:
OPENRAM_TECH = os.path.abspath(os.environ.get("OPENRAM_TECH"))
except:
@ -289,6 +288,16 @@ def import_tech():
debug.error("Nonexistent technology_setup_file: {0}.py".format(filename))
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):
""" Print a statement about the time delta. """
if last_time:

View File

@ -48,9 +48,10 @@ class options(optparse.Values):
# These are the configuration parameters
rw_ports = 1
r_ports = 0
supply_voltages = [3]
temperatures = [25]
process_corners = ["TT"]
# These will get initialized by the the file
supply_voltages = ""
temperatures = ""
process_corners = ""
# These are the default modules that can be over-riden