Place single rail-only decoupling capacitors beside their chips - #193
Draft
mohan-bee wants to merge 10 commits into
Draft
Place single rail-only decoupling capacitors beside their chips#193mohan-bee wants to merge 10 commits into
mohan-bee wants to merge 10 commits into
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
mohan-bee
commented
Jul 31, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Motivation
A single rail-only decoupling capacitor was identified as belonging to a chip and assigned to the correct side, but it was left as an ordinary standalone partition. Without a strongly connected component on that side, the later placement pass also had no alignment anchor. In the power-section reproduction this left C1 far above and to the right of U3 instead of beside U3's left edge.
Change
2 × chipGapfor decoupling rows; reject the side move instead of placing them closer when that clearance collides.2 × chipGapfrom U3 without overlaps.Evidence
The existing
repro-power-sectioninput exercises the missing case: C1 shares U3's positive and ground rails but has no direct pin-to-pin connection. The regression now checks the resulting geometry numerically in addition to the SVG snapshot.Tests
bun test— 81 passed, 1 skipped, 0 failedbun run format:checkbun run build