#21 support .ic/.nodeset with alphabet port name

open
nobody
5
2012-12-03
2012-12-03
Simon Y.H Chen
No

Dear friends,
Please support .ic and .nodeset like this:
.IC V(NODE)=val
.IC V(INST.PORT)=val
for example:

---------------------------------
.option noacct nopage
.subckt inv PWR VSS IN OUT
cap OUT OUT_I 5u
mp OUT_I IN PWR PWR pch l=1u w=2u
mn OUT_I IN VSS VSS nch l=1u w=1u
.model nch NMOS ( level=1 )
.model pch PMOS ( level=1 )
.ends

VDD VDD 0 3
VI I 0 PWL(0 0 100n 3 )
cap 1 0 1p
xinv VDD 0 I 1 inv
*.nodeset v(1)=3 *FAIL
*.ic v(1)=3 *OK
*.ic v(xinv.out)=3 *FAIL
.tran 10n 1000n
.plot tran v(1)
.end

Discussion

  • Holger Vogt
    Holger Vogt
    2012-12-03

    Simon,

    .IC V(NODE)=val

    is supported!
    .ic converges, .nodeset does not help for convergence if two capacitors put in series on node 1.

    .ic v(xinv.out)=3 is supported, but node xinv.out is not available (as the simulator tells you!).

    Please do a
    listing expand
    after loading the circuit to see which nodes are availabe.

    Holger

     
  • Simon Y.H Chen
    Simon Y.H Chen
    2012-12-04

    Dear Holger,

    In this deck, does
    .ic v(1)=3 and .ic v(xinv.out)=3 should be ok for both?
    Although simulator treat xinc.out as node 1 and not to list node xinc.out, users always think this node should be exist since it was declare in the subckut port list.

    I wish you to transform .ic v(xinv.out)=3 to be .ic v(1)=3 automatically so that users could focus on the netlist part rather than to digger why xinv.out is disappear.

    Very thanks,
    Simon