Add same-net trace combining phase#294
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: e9c66a977b
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| if ( | ||
| this.crossesDifferentNetTrace( | ||
| movingSegment.traceIndex, | ||
| nextPath, | ||
| movingSegment.segmentIndex, |
There was a problem hiding this comment.
Preserve obstacle clearance when snapping same-net segments
The snap acceptance path only rejects moves when crossesDifferentNetTrace(...) is true, then immediately commits tracePath: simplifyPath(nextPath), so this phase can shift a segment into a chip/body obstacle without any geometry guard. Because the pipeline wires this solver with only traces (no inputProblem obstacles), dense layouts can regress from valid routed traces to traces that cut through components after this phase, which downstream steps do not re-validate.
Useful? React with 👍 / 👎.
There was a problem hiding this comment.
Fixed in 7223eee. The pipeline now passes inputProblem into SameNetTraceCombiningSolver; the solver builds chip obstacle rects with the existing getObstacleRects helper and rejects candidate snaps when any changed segment intersects a chip obstacle. Added a focused regression for this case.
Verification:
- npx -y bun@latest test tests/solvers/SameNetTraceCombiningSolver/SameNetTraceCombiningSolver.test.ts
- npx -y bun@latest test
- npx -y bun@latest run build
- npx -y bun@latest run format:check
e9c66a9 to
7223eee
Compare
|
Reproduction/proof note for #29/#34:
This is why the same implementation claims both |
/claim #29
/claim #34
Summary
SameNetTraceCombiningSolveras a post-cleanup pipeline phaseProof
test,format-check,type-check, and VercelVerification
npx -y bun@latest test tests/solvers/SameNetTraceCombiningSolver/SameNetTraceCombiningSolver.test.tsnpx -y bun@latest testnpx -y bun@latest run buildnpx -y bun@latest run format:check