#15 .param as constants inside of a .control ... .endc section?

closed
None
5
2012-03-06
2011-12-27
Anonymous
No

.param as constants inside of a .control ... .endc section?

Discussion

  • Holger Vogt

    Holger Vogt - 2011-12-28

    Hi,

    not implemented.

    You may try
    Vparam parnode 0 {parameter}

    and the use constant v(parnode) within the .control section

    Regards

    Holger

     
  • Nobody/Anonymous

    Hi,
    Yes - v(parXXX),

    But - v(par1[0-400000]), ...., v(parN[0-400000]),
    memory lost

     
  • Holger Vogt

    Holger Vogt - 2011-12-30

    Hi.

    there is an (still experimental) update to ngspice in CVS introducing .csparam.
    Usage:

    * test csparam

    .param TEMPS = 27
    .csparam newt = {3*TEMPS}
    .csparam mytemp = '2 + TEMPS'

    .control
    echo $&newt $&mytemp
    .endc

    .end

    Regards

    Holger

     
  • Holger Vogt

    Holger Vogt - 2011-12-30
    • assigned_to: nobody --> h_vogt
     
  • Holger Vogt

    Holger Vogt - 2012-03-06
    • status: open --> closed
     

Log in to post a comment.