def substep2(depth="", diedepth="", **args): sshaft.beginstep('substep2', args) depth = depth + ":substep2" if (depth == diedepth): sshaft.dief("ERROR: Error depth reached: " + diedepth) cmd = "testsshaft.tcl" cmd = cmd + " -depth " + depth cmd = cmd + " -return" if (diedepth): cmd = cmd + " -die " + diedepth sshaft.substep(mode='unix_step', cmd=cmd) for app in string.split(sshaft.gettechvar('Sshaft::Apps::AppList')): sshaft.dir_init('run/' + app, app) cmd = sshaft.gettechvar('Sshaft::Apps::' + app + '::TestCmd') sshaft.substep(mode=app + '_step', cmd=cmd, rundir='run/' + app) return sshaft.endstep()
def substep2(depth="", diedepth="", **args): sshaft.beginstep('substep2',args) depth=depth+":substep2" if (depth==diedepth): sshaft.dief("ERROR: Error depth reached: "+diedepth) cmd="testsshaft.tcl" cmd=cmd+" -depth "+depth cmd=cmd+" -return" if (diedepth): cmd=cmd+" -die "+diedepth sshaft.substep(mode='unix_step',cmd=cmd) for app in string.split(sshaft.gettechvar('Sshaft::Apps::AppList')): sshaft.dir_init('run/'+app,app) cmd=sshaft.gettechvar('Sshaft::Apps::'+app+'::TestCmd') sshaft.substep(mode=app+'_step',cmd=cmd,rundir='run/'+app) return sshaft.endstep()
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): os.system('rm -rf ' + path) os.system('rm -rf ' + pycellname) #cmd='cngenlib -c --techfile '+filename+' tech:only '+libname+' '+path+' >& cngenlib.log' #cmd2='cngenlib --techlib '+libname+' pkg:pycells Xtors '+pycellname+' >& cngenlib2.log' cmd = 'cngenlib -c --techfile ' + filename + ' pkg:pycells ' + libname + ' ' + path + ' >& cngenlib.log' sshaft.substep(mode='unix_prog', cmd=cmd, env='cadence') #sshaft.substep(mode='unix_prog', cmd=cmd2, env='pycell') # log='cngenlib.log', logcheck=r"Error", checkmode='fail') sshaft.dir_init('run/cds', 'cds') sshaft.substep(mode='cds_step', cmd='pdkAppendTechfile()', rundir='run/cds') #inpath=os.environ['PDK_DIR']+'/techfile' #outpath=path #os.environ['PDK_DIR']+'/techfile/assura' #sshaft.verify_dir(outpath) #cmd='genDRC.py -in '+inpath+' -out '+outpath+' >& genDRC.log' #sshaft.substep(mode='unix_prog',cmd=cmd) #calibrefile = os.environ['PDK_DIR']+'/ncsu_basekit/techfile/calibre/calibreDRC.rul' #cmd = 'cp '+calibrefile+' '+path #sshaft.substep(mode='unix_prog',cmd=cmd) viadir = os.environ['PDK_DIR'] + '/ncsu_basekit/techfile/customvia/*' cmd = 'cp -r ' + viadir + ' ' + path sshaft.substep(mode='unix_prog', cmd=cmd)
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): os.system('rm -rf '+path) os.system('rm -rf '+pycellname) #cmd='cngenlib -c --techfile '+filename+' tech:only '+libname+' '+path+' >& cngenlib.log' #cmd2='cngenlib --techlib '+libname+' pkg:pycells Xtors '+pycellname+' >& cngenlib2.log' cmd='cngenlib -c --techfile '+filename+' pkg:pycells '+libname+' '+path+' >& cngenlib.log' sshaft.substep(mode='unix_prog', cmd=cmd, env='cadence') #sshaft.substep(mode='unix_prog', cmd=cmd2, env='pycell') # log='cngenlib.log', logcheck=r"Error", checkmode='fail') sshaft.dir_init('run/cds','cds') sshaft.substep(mode='cds_step', cmd='pdkAppendTechfile()', rundir='run/cds') #inpath=os.environ['PDK_DIR']+'/techfile' #outpath=path #os.environ['PDK_DIR']+'/techfile/assura' #sshaft.verify_dir(outpath) #cmd='genDRC.py -in '+inpath+' -out '+outpath+' >& genDRC.log' #sshaft.substep(mode='unix_prog',cmd=cmd) #calibrefile = os.environ['PDK_DIR']+'/ncsu_basekit/techfile/calibre/calibreDRC.rul' #cmd = 'cp '+calibrefile+' '+path #sshaft.substep(mode='unix_prog',cmd=cmd) viadir = os.environ['PDK_DIR']+'/ncsu_basekit/techfile/customvia/*' cmd = 'cp -r '+viadir+' '+path sshaft.substep(mode='unix_prog',cmd=cmd)
################################################### # # dir_init.py # # Created 1/3/2007 by Rhett Davis ([email protected]) # ##################################################### import sshaft, sys, testproc sshaft.beginstep('dir_init.py') sshaft.dir_init(sys.argv[1], sys.argv[2]) sshaft.endstep()
################################################### # # dir_init.py # # Created 1/3/2007 by Rhett Davis ([email protected]) # ##################################################### import sshaft, sys, testproc sshaft.beginstep('dir_init.py') sshaft.dir_init(sys.argv[1],sys.argv[2]) sshaft.endstep()