mirror of https://github.com/VLSIDA/OpenRAM.git
Improve error messages on misconfiguration of environment variables.
This commit is contained in:
parent
1fdb0ba5fc
commit
7a23550ae0
|
|
@ -103,7 +103,10 @@ def run_drc(name, gds_name):
|
||||||
# TOTAL Original Layer Geometries: 106 (157)
|
# TOTAL Original Layer Geometries: 106 (157)
|
||||||
# TOTAL DRC RuleChecks Executed: 156
|
# TOTAL DRC RuleChecks Executed: 156
|
||||||
# TOTAL DRC Results Generated: 0 (0)
|
# TOTAL DRC Results Generated: 0 (0)
|
||||||
f = open(drc_runset['drcSummaryFile'], "r")
|
try:
|
||||||
|
f = open(drc_runset['drcSummaryFile'], "r")
|
||||||
|
except:
|
||||||
|
debug.error("Unable to retrieve DRC results file. Is calibre set up?",1)
|
||||||
results = f.readlines()
|
results = f.readlines()
|
||||||
f.close()
|
f.close()
|
||||||
# those lines should be the last 3
|
# those lines should be the last 3
|
||||||
|
|
|
||||||
|
|
@ -141,7 +141,10 @@ def setup_paths():
|
||||||
|
|
||||||
global OPTS
|
global OPTS
|
||||||
|
|
||||||
OPENRAM_HOME = os.path.abspath(os.environ.get("OPENRAM_HOME"))
|
try:
|
||||||
|
OPENRAM_HOME = os.path.abspath(os.environ.get("OPENRAM_HOME"))
|
||||||
|
except:
|
||||||
|
debug.error("OPENRAM_HOME is not properly defined.",1)
|
||||||
sys.path.append("{0}".format(OPENRAM_HOME))
|
sys.path.append("{0}".format(OPENRAM_HOME))
|
||||||
sys.path.append("{0}/gdsMill".format(OPENRAM_HOME))
|
sys.path.append("{0}/gdsMill".format(OPENRAM_HOME))
|
||||||
sys.path.append("{0}/tests".format(OPENRAM_HOME))
|
sys.path.append("{0}/tests".format(OPENRAM_HOME))
|
||||||
|
|
@ -209,7 +212,12 @@ def import_tech():
|
||||||
OPTS.tech_name = OPTS.config.tech_name
|
OPTS.tech_name = OPTS.config.tech_name
|
||||||
|
|
||||||
# environment variable should point to the technology dir
|
# environment variable should point to the technology dir
|
||||||
OPTS.openram_tech = os.path.abspath(os.environ.get("OPENRAM_TECH")) + "/" + OPTS.tech_name
|
try:
|
||||||
|
OPENRAM_TECH = os.path.abspath(os.environ.get("OPENRAM_TECH"))
|
||||||
|
except:
|
||||||
|
debug.error("OPENRAM_TECH is not properly defined.",1)
|
||||||
|
|
||||||
|
OPTS.openram_tech = OPENRAM_TECH + "/" + OPTS.tech_name
|
||||||
if not OPTS.openram_tech.endswith('/'):
|
if not OPTS.openram_tech.endswith('/'):
|
||||||
OPTS.openram_tech += "/"
|
OPTS.openram_tech += "/"
|
||||||
debug.info(1, "Technology path is " + OPTS.openram_tech)
|
debug.info(1, "Technology path is " + OPTS.openram_tech)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue