Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Documentation for Comparing SPICE Netlists #46

Open
thejackal360 opened this issue Jan 10, 2022 · 1 comment
Open

Documentation for Comparing SPICE Netlists #46

thejackal360 opened this issue Jan 10, 2022 · 1 comment

Comments

@thejackal360
Copy link

From my understanding, netgen is supposed to be able to diff two SPICE netlists. The documentation is a bit unclear on how to do this.

For instance, netlist 0 is...

V1 1 0 1
R1 1 0 1

Netlist 1 is...

V1 1 0 1
R1 1 0 1
R2 1 0 1

I'm trying to get netgen to tell me, "Sorry, these are different netlists." Then when I remove "R2 1 0 1" from netlist 1, it should tell me that they're the same. It seems like this should be one command line call, no?

@RTimothyEdwards
Copy link
Owner

Assuming that you name one of the netlists a.spice and the other b.spice, then netgen -batch lvs a.spice b.spice should work. Be aware: Netgen will treat the two resistors in the second netlist as two resistances in parallel, and so it will come to the conclusion that the circuits match topologically, but that they differ by property value (one resistor is 1 ohm, and the two resistors in parallel are 0.5 ohm). To prohibit that would require a setup file that tells netgen that resistors should not be combined in parallel, but it's doable.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants