feat: add PowerNetVerticalBiasSolver to improve schematic layout#71
Open
selenaalpha77-sketch wants to merge 3 commits intotscircuit:mainfrom
Open
feat: add PowerNetVerticalBiasSolver to improve schematic layout#71selenaalpha77-sketch wants to merge 3 commits intotscircuit:mainfrom
selenaalpha77-sketch wants to merge 3 commits intotscircuit:mainfrom
Conversation
…ircuit#12) Adds a new post-pack pipeline phase (PowerNetVerticalBiasSolver) that improves schematic layout readability by applying a vertical bias based on power/ground net connectivity: - Chips connected to positive-voltage nets (VCC, VDD, V+) are shifted upward, following conventional schematic layout where power is at the top. - Chips connected to ground nets (GND, VSS) are shifted downward. - Chips with no power/ground affiliation or balanced connections remain at their packed positions. The solver runs as the final phase in LayoutPipelineSolver after PartitionPackingSolver. getOutputLayout() and visualize() both return the biased layout when available. Fixes tscircuit#12
…sing export convertCircuitJsonToSchematicSimulationSvg was not exported in the old version of circuit-to-svg, causing test failures. Update to latest compatible versions.
|
@selenaalpha77-sketch is attempting to deploy a commit to the tscircuit Team on Vercel. A member of the Team first needs to authorize it. |
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.
Fixes #12
/claim #12
Adds
PowerNetVerticalBiasSolveras a post-packing phase inLayoutPipelineSolver:This follows the conventional schematic layout principle where power flows downward, making schematics more readable and matching industry standards.
Changes
lib/solvers/PowerNetVerticalBiasSolver/PowerNetVerticalBiasSolver.ts— new solverlib/solvers/LayoutPipelineSolver/LayoutPipelineSolver.ts— integrates new solvertests/LayoutPipelineSolver/PowerNetVerticalBias.test.ts— test coveragepackage.json— update deps to fix test suite (circuit-to-svg missing export)