PySpice
PySpice copied to clipboard
Netlist viewer
- https://sourceforge.net/projects/netlistviewer
- https://networkx.github.io
- http://www.graphviz.org
- https://stackoverflow.com/questions/7922960/block-diagram-layout-with-dot-graphviz
A graph is defined by nodes and vertices. A circuit is defined by devices and connections (tracks or nodes in SPICE) between their pins/ports.
graph G
{
node[shape=record];
V1[label="{ {<p>p} | V1 | {<m>m} }"];
V2[label="{ {<p>p} | V2 | {<m>m} }"];
R1[label="{ {<p>p} | R1 | {<m>m} }"];
R2[label="{ {<p>p} | R2 | {<m>m} }"];
R3[label="{ {<p>p} | R3 | {<m>m} }"];
Q1[label="{ {<b>b} | Q1 | {<c>c|<e>e} }"];
node[shape=circle];
GND[label="0"];
N1[label="1"];
N2[label="2"];
N3[label="3"];
N4[label="4"];
N5[label="5"];
V1:m -- GND;
V1:p -- N1;
V2:m -- GND;
V2:p -- N2;
R1:p -- N1;
R1:m -- N3;
Q1:b -- N3;
Q1:e -- N5;
Q1:c -- N4;
R2:p -- N2;
R2:m -- N4;
R3:p -- N5;
R3:m -- GND;
}
neato -Tpng -otest.png graph.dot


I would love this feature.
Related discussion: https://sourceforge.net/p/ngspice/discussion/133842/thread/53f77cff7d/?limit=25