Home > Community > Forums > Custom IC Design > spectreMDL Input String in Analyses

Email

* Required Fields

Recipients email * (separate multiple addresses with commas)

Your name *

Your email *

Message *

Contact Us

* Required Fields
First Name *

Last Name *

Email *

Company / Institution *

Comments: *

 spectreMDL Input String in Analyses 

Last post Tue, May 13 2014 1:39 PM by TroyD. 0 replies.
Started by TroyD 13 May 2014 01:39 PM. Topic has 0 replies and 185 views
Page 1 of 1 (1 items)
Sort Posts:
  • Tue, May 13 2014 1:39 PM

    • TroyD
    • Not Ranked
    • Joined on Tue, Mar 4 2014
    • Posts 1
    • Points 5
    spectreMDL Input String in Analyses Reply

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

    Filed under:
    • Post Points: 5
Page 1 of 1 (1 items)
Sort Posts:
Started by TroyD at 13 May 2014 01:39 PM. Topic has 0 replies.