← Back to team overview

kicad-developers team mailing list archive

Re: Spice netlist with netnumbers

 

Hi,

I think the proper behavior is to use a net name if it was explicitly
given in the schematic, otherwise use an automatically generated
sequential integer with a possible prefix. 

> Using net names instead net numbers allows a easy recognition of
> circuit lines.  Thus, it is easier to write equations for to obtain
> graphs or executing meas scripts. 

Yes.  If I label two signals "final_output_p" and "final_output_m", I
will expect to be able to graph them by those names.  If I don't label
them, I probably won't try to graph them in my simulation anyway. 

BTW, I have written a SPICE post processor that allows math expressions
to be performed on the post processor piece-wise-linear output
variables.  You can add and subtract waveforms by saying things like:

    vnew = v1+v2/3
    vnew2 = max(v1,v2)
    vint = integral(vnew + vnew2)

The gr command will plot any expression or waveform.  Multiple
plots are separated by ";"

    gr integral(delay(v1,10u)+max(v1,v3));  v5

There is a collection of measurement primitives.  For instance you can
measure the time of the nth zero crossing of a signal with

    t1=xcross(v1,3)

If you wanted to know the value of v2 at that moment you could
say:
    
    vm = v2(t1)

It's very handy for evaluating the output of SPICE runs.

    https://www.omnisterra.com/walker/linux/post/

It uses the ascii plotting package:

    https://www.omnisterra.com/walker/linux/pdplot/intro.htm

kind regards,
--
Rick Walker




Follow ups

References