Prevent schematic traces from being draw...

Hi, I am trying to solve issue https://github.com/tscircuit/core/issues/1264 but I'm having trouble finding a good solution. The idea that comes to mind is to introduce 'keep-out' regions in the space where the solver is not allowed to place line traces. This would require adding a new parameter to the InputProblem to define the dimensions of the text labels. Am I on the right path?
12 Replies
Rishabh
Rishabh4w ago
core will be passing the netLabel widths to the trace-solver, I have made a PR sometime back about the netLabelWidth
0hmx
0hmxOP4w ago
I am looking into the NetLabel.ts file. Currently, I do not see any logic regarding how to obtain the width and height. A link to the PR would be great, so I can understand how you calculate the width.
Rishabh
Rishabh4w ago
This is the PR which is yet to merge in core, but you shouldn't be blocked by this. You can create an example in trace-solver where the netLabels have the width and proceed with it. https://github.com/tscircuit/core/pull/1322
0hmx
0hmxOP4w ago
Thanks, I will make a test case and proceed with that
Seve
Seve4w ago
Just want to make a note: For this issue I think we should introduce a new pipeline phase that reroutes traces that go through net labels that were assigned "as a fallback" rather than introduce keepout areas outside of pins. It is possible the keepout solution will work or even be better, but it has a "phantom netlabel routing" issue where traces won't be routed where net labels COULD be, which may look weird or counterintuitive in some cases
0hmx
0hmxOP4w ago
@Seve is the kind of solution you guys are looking for?
No description
0hmx
0hmxOP4w ago
cc: @Rishabh
Rishabh
Rishabh4w ago
Yeah, It kind of looks good to me
0hmx
0hmxOP4w ago
No description
Seve
Seve4w ago
Probably ok, it might be messier than doing “larger shifts”, but can look at pr to decide! Nice work!
0hmx
0hmxOP4w ago
GitHub
Prevent schematic traces from being drawn through net labels by 0hm...
ref: #1264 introduce a new solver that will run at the end and adjust the labels
0hmx
0hmxOP3w ago
@Rishabh Could you take a look at this comment you left? I fixed it up with some new logic https://github.com/tscircuit/schematic-trace-solver/pull/60#discussion_r2345881928 Sorry for retagging, but I put the last message in the wrong thread. Rishabh deleted that and putting it here!

Did you find this page helpful?