Skip to content

prevent trace detours from crossing same-net labels - #1143

Open
techmannih wants to merge 3 commits into
mainfrom
rprr
Open

prevent trace detours from crossing same-net labels#1143
techmannih wants to merge 3 commits into
mainfrom
rprr

Conversation

@techmannih

Copy link
Copy Markdown
Member

Fixes core repro173, where rerouting the C1-to-R2 ground trace around VM caused it to cross the GND label below R1.

Rejects detours through unrelated labels on the same net and adds corner detours that clear both labels. Preserves labels attached to the moving trace.

Updates the regression test and reviewed snapshots.

Validation: 384 tests passed, 4 skipped; typecheck passed in a clean checkout. Verified core’s original repro with the patched solver.

@vercel

vercel Bot commented Sep 10, 2026

Copy link
Copy Markdown

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

Project Deployment Actions Updated
schematic-trace-solver Ready Ready Preview Sep 10, 2026 4:39pm UTC

Request Review

@MustafaMulla29 MustafaMulla29 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

See comments

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Is this power labels? if its power label then the position of that label is correct, the trace can be simplified for it.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

regression

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

mean now the trace is intersecting other netlabels, correct?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Yea and also if that above symbol is a power symbol then its not solving now with your changes

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Screenshot 2026-09-10 at 8 40 53 PM This is a power label right? if it is then its orientation is wrong its not ground like GND.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

@MustafaMulla29 But it doesn’t contain a GND symbol, right? I mean, a simple net label shouldn’t take the ground orientation, right?

@MustafaMulla29 MustafaMulla29 Sep 10, 2026

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Am asking is that a power label like VCC? if it's a power label then its orientation is wrong in your fix @techmannih

@techmannih techmannih Sep 10, 2026

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

How can I check this? this is power label or not, I mean, this behavior should be documented somewhere, right? Is there a way to verify? Can AI verify this?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Image

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

i m fixing it

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

@techmannih you can add an isPower Boolean to the json input and then emit that Boolean from cores trace solver input. Just like how we have isGround. So with that we can just show the same symbol like we have for ground. That will be easier to identify if they are power labels just by looking at them. Ofc these can be in separate prs

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

Successfully merging this pull request may close these issues.

2 participants