From 4f90308c92e119644540ed5fbf757847e2b7edf9 Mon Sep 17 00:00:00 2001 From: Matt Guthaus Date: Thu, 10 Nov 2016 09:26:52 -0800 Subject: [PATCH] Allow spice model to be overriden by environment variable in SCMOS --- technology/setup_scripts/setup_openram_scn3me_subm.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/technology/setup_scripts/setup_openram_scn3me_subm.py b/technology/setup_scripts/setup_openram_scn3me_subm.py index 2ea082a3..da5d1374 100644 --- a/technology/setup_scripts/setup_openram_scn3me_subm.py +++ b/technology/setup_scripts/setup_openram_scn3me_subm.py @@ -21,8 +21,12 @@ os.environ["MGC_TMPDIR"] = "/tmp" # OpenRAM Paths OPENRAM_TECH=os.path.abspath(os.environ.get("OPENRAM_TECH")) DRCLVS_HOME=OPENRAM_TECH+"/scn3me_subm/tech" -os.environ["DRCLVS_HOME"] = DRCLVS_HOME -os.environ["SPICE_MODEL_DIR"] = "/mada/software/techfiles/scn3me_subm" +os.environ["DRCLVS_HOME"] = DRCLVS_HOME +# You can override the spice model diretory in the environment +try: + SPICE_MODEL_DIR = os.path.abspath(os.environ.get("SPICE_MODEL_DIR")) +except: + os.environ["SPICE_MODEL_DIR"] = "/mada/software/techfiles/scn3me_subm" ########################## # Paths required for OPENRAM to function