Skip to content

Conversation

@ManbirS07
Copy link

/claim #12

This PR improves schematic layout clarity and test reliability by:

Adding a VoltageBiasSolver that biases chips with positive voltage nets (VCC/VDD/V+) upward for conventional schematic readability.
Adding an OverlapResolutionSolver that detects and nudges apart overlapping chip placements using a bounding-box approach and chip sizes when available.
Integrating both phases into the LayoutPipelineSolver pipeline.
Adding targeted assertions to verify “no overlaps” and the presence of an upward bias for VCC/V* chips.

Key changes

  1. New solvers
    VoltageBiasSolver.ts:
    Scans netMap for positive-voltage nets and biases connected chips upward.
    OverlapResolutionSolver:
    Performs pairwise overlap checks and minimal nudging using chip sizes and ensures spacing via a minGap.

2 )Pipeline wiring
voltageBiasSolver added before packInnerPartitionsSolver.
overlapResolutionSolver added after partitionPackingSolver (operates on final layout).
onSolved hooks used only where data must be captured downstream.

@vercel
Copy link

vercel bot commented Sep 15, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Comments Updated (UTC)
matchpack Ready Ready Preview Comment Sep 15, 2025 9:36am

fix: robustly resolve all chip overlaps in OverlapResolutionSolver
Deep clone chip placements to avoid mutation
Iteratively push overlapping chips apart until no overlaps remain
If overlaps persist, aggressively scatter chips and rerun resolution
Throw error if overlaps remain after max attempts
Copy link
Author

@ManbirS07 ManbirS07 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tried to fix the overlapResolutionSolver file

Ran npm run format to format the code according to the requirements
Copy link
Author

@ManbirS07 ManbirS07 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Refactored the code

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