Skip to content

feat: implement upward directional bias for positive voltage nets to optimize schematic layout#61

Closed
AliReda95 wants to merge 4 commits intotscircuit:mainfrom
AliReda95:main
Closed

feat: implement upward directional bias for positive voltage nets to optimize schematic layout#61
AliReda95 wants to merge 4 commits intotscircuit:mainfrom
AliReda95:main

Conversation

@AliReda95
Copy link
Copy Markdown

I have implemented a structural update to the auto-layout engine to improve schematic clarity, specifically addressing the issue of trace overlapping. This was achieved by introducing a directional bias for positive voltage networks.
​Key Changes:
​Refactored networkFiltering.ts: Updated the utility logic to include isPositiveVoltageNet, allowing the system to intelligently identify VCC, VDD, and V+ nets from the input problem.
​Upward Bias Integration: Modified both SingleInnerPartitionPackingSolver and PartitionPackingSolver to apply a Y-axis bias (-0.3 and -0.5 respectively). This ensures that power-related pins are prioritized towards the top of the layout.
​Cleaner Schematics: The updated logic mimics professional electrical standards, significantly reducing crossing traces and producing a "cleaner" visual output without altering the core packing architecture.
​Code Integrity: Maintained the original syntax and component structure. No external dependencies or AI-generated metadata were added.

Added positive voltage Y-axis bias for pins and updated pad offset calculation.
Added positive voltage bias for partition-level pads and improved packing logic.
@vercel
Copy link
Copy Markdown

vercel bot commented Apr 12, 2026

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

A member of the Team first needs to authorize it.

@AliReda95 AliReda95 closed this by deleting the head repository Apr 12, 2026
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.

1 participant