dsd1-10 / dsd-08=skill / XOR
.docsimulator( 'spectre )
design( "/home/GroupII/st990115/simulation/test_phd_XOR/spectre/schematic/netlist/netlist")
resultsDir( "/home/GroupII/st990115/simulation/test_phd_XOR/spectre/schematic" )
modelFile(
'("/home/gscl/projects/intro/process/gpdk_MIET_2.0/gpdk/../models/gpdk.scs" "NN")
)
analysis('tran ?stop "500n" ?errpreset "conservative" )
res = nil
pi = 3.14159
delta = 2n
iter = 50
for( i 0 iter
desVar( "vdd" 2.5 )
desVar( "T" 100n )
desVar( "dT" i*delta )
temp( 27 )
run()
selectResult( 'tran )
;plot(getData("/out1") getData("/FREF") getData("/FCOMP") )
plot(getData("/out1"))
cl = clip( VT("/out1"), (i*delta), 500n)
if( (cl==nil) then
cl=0
else
cl=cl
)
average = average(cl-2.5/2)
printf(" ---- ---- ---- ---- PURGEN %d ---- ---- ---- ---- ---- ----" i)
printf("\n delay %L average %L \n - %d iteration \n \n" i*delta average iter-i)
printf(" ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ----")
res = append1(res list((i*delta/100n)*360 average ) )
)
w = artListToWaveform(res)
printf(" ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- \n")
printf(" ---- ---- ---- I HAVE FINISHED !! ---- ---- ---- ----")
plot(w)