Quantcast
Channel: Cadence Community
Viewing all articles
Browse latest Browse all 3331

spectreMDL Input String in Analyses

$
0
0

For mmsim versions 10 and 11 the below works, but for 13 it does not. In 13, instead of using the variable value, the analysis will use the variable name. The tran_long will output to a file "out", and the tran_short will look for a file "ic".

I didn't see any updates to the spectre or spectreMDL manuals regarding this usage. Is there something I'm doing wrong?

//spectremdl -batch circuit_test.mdl -design input.scs

// Measurement Aliases
alias measurement tran_short {
 input string ic="icfile"
 run tran(stop=3e-9, readns=ic)
}

alias measurement tran_long {
 input string out="outfile"
 run tran(stop=10, writefinal=out)
}

string file[ = {"f1", "f2", "f3", "f4", "f5", "f6", "f7"};
real var1 = {1, 2, 3, 4, 5, 6, 7};
real var2 = swp(start=1, stop=81, step=1);
int i = 0;
int j = 0;

foreach i from swp(start=0, stop=6, step=1) {
 global0 = 0;
 global1 = var1[i];
 run tran_long(out=file[i]);
 global0 = global1;
 foreach j from swp(start=0, stop=80, step=1) {
  global2 = var2[j];
  run tran_short(ic=file[i]);
 }
}


Viewing all articles
Browse latest Browse all 3331

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>