Re: [ng-spice] PS.
>All subckts nodes are local - this is the idea. Spice allows to give
>node names instead of numbers, but this not makes them global. Only node
>0 is global. Spice parser expands subckts and change node names to make
>them unique and I think that is right.
Yes, I was thinking about that last night, and decided that what
you're saying is the case, i.e. that the only way to access global
nodes is to bring them in via the .subckt line.
I need to think more about the change you made. I just looked at the
way f and h are handled, and, like you say, the w line has the same
format, i.e. two nodes and a voltage source, so they should all work
the same way.
So does that mean that f, h and w can only use voltage sources within
the subcircuit ?
How is the b (arbitrary source) handled ? You can ask for the current
in a voltage source in the arbitrary equation, can't you ? Does that
work properly ?
Cheers,
Alan
Partial thread listing: