• Skip to main content
  • Skip to search
  • Skip to footer
Cadence Home
  • This search text may be transcribed, used, stored, or accessed by our third-party service providers per our Cookie Policy and Privacy Policy.

  1. Community Forums
  2. Custom IC Design
  3. spectreMDL Input String in Analyses

Stats

  • Locked Locked
  • Replies 0
  • Subscribers 125
  • Views 12769
  • Members are here 0
This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

spectreMDL Input String in Analyses

TroyD
TroyD over 11 years ago

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]);
 }
}

  • Cancel

Community Guidelines

The Cadence Design Communities support Cadence users and technologists interacting to exchange ideas, news, technical information, and best practices to solve problems and get the most from Cadence technology. The community is open to everyone, and to provide the most value, we require participants to follow our Community Guidelines that facilitate a quality exchange of ideas and information. By accessing, contributing, using or downloading any materials from the site, you agree to be bound by the full Community Guidelines.

© 2025 Cadence Design Systems, Inc. All Rights Reserved.

  • Terms of Use
  • Privacy
  • Cookie Policy
  • US Trademarks
  • Do Not Sell or Share My Personal Information