Skip to content

feat: combine close same-net trace segments#391

Open
onchito-walks wants to merge 2 commits into
tscircuit:mainfrom
onchito-walks:fix/combine-same-net-trace-segments
Open

feat: combine close same-net trace segments#391
onchito-walks wants to merge 2 commits into
tscircuit:mainfrom
onchito-walks:fix/combine-same-net-trace-segments

Conversation

@onchito-walks
Copy link
Copy Markdown

Summary

  • Adds a conservative combineCloseSameNetTraceGroups helper that merges close same-net trace segments while preserving original connection-pair ids and pin ids.
  • Wires a new combining_same_net_traces phase into TraceCleanupSolver after untangling and before turn minimization.
  • Includes focused tests for same-net merging, reversed path orientation, and keeping different nets separate.

Verification

  • bun test tests/solvers/TraceCleanupSolver/findCloseSameNetTraceGroups.test.ts tests/solvers/TraceCleanupSolver/combineCloseSameNetTraceGroups.test.ts → 4 pass
  • bunx tsc --noEmit
  • bun run build
  • bun run format

/claim #29

@vercel
Copy link
Copy Markdown

vercel Bot commented May 20, 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 May 22, 2026 12:16am

Request Review

…ion (tscircuit#378)

- Add findCloseSameNetTraceGroups sub-solver that groups same-net traces
  by endpoint proximity (default threshold: 0.5mm)
- Wire into TraceCleanupSolver init and output
- Add focused test coverage for same-net grouping
- All 62 tests pass, typecheck clean, build clean, format clean

Addresses tscircuit#378
Adds a TraceCleanupSolver pipeline phase that merges close same-net trace segments after untangling and before turn minimization.\n\nIncludes unit coverage for same-net merging, reversed trace orientation, and keeping different nets separate.\n\nCo-authored-by: rdthree <rdthree@users.noreply.github.com>
@onchito-walks
Copy link
Copy Markdown
Author

Hey, just checking if you've had a chance to look at this. Happy to make any adjustments.

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.

1 participant