Skip to content

feat: specialized layout for decoupling capacitor partitions#123

Open
kkk02180218 wants to merge 1 commit into
tscircuit:mainfrom
kkk02180218:fix/issue-15-decoupling-cap-bank-layout
Open

feat: specialized layout for decoupling capacitor partitions#123
kkk02180218 wants to merge 1 commit into
tscircuit:mainfrom
kkk02180218:fix/issue-15-decoupling-cap-bank-layout

Conversation

@kkk02180218
Copy link
Copy Markdown

Summary

  • Adds DecouplingCapBankLayoutSolver: a single-step deterministic solver that lays out a decoupling-cap partition as a uniform bank
  • All caps oriented with VCC pin facing y+ and GND pin facing y-, matching datasheet convention
  • Caps placed side-by-side with configurable pitch (capWidth + decouplingCapsGap); wraps into multiple balanced rows when count > 8 (max 8 per row)
  • PackInnerPartitionsSolver now routes partitionType=decoupling_caps partitions through the new solver instead of SingleInnerPartitionPackingSolver

Test plan

  • 5 new unit tests for DecouplingCapBankLayoutSolver (single-row pitch, 0 rotation when VCC on pin1, 180 rotation when GND on pin1, multi-row wrap at >8 caps, empty partition)
  • All 26 existing tests continue to pass

Closes #15

/attempt #15

Generated with Claude Code

…p layout (tscircuit#15)

Routes partitions with partitionType=decoupling_caps through a new deterministic
bank layout: caps sorted by ID, VCC pin oriented y+, GND pin y-, max 8 per row with
multi-row wrapping. Wires into PackInnerPartitionsSolver alongside the existing
SingleInnerPartitionPackingSolver.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@vercel
Copy link
Copy Markdown

vercel Bot commented Jun 5, 2026

@kaicable218-lab 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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Specialized Layout for Decoupling Capacitors

2 participants