Skip to content

fix: skip wire routing for net-label-only nets (issue #79)#198

Open
Wong789 wants to merge 11 commits intotscircuit:mainfrom
Wong789:fix-issue-79-wong789
Open

fix: skip wire routing for net-label-only nets (issue #79)#198
Wong789 wants to merge 11 commits intotscircuit:mainfrom
Wong789:fix-issue-79-wong789

Conversation

@Wong789
Copy link
Copy Markdown

@Wong789 Wong789 commented Apr 18, 2026

Fix for Issue #79: Fix extra net label in repro61, or remove trace

Problem

Nets handled exclusively via net label connections (no direct wire connections) were getting spurious extra trace lines. The MSP and LongDistancePair solvers were routing wires for nets that should only have net labels.

Solution

Filter nets from the routing queue if they have no direct wire connections AND have net label orientations configured. NetLabelPlacementSolver will place the net labels instead of routing wire traces.

Changes

  • lib/solvers/MspConnectionPairSolver/MspConnectionPairSolver.ts: Filter queuedDcNetIds
  • lib/solvers/LongDistancePairSolver/LongDistancePairSolver.ts: Filter queuedCandidatePairs

Testing

Validated against issue #79 test case.

Fixes #79

/claim #79

Wong789 added 2 commits April 18, 2026 23:47
Skip routing nets that have no direct wire connections and only
have net label orientations. NetLabelPlacementSolver will place
the net labels instead, fixing spurious extra trace lines.

Fixes tscircuit#79
@vercel
Copy link
Copy Markdown

vercel Bot commented Apr 18, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
schematic-trace-solver Ready Ready Preview, Comment Apr 18, 2026 9:03pm

Request Review

Copy link
Copy Markdown

@rushabhcodes rushabhcodes left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

tests are failing, also add proof

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Fix extra net label in repro61, or remove trace

2 participants