From b51c124810c4e22bebc40515959e18c97fa9e6b7 Mon Sep 17 00:00:00 2001 From: Matt Guthaus Date: Wed, 9 Nov 2016 13:29:33 -0800 Subject: [PATCH] Moved spice path to technology setup files instead of tech file itself. --- technology/freepdk45/tech/tech.py | 7 +++---- technology/scn3me_subm/tech/tech.py | 2 +- technology/setup_scripts/setup_openram_freepdk45.py | 3 ++- technology/setup_scripts/setup_openram_scn3me_subm.py | 1 + 4 files changed, 7 insertions(+), 6 deletions(-) diff --git a/technology/freepdk45/tech/tech.py b/technology/freepdk45/tech/tech.py index 321160a6..55bc97e2 100644 --- a/technology/freepdk45/tech/tech.py +++ b/technology/freepdk45/tech/tech.py @@ -252,10 +252,9 @@ drc["metal10_enclosure_via9"] = 0 spice = {} spice["nmos"] = "nmos_vtg" spice["pmos"] = "pmos_vtg" -spice["fet_models"] = ["/mada/software/techfiles/FreePDK45-1.4/ncsu_basekit/models/hspice/tran_models/models_nom/NMOS_VTG.inc", - "/mada/software/techfiles/FreePDK45-1.4/ncsu_basekit/models/hspice/tran_models/models_nom/PMOS_VTG.inc"] -#spice["nmos_model"] = "/import/comet1/Freepdk/ncsu_basekit/models/hspice/tran_models/models_nom/NMOS_VTG.inc" -#spice["pmos_model"] = "/import/comet1/Freepdk/ncsu_basekit/models/hspice/tran_models/models_nom/PMOS_VTG.inc" +SPICE_MODEL_DIR=os.environ.get("SPICE_MODEL_DIR") +spice["fet_models"] = [SPICE_MODEL_DIR+"/NMOS_VTG.inc", + SPICE_MODEL_DIR+"/PMOS_VTG.inc"] #spice stimulus related variables spice["clock_period"] = 2.0 diff --git a/technology/scn3me_subm/tech/tech.py b/technology/scn3me_subm/tech/tech.py index 4ac7c7de..433daf85 100755 --- a/technology/scn3me_subm/tech/tech.py +++ b/technology/scn3me_subm/tech/tech.py @@ -172,7 +172,7 @@ drc["minarea_metal3"] = 0 spice={} spice["nmos"]="n" spice["pmos"]="p" -spice["fet_models"] = ["/mada/software/techfiles/scn3me_subm/on_c5n.sp"] +spice["fet_models"] = [os.environ.get("SPICE_MODEL_DIR")+"/on_c5n.sp"] #spice stimulus related variables spice["clock_period"] = 10.0 diff --git a/technology/setup_scripts/setup_openram_freepdk45.py b/technology/setup_scripts/setup_openram_freepdk45.py index 4f55b746..6488d604 100644 --- a/technology/setup_scripts/setup_openram_freepdk45.py +++ b/technology/setup_scripts/setup_openram_freepdk45.py @@ -22,8 +22,9 @@ os.environ["MGC_TMPDIR"] = "/tmp" ########################### #OpenRAM Paths -DRCLVS_HOME= "$FREEPDK45/ncsu_basekit/techfile/calibre" +DRCLVS_HOME= PDK_DIR+"/ncsu_basekit/techfile/calibre" os.environ["DRCLVS_HOME"] = DRCLVS_HOME +os.environ["SPICE_MODEL_DIR"] = PDK_DIR+"/ncsu_basekit/models/hspice/tran_models/models_nom" ########################## #Paths required for OPENRAM to function diff --git a/technology/setup_scripts/setup_openram_scn3me_subm.py b/technology/setup_scripts/setup_openram_scn3me_subm.py index ed5331c9..2ea082a3 100644 --- a/technology/setup_scripts/setup_openram_scn3me_subm.py +++ b/technology/setup_scripts/setup_openram_scn3me_subm.py @@ -22,6 +22,7 @@ os.environ["MGC_TMPDIR"] = "/tmp" 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" ########################## # Paths required for OPENRAM to function