Home > Community > Forums > Custom IC SKILL > integration operation and delay operation with spectre input.scs simulation

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: *

 integration operation and delay operation with spectre input.scs simulation 

Last post Mon, Dec 16 2013 4:04 AM by Andrew Beckett. 1 replies.
Started by samung 28 Oct 2013 06:43 AM. Topic has 1 replies and 2204 views
Page 1 of 1 (2 items)
Sort Posts:
  • Mon, Oct 28 2013 6:43 AM

    • samung
    • Top 150 Contributor
    • Joined on Fri, Jun 14 2013
    • Posts 53
    • Points 625
    integration operation and delay operation with spectre input.scs simulation Reply

    Hello !!

    I would like to launch from a batch simulation through spectre, a transient simulation and to do an integration of the voltage and current curves to get the consumed power.

    I have not managed yet to find the syntaxe for the "integration operation". Plus I would like to get the syntaxe for a "delay operation".

     

    Extract of the input.scs :

    tran tran stop=6.6nn write="spectre.ic" writefinal="spectre.fc"  annotate=status save=selected maxiters=5 

    finalTimeOP info what=oppoint where=rawfile

    modelParameter info what=models where=rawfile

    element info what=inst where=rawfile

    outputParameter info what=output where=rawfile

    designParamVals info what=parameters where=rawfile

    primitives info what=primitives where=rawfile

    subckts info what=subckts  where=rawfile

    save vinput vss net_pl device_state vdd Rdevice:1

    export power_dyn_consumed = int((i("Rdevice:1") * v("vinput")) 2n 4.6n)

    saveOptions options save=selected subcktprobelvl=2 

     

     

    for the delay, it should be something like :

    delay_writing = delay(?wf1 v("vinput" ?result "tran") ?value1 0.5 ?edge1 "rising" ?nth1 1 ?td1 0.0 ?wf2 v("device_state" ?result "tran") ?value2 0.5 ?edge2 "rising" ?nth2 1 ?td2 0.0 ?stop nil ?multiple nil)

     

     

    Commandline :

    spectre /home/.../simulations/FF_svtsvt_1V_0C/TC_TR/1_0.04//input.scs +log /home/.../simulations/FF_svtsvt_1V_0C/TC_TR/1_0.04//log_file.log

     

     spectre -W

    sub-version  10.1.1.181.isr12 

     

     

    Thanks a lot !! 

    • Post Points: 20
  • Mon, Dec 16 2013 4:04 AM

    Re: integration operation and delay operation with spectre input.scs simulation Reply

    The export statement in the netlist is:

    1. For internal use only - it's supported with ADE (if you see "spectre -h export" you'll see this).
    2. For monte carlo only. It doesn't work for other kinds of analysis. 

    If you want to do this from batch, the right way is to create an MDL script. For example:

    alias measurement doInteg {
     run tran
     export real power_dyn_consumed=integ(trim(i(Rdevice:1)*v(vinput),from=2n,to=4.6n))
    }

    run doInteg

    Put this in a file called "doInteg.mdl" and then you can do:

    spectremdl -design input.scs -batch doInteg.mdl

    and you will then get a file called (by default) doInteg.measure containing the measurement results in.

    The syntax of spectre's Measurement Description Language is covered in the documentation. You can also use "viva -expr MDL" or vivamdl (in IC616) to bring up the MDL calculator to build expressions that way.

    Regards,

    Andrew.

    • Post Points: 5
Page 1 of 1 (2 items)
Sort Posts:
Started by samung at 28 Oct 2013 06:43 AM. Topic has 1 replies.