|
马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。
您需要 登录 才可以下载或查看,没有账号?注册
x
ocnWaveformTool( 'wavescan )
simulator( 'spectre )
delete( 'ic)
delete( 'save)
delete( 'analysis)
delete( 'desVar)
design(
"/home/aaa/simulation/a/spectre/schematic/netlist/netlist")
resultsDir( "/home/aaa/simulation/a/spectre/schematic" )
modelFile
model_file = "./tsmc.ocn"
corner_list = list("tt_tr_tc" "ss_tr_tc" "ff_tr_tc")
vddx_list = list(2.7,3.3)
temp_list = list(-40,125)
vout_list = list(0,1.5)
analysis('dc ?saveOppoint t )
desVar(
"vddx" 2.7
)
desVar(
"vout" 0
)
temp( 125 )
foreach(temp_name, temp_list
foreach(corner_name, corner_list
foreach(vddx_name, vddx_list
foreach(vout_name, vout_list
load(model_file)
desVar("vddx" vddx_name)
desVar("vout" vout_name)
temp(temp_name)
run()
idx= OP("/M1","id")
title=sprintf(nil "%g" vout_name) 我觉得这里有问题!!!!
fp=outfile("/home/aaa/script/newfile.txt" "a")
fprintf(fp "%s: \t %g \n" title idx)
close(fp)
)
)
)
)
load "ocean.ocn"时,报错*Error* fprintf/sprintf: format spec. incompatible with data - 0
我觉得错误出在title=sprintf(nil "%g" vout_name) 求问这个错误是怎么回事? |
|