mirror of
https://github.com/VLSIDA/OpenRAM.git
synced 2026-08-30 09:58:33 +02:00
Major changes: Remove mpmath library and use numpy instead. Convert bytes to new bytearrays. Fix class name check for duplicate gds instances. Add explicit integer conversion from floats. Fix importlib reload from importlib library Fix new key/index syntax issues. Fix filter and map conversion to lists. Fix deprecation warnings. Fix Circuits vs Netlist in Magic LVS results. Fix file closing warnings.
42 lines
1.1 KiB
Python
42 lines
1.1 KiB
Python
#!/usr/bin/python
|
|
"""
|
|
This type of setup script should be placed in the setup_scripts directory in the trunk
|
|
"""
|
|
|
|
import sys
|
|
import os
|
|
|
|
TECHNOLOGY = "scn3me_subm"
|
|
|
|
|
|
##########################
|
|
# CDK paths
|
|
|
|
# os.environ["CDK_DIR"] = CDK_DIR #PDK path
|
|
# os.environ["SYSTEM_CDS_LIB_DIR"] = "{0}/cdssetup".format(CDK_DIR)
|
|
# os.environ["CDS_SITE"] = CDK_DIR
|
|
os.environ["MGC_TMPDIR"] = "/tmp"
|
|
|
|
###########################
|
|
# OpenRAM Paths
|
|
|
|
|
|
try:
|
|
DRCLVS_HOME = os.path.abspath(os.environ.get("DRCLVS_HOME"))
|
|
except:
|
|
OPENRAM_TECH=os.path.abspath(os.environ.get("OPENRAM_TECH"))
|
|
DRCLVS_HOME=OPENRAM_TECH+"/scn3me_subm/tech"
|
|
os.environ["DRCLVS_HOME"] = DRCLVS_HOME
|
|
|
|
# try:
|
|
# SPICE_MODEL_DIR = os.path.abspath(os.environ.get("SPICE_MODEL_DIR"))
|
|
# except:
|
|
OPENRAM_TECH=os.path.abspath(os.environ.get("OPENRAM_TECH"))
|
|
os.environ["SPICE_MODEL_DIR"] = "{0}/{1}/models".format(OPENRAM_TECH, TECHNOLOGY)
|
|
|
|
##########################
|
|
# Paths required for OPENRAM to function
|
|
|
|
LOCAL = "{0}/..".format(os.path.dirname(__file__))
|
|
sys.path.append("{0}/{1}/tech".format(LOCAL,TECHNOLOGY))
|