コード例 #1
0
#
# Check master layer/purpose list and look for layers
# that haven't been defined
#
#####################################################

import sshaft, os, sys, re

sshaft.beginstep("genCdsCni.py")

# Parse arguments
args = sys.argv[1:]
while len(args) > 0:
    arg = args[0]
    args = args[1:]
    sshaft.logf("LOG_WARN", "WARNING: Unrecognized argument " + arg)

layers = []
section = False
f = file(os.environ["PDK_DIR"] + "/techfile/cni/Santana.tech", "r")
for line in f:
    m = re.search(r"^\s*(\w+)\(", line)
    if m:
        section = m.group(1)
        continue

    if section == "layerMapping":
        m = re.search(r"\(\s*(\w+)", line)
        if m:
            layers.append(m.group(1))
コード例 #2
0
# gentech.py
#
# Created 1/3/2007 by Rhett Davis ([email protected])
#
#####################################################

import sshaft, os, sys, testproc

sshaft.beginstep('gentech.py')

# Parse arguments
args = sys.argv[1:]
while (len(args) > 0):
    arg = args[0]
    args = args[1:]
    sshaft.logf('LOG_WARN', "WARNING: Unrecognized argument " + arg)

#filename=os.environ['PDK_DIR']+'/techfile/'+sshaft.gettechvar('GenTech::CdsTechFile')
#libname=sshaft.gettechvar('GenTech::TechLibName')
#tech=sshaft.gettechvar('GenTech::CdsTechData')
#path=os.environ['PDK_DIR']+'/lib/'+libname
#sshaft.dir_init('run/cds','cds')
#cmd='pdkCompileTechLibrary( ?libname "'+libname+'" ?path "'+path+'"'
#cmd+=' ?filename "'+filename+'" ?tech "'+tech+'" )'
#sshaft.substep(mode='cds_step', cmd=cmd, rundir='run/cds')

filename = os.environ['PDK_DIR'] + '/ncsu_basekit/techfile/cni/Santana.tech'
libname = 'NCSU_TechLib_FreePDK45'
pycellname = os.environ['PDK_DIR'] + '/ncsu_basekit/lib/' + libname
path = os.environ['PDK_DIR'] + '/ncsu_basekit/lib/' + libname
if os.access(path, os.F_OK):
コード例 #3
0
# gentech.py
#
# Created 1/3/2007 by Rhett Davis ([email protected])
#
#####################################################

import sshaft, os, sys, testproc

sshaft.beginstep("genlitho.py")

# Parse arguments
args = sys.argv[1:]
while len(args) > 0:
    arg = args[0]
    args = args[1:]
    sshaft.logf("LOG_WARN", "WARNING: Unrecognized argument " + arg)

opticdir = os.environ["PDK_DIR"] + "/ncsu_basekit/techfile/calibre/models/"
cmd = "calibrewb -a opticsgen -opticalfile " + opticdir + "OpticalD0 -o " + opticdir + "opticalD0 >& calibrewb.log.D0"
sshaft.substep(mode="unix_prog", cmd=cmd, env="calibre")

cmd = (
    "calibrewb -a opticsgen -opticalfile " + opticdir + "OpticalD10 -o " + opticdir + "opticalD10 >& calibrewb.log.D10"
)
sshaft.substep(mode="unix_prog", cmd=cmd, env="calibre")

cmd = (
    "calibrewb -a opticsgen -opticalfile "
    + opticdir
    + "OpticalDM10 -o "
    + opticdir
コード例 #4
0
ファイル: testapp.py プロジェクト: francissabado/Cadence
#     dist/lib/[lang]/testproc.[lang]
#     where [lang] is tcl, py, or il
#
#####################################################

import sshaft, sys, testproc

sshaft.beginstep('testapp.py')

ret=0
depth=""
diedepth=""

# Parse arguments
args=sys.argv[1:]
sshaft.logf('LOG_INFO',"Arguments: "+str(args))
while (len(args)>0):
    arg=args[0]
    args=args[1:]
    if (arg=="-return"):
        ret=1
    elif (arg=="-depth"):
        depth=args[0]
        args=args[1:]
    elif (arg=="-die"):
        diedepth=args[0]
        args=args[1:]
    else:
        sshaft.logf('LOG_WARN',"WARNING: Unrecognized argument "+arg)

if (not depth):
コード例 #5
0
ファイル: checkCdsCni.py プロジェクト: he-actlab/anpu.hspice
#
# Check master layer/purpose list and look for layers
# that haven't been defined
#
#####################################################

import sshaft, os, sys, re

sshaft.beginstep('genCdsCni.py')

# Parse arguments
args = sys.argv[1:]
while (len(args) > 0):
    arg = args[0]
    args = args[1:]
    sshaft.logf('LOG_WARN', "WARNING: Unrecognized argument " + arg)

layers = []
section = False
f = file(os.environ['PDK_DIR'] + '/techfile/cni/Santana.tech', 'r')
for line in f:
    m = re.search(r"^\s*(\w+)\(", line)
    if m:
        section = m.group(1)
        continue

    if (section == 'layerMapping'):
        m = re.search(r"\(\s*(\w+)", line)
        if m:
            layers.append(m.group(1))
コード例 #6
0
ファイル: testapp.py プロジェクト: he-actlab/anpu.hspice
#     dist/lib/[lang]/testproc.[lang]
#     where [lang] is tcl, py, or il
#
#####################################################

import sshaft, sys, testproc

sshaft.beginstep('testapp.py')

ret = 0
depth = ""
diedepth = ""

# Parse arguments
args = sys.argv[1:]
sshaft.logf('LOG_INFO', "Arguments: " + str(args))
while (len(args) > 0):
    arg = args[0]
    args = args[1:]
    if (arg == "-return"):
        ret = 1
    elif (arg == "-depth"):
        depth = args[0]
        args = args[1:]
    elif (arg == "-die"):
        diedepth = args[0]
        args = args[1:]
    else:
        sshaft.logf('LOG_WARN', "WARNING: Unrecognized argument " + arg)

if (not depth):