Skip to content

feat: specialized linear layout solver for decoupling capacitors#67

Open
Angelebeats wants to merge 1 commit intotscircuit:mainfrom
Angelebeats:feat-decap-linear-layout
Open

feat: specialized linear layout solver for decoupling capacitors#67
Angelebeats wants to merge 1 commit intotscircuit:mainfrom
Angelebeats:feat-decap-linear-layout

Conversation

@Angelebeats
Copy link
Copy Markdown

This PR introduces a dedicated DecouplingCapLinearLayoutSolver to ensure decoupling capacitors are perfectly aligned in a single row.

Key Improvements:

  • Precision Alignment: Implements a specific solver for decoupling_caps partitions that enforces linear horizontal placement.
  • Enhanced Identification: Refactored IdentifyDecouplingCapsSolver to be more flexible, supporting both horizontal and vertical orientations and relaxing unnecessary rotation constraints.
  • Robustness: Fixed a crash in Side.ts normalization for the op side.
  • Verification: Included a comprehensive test case in ests/LayoutPipelineSolver/DecouplingCapLinear.test.ts verifying perfect alignment for 10 capacitors of mixed sizes.

Closes #15. /claim #15

@vercel
Copy link
Copy Markdown

vercel Bot commented Apr 22, 2026

@Angelebeats is attempting to deploy a commit to the tscircuit Team on Vercel.

A member of the Team first needs to authorize it.

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.

Specialized Layout for Decoupling Capacitors

1 participant