SPICE netlist wires the wrong node to a subcircuit port when an earlier pin is unconnected
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 85/100
Research direction
Start with add_subcircuit_to_circuit, where positional nodes are built, and inspect how unconnected pins are skipped. Reproduce with a three-pin subcircuit, assigning only pins 1 and 3 before calling generate_netlist(). Done means the netlist preserves the missing pin position with an NC_X1_2 node, and a regression test covers the shifted-port case.
Written by the indexing model from the issue text.
Description
With a .subckt tri p1 p2 p3 part, connecting only p1 and p3 gives
X1 a c tri
so c ends up on p2 instead of p3. add_subcircuit_to_circuit skips unconnected pins when building the positional node list, so everything after the gap shifts down one port. Expected something like X1 a NC_X1_2 c tri.
Repro: load a lib with that subckt, tri[1] += a; tri[3] += c, generate_netlist().
- Dominant language
- Python
- Stars
- 1.7k
- Forks
- 184
- PR merge metrics
- No merged PRs in 30d
Getting set up
This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from devbisme/skidl
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
-
[SKiDL BUG] Using components that do not contain a defined datasheet property throws 'Key Error'Openbug
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
-
enhancement
Difficulty 5/5 Over a week Newbie friendliness 35/100
-
bug
Difficulty 3/5 1-2 days Newbie friendliness 48/100
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
pimutils/vdirsyncer#1242 ·
-
priority:P2
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
QuantConnect/lean-cli#792 ·
Maintainers usually reply within 1 day
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
open-webui/open-webui#35360 · 1 comment ·
Maintainers usually reply within 1 day
-
Suggest link: Destiny Verify (MIT zero-dependency pre-commit security, citation & link hygiene CLI)Open
Difficulty 1/5 Under an hour Newbie friendliness 68/100
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 85/100
Maintainers usually reply within 1 day