@tscircuit/schematic-trace-solver 0.0.140 → 0.0.142
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +31 -1
- package/dist/index.js +323 -22
- package/lib/solvers/InlineNetLabelSolver/InlineNetLabelSolver.ts +216 -17
- package/lib/solvers/InlineNetLabelSolver/alignPortOnlyInlineNetLabelStubs.ts +233 -0
- package/lib/solvers/TraceOverlapShiftSolver/TraceOverlapShiftSolver.ts +60 -4
- package/lib/types/InputProblem.ts +13 -0
- package/package.json +1 -1
- package/tests/assets/inline-net-label-port-stub.json +67 -0
- package/tests/repros/__snapshots__/board-1273-trace-overlap-cycle.snap.svg +542 -0
- package/tests/repros/__snapshots__/repro-tida010076-j4-ground-bus.snap.svg +52 -0
- package/tests/repros/__snapshots__/repro-tida010076-page02.snap.svg +624 -0
- package/tests/repros/assets/board-1273-trace-overlap-cycle.input.json +3519 -0
- package/tests/repros/assets/repro-tida010076-page02.input.json +2964 -0
- package/tests/repros/board-1273-trace-overlap-cycle.test.ts +30 -0
- package/tests/repros/repro-tida010076-j4-ground-bus.test.ts +78 -0
- package/tests/repros/repro-tida010076-page02.test.ts +27 -0
- package/tests/solvers/InlineNetLabelSolver/__snapshots__/inline-net-label-port-stub.snap.svg +64 -0
- package/tests/solvers/InlineNetLabelSolver/align-port-only-inline-net-label-stubs-conflict.test.ts +75 -0
- package/tests/solvers/InlineNetLabelSolver/inline-net-label-port-stub.test.ts +82 -0
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
{
|
|
2
|
+
"chips": [
|
|
3
|
+
{
|
|
4
|
+
"chipId": "U1",
|
|
5
|
+
"center": { "x": 0, "y": 0 },
|
|
6
|
+
"width": 1,
|
|
7
|
+
"height": 1,
|
|
8
|
+
"pins": [
|
|
9
|
+
{ "pinId": "U1.1", "x": -0.5, "y": 0.3, "_facingDirection": "x-" },
|
|
10
|
+
{ "pinId": "U1.2", "x": 0.5, "y": -0.2, "_facingDirection": "x+" },
|
|
11
|
+
{ "pinId": "U1.3", "x": -0.5, "y": -0.1, "_facingDirection": "x-" },
|
|
12
|
+
{ "pinId": "U1.4", "x": -0.2, "y": 0.5, "_facingDirection": "y+" },
|
|
13
|
+
{ "pinId": "U1.5", "x": 0.2, "y": -0.5, "_facingDirection": "y-" }
|
|
14
|
+
]
|
|
15
|
+
}
|
|
16
|
+
],
|
|
17
|
+
"directConnections": [],
|
|
18
|
+
"netConnections": [
|
|
19
|
+
{
|
|
20
|
+
"netId": "NET_PRU0_MII_TX_CLK1",
|
|
21
|
+
"pinIds": ["U1.1"],
|
|
22
|
+
"netLabelWidth": 1.65,
|
|
23
|
+
"allowInlineNetLabel": true,
|
|
24
|
+
"inlineNetLabelWidth": 1.65,
|
|
25
|
+
"inlineNetLabelHeight": 0.12
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
"netId": "NET_PRU0_MII_RXLINK1",
|
|
29
|
+
"pinIds": ["U1.2"],
|
|
30
|
+
"netLabelWidth": 1.6,
|
|
31
|
+
"allowInlineNetLabel": true,
|
|
32
|
+
"inlineNetLabelWidth": 1.6,
|
|
33
|
+
"inlineNetLabelHeight": 0.12
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
"netId": "NET_MDC",
|
|
37
|
+
"pinIds": ["U1.3"],
|
|
38
|
+
"netLabelWidth": 0.65,
|
|
39
|
+
"allowInlineNetLabel": true,
|
|
40
|
+
"inlineNetLabelWidth": 0.65,
|
|
41
|
+
"inlineNetLabelHeight": 0.12
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
"netId": "NET_TOP",
|
|
45
|
+
"pinIds": ["U1.4"],
|
|
46
|
+
"netLabelWidth": 0.75,
|
|
47
|
+
"allowInlineNetLabel": true,
|
|
48
|
+
"inlineNetLabelWidth": 0.75,
|
|
49
|
+
"inlineNetLabelHeight": 0.12
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
"netId": "NET_BOTTOM",
|
|
53
|
+
"pinIds": ["U1.5"],
|
|
54
|
+
"netLabelWidth": 0.95,
|
|
55
|
+
"allowInlineNetLabel": true,
|
|
56
|
+
"inlineNetLabelWidth": 0.95,
|
|
57
|
+
"inlineNetLabelHeight": 0.12
|
|
58
|
+
}
|
|
59
|
+
],
|
|
60
|
+
"availableNetLabelOrientations": {
|
|
61
|
+
"NET_PRU0_MII_TX_CLK1": ["x-", "x+"],
|
|
62
|
+
"NET_PRU0_MII_RXLINK1": ["x-", "x+"],
|
|
63
|
+
"NET_MDC": ["x-", "x+"],
|
|
64
|
+
"NET_TOP": ["x-", "x+"],
|
|
65
|
+
"NET_BOTTOM": ["x-", "x+"]
|
|
66
|
+
}
|
|
67
|
+
}
|