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

Empty subcircuits outputs equal to zero #293

Open
denizzzka opened this issue Jul 21, 2023 · 2 comments
Open

Empty subcircuits outputs equal to zero #293

denizzzka opened this issue Jul 21, 2023 · 2 comments
Labels

Comments

@denizzzka
Copy link

For ease of circuit debugging, I made such stub subcircuit and figured out what it doesn't works as expected without additional zero resistors.

image
image

It was too hard to understand what goes wrong!

@ra3xdh
Copy link
Owner

ra3xdh commented Jul 22, 2023

It is not a bug. The short circuit between the subcircuit ports is not allowed in the Ngspice netlist syntax. You have to add zero-Ohm resistors to obtain short circuit. Open subcircuit ports are in principle allowed.

@denizzzka
Copy link
Author

It is possible to detect this state and display warning?

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

No branches or pull requests

2 participants