@tscircuit/schematic-trace-solver 0.0.87 → 0.0.89
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/.agents/skills/schematic-trace-visualization/SKILL.md +115 -0
- package/.github/scripts/import-json-bug-report.ts +15 -1
- package/.github/workflows/json-bug-report.yml +3 -2
- package/AGENTS.md +22 -0
- package/dist/index.js +30 -22
- package/lib/solvers/Example28Solver/reroute.ts +10 -0
- package/lib/testing/PipelineStageDebugRunner.ts +344 -0
- package/package.json +3 -2
- package/scripts/debug-pipeline-stages.ts +146 -0
- package/site/bug-reports/bug-report-20260706T220324Z.page.tsx +4 -0
- package/site/bug-reports/bug-report-20260707T020342Z.page.tsx +4 -0
- package/site/bug-reports/bug-report-20260707T092615Z.page.tsx +4 -0
- package/site/bug-reports/bug-report-20260707T134549Z.page.tsx +4 -0
- package/site/bug-reports/bug-report-20260707T134722Z.page.tsx +4 -0
- package/site/bug-reports/bug-report-20260707T140410Z.page.tsx +4 -0
- package/site/bug-reports/bug-report-20260707T141025Z.page.tsx +4 -0
- package/site/bug-reports/bug-report-20260707T141421Z.page.tsx +4 -0
- package/tests/bug-reports/bug-report-20260706T213649Z/__snapshots__/bug-report-20260706T213649Z.snap.svg +386 -0
- package/tests/bug-reports/bug-report-20260706T213649Z/bug-report-20260706T213649Z.json +1471 -0
- package/tests/bug-reports/bug-report-20260706T213649Z/bug-report-20260706T213649Z.test.ts +12 -0
- package/tests/bug-reports/bug-report-20260706T220324Z/__snapshots__/bug-report-20260706T220324Z.snap.svg +357 -3448
- package/tests/bug-reports/bug-report-20260707T020342Z/__snapshots__/bug-report-20260707T020342Z.snap.svg +64 -0
- package/tests/bug-reports/bug-report-20260707T020342Z/bug-report-20260707T020342Z.json +233 -0
- package/tests/bug-reports/bug-report-20260707T020342Z/bug-report-20260707T020342Z.test.ts +12 -0
- package/tests/bug-reports/bug-report-20260707T092615Z/__snapshots__/bug-report-20260707T092615Z.snap.svg +252 -0
- package/tests/bug-reports/bug-report-20260707T092615Z/bug-report-20260707T092615Z.json +1392 -0
- package/tests/bug-reports/bug-report-20260707T092615Z/bug-report-20260707T092615Z.test.ts +12 -0
- package/tests/bug-reports/bug-report-20260707T134549Z/__snapshots__/bug-report-20260707T134549Z.snap.svg +124 -0
- package/tests/bug-reports/bug-report-20260707T134549Z/bug-report-20260707T134549Z.json +652 -0
- package/tests/bug-reports/bug-report-20260707T134549Z/bug-report-20260707T134549Z.test.ts +12 -0
- package/tests/bug-reports/bug-report-20260707T134722Z/__snapshots__/bug-report-20260707T134722Z.snap.svg +73 -0
- package/tests/bug-reports/bug-report-20260707T134722Z/bug-report-20260707T134722Z.json +265 -0
- package/tests/bug-reports/bug-report-20260707T134722Z/bug-report-20260707T134722Z.test.ts +12 -0
- package/tests/bug-reports/bug-report-20260707T140410Z/__snapshots__/bug-report-20260707T140410Z.snap.svg +154 -0
- package/tests/bug-reports/bug-report-20260707T140410Z/bug-report-20260707T140410Z.json +610 -0
- package/tests/bug-reports/bug-report-20260707T140410Z/bug-report-20260707T140410Z.test.ts +12 -0
- package/tests/bug-reports/bug-report-20260707T141025Z/__snapshots__/bug-report-20260707T141025Z.snap.svg +67 -0
- package/tests/bug-reports/bug-report-20260707T141025Z/bug-report-20260707T141025Z.json +185 -0
- package/tests/bug-reports/bug-report-20260707T141025Z/bug-report-20260707T141025Z.test.ts +12 -0
- package/tests/bug-reports/bug-report-20260707T141421Z/__snapshots__/bug-report-20260707T141421Z.snap.svg +114 -0
- package/tests/bug-reports/bug-report-20260707T141421Z/bug-report-20260707T141421Z.json +499 -0
- package/tests/bug-reports/bug-report-20260707T141421Z/bug-report-20260707T141421Z.test.ts +23 -0
- package/tests/examples/__snapshots__/example01.snap.svg +59 -162
- package/tests/examples/__snapshots__/example02.snap.svg +64 -273
- package/tests/examples/__snapshots__/example03.snap.svg +85 -290
- package/tests/examples/__snapshots__/example04.snap.svg +50 -94
- package/tests/examples/__snapshots__/example05.snap.svg +73 -191
- package/tests/examples/__snapshots__/example06.snap.svg +49 -95
- package/tests/examples/__snapshots__/example07.snap.svg +65 -218
- package/tests/examples/__snapshots__/example08.snap.svg +61 -143
- package/tests/examples/__snapshots__/example09.snap.svg +123 -493
- package/tests/examples/__snapshots__/example10.snap.svg +57 -136
- package/tests/examples/__snapshots__/example11.snap.svg +64 -173
- package/tests/examples/__snapshots__/example12.snap.svg +58 -159
- package/tests/examples/__snapshots__/example13.snap.svg +78 -348
- package/tests/examples/__snapshots__/example14.snap.svg +77 -293
- package/tests/examples/__snapshots__/example15.snap.svg +140 -984
- package/tests/examples/__snapshots__/example16.snap.svg +62 -162
- package/tests/examples/__snapshots__/example17.snap.svg +67 -198
- package/tests/examples/__snapshots__/example18.snap.svg +69 -249
- package/tests/examples/__snapshots__/example19.snap.svg +63 -202
- package/tests/examples/__snapshots__/example20.snap.svg +60 -148
- package/tests/examples/__snapshots__/example21.snap.svg +73 -298
- package/tests/examples/__snapshots__/example22.snap.svg +62 -156
- package/tests/examples/__snapshots__/example23.snap.svg +66 -172
- package/tests/examples/__snapshots__/example24.snap.svg +64 -164
- package/tests/examples/__snapshots__/example25.snap.svg +76 -299
- package/tests/examples/__snapshots__/example26.snap.svg +64 -164
- package/tests/examples/__snapshots__/example27.snap.svg +83 -300
- package/tests/examples/__snapshots__/example28.snap.svg +54 -115
- package/tests/examples/__snapshots__/example29.snap.svg +257 -1299
- package/tests/examples/__snapshots__/example30.snap.svg +91 -293
- package/tests/examples/__snapshots__/example31.snap.svg +47 -88
- package/tests/examples/__snapshots__/example32.snap.svg +107 -405
- package/tests/examples/__snapshots__/example33.snap.svg +71 -180
- package/tests/examples/__snapshots__/example34.snap.svg +55 -116
- package/tests/examples/__snapshots__/example35.snap.svg +69 -176
- package/tests/examples/__snapshots__/example36.snap.svg +65 -159
- package/tests/examples/__snapshots__/example37.snap.svg +75 -223
- package/tests/examples/__snapshots__/example38.snap.svg +46 -76
- package/tests/examples/__snapshots__/example39.snap.svg +51 -106
- package/tests/examples/__snapshots__/example40.snap.svg +83 -270
- package/tests/examples/__snapshots__/example41.snap.svg +54 -118
- package/tests/examples/__snapshots__/example42.snap.svg +67 -194
- package/tests/examples/__snapshots__/example43.snap.svg +62 -168
- package/tests/examples/__snapshots__/example44.snap.svg +86 -369
- package/tests/examples/__snapshots__/example45.snap.svg +60 -169
- package/tests/examples/__snapshots__/example46.snap.svg +80 -342
- package/tests/examples/__snapshots__/example47.snap.svg +82 -323
- package/tests/examples/__snapshots__/example48.snap.svg +64 -167
- package/tests/examples/__snapshots__/example49.snap.svg +120 -565
- package/tests/examples/__snapshots__/example50.snap.svg +71 -189
- package/tests/fixtures/getLastStepGraphicsObject.ts +38 -0
- package/tests/fixtures/getLastStepSvg.ts +9 -0
- package/tests/repros/__snapshots__/bugreport-001-gnd-overlap.snap.svg +67 -218
- package/tests/repros/__snapshots__/manufacturePartNumber-text-box.snap.svg +47 -87
- package/tests/repros/__snapshots__/netlabel-connector-through-rail-label.snap.svg +73 -272
- package/tests/repros/__snapshots__/repro-atmega328p-fault-pullup.snap.svg +88 -0
- package/tests/repros/__snapshots__/repro-atmega328p-missing-gnd-netlabel.snap.svg +118 -0
- package/tests/repros/__snapshots__/repro-bq24074-battery-charger.snap.svg +94 -395
- package/tests/repros/__snapshots__/repro-cc2340r5.snap.svg +88 -467
- package/tests/repros/__snapshots__/repro-ina237-current-monitor.snap.svg +109 -569
- package/tests/repros/__snapshots__/repro130-bq27441-fuel-gauge-trace-through-c1.snap.svg +95 -459
- package/tests/repros/__snapshots__/repro51-overlap-junction-crossing.snap.svg +64 -176
- package/tests/repros/__snapshots__/trace-overlap-box-resistor.snap.svg +51 -112
- package/tests/repros/assets/repro-atmega328p-fault-pullup.input.json +239 -0
- package/tests/repros/assets/repro-atmega328p-missing-gnd-netlabel.input.json +432 -0
- package/tests/repros/repro-atmega328p-fault-pullup.test.ts +11 -0
- package/tests/repros/repro-atmega328p-missing-gnd-netlabel.test.ts +16 -0
- package/tests/solvers/SchematicTraceSingleLineSolver2/__snapshots__/SchematicTraceSingleLineSolver2_01-example17-d1_1-u1_1.snap.svg +59 -159
- package/tests/solvers/TraceCleanupSolver/__snapshots__/TraceCleanupSolver.snap.svg +54 -118
- package/tests/solvers/TraceLabelOverlapAvoidanceSolver/__snapshots__/TraceLabelOverlapAvoidanceSolver.snap.svg +58 -245
- package/tests/solvers/TraceLabelOverlapAvoidanceSolver/renderComparisonView/__snapshots__/renderComparisonView01.snap.svg +73 -222
- package/tests/solvers/TraceLabelOverlapAvoidanceSolver/renderComparisonView/__snapshots__/renderComparisonView02.snap.svg +65 -204
- package/tests/solvers/TraceLabelOverlapAvoidanceSolver/renderComparisonView/__snapshots__/renderComparisonView03.snap.svg +65 -183
- package/tests/solvers/TraceLabelOverlapAvoidanceSolver/sub-solver/__snapshots__/MergedNetLabelObstacles.snap.svg +54 -139
- package/tests/solvers/TraceLabelOverlapAvoidanceSolver/sub-solver/__snapshots__/OverlapAvoidanceStepSolver.snap.svg +61 -215
- package/tests/solvers/TraceLabelOverlapAvoidanceSolver/sub-solver/__snapshots__/SingleOverlapSolver.snap.svg +54 -124
|
@@ -0,0 +1,610 @@
|
|
|
1
|
+
{
|
|
2
|
+
"chips": [
|
|
3
|
+
{
|
|
4
|
+
"chipId": "schematic_component_0",
|
|
5
|
+
"center": {
|
|
6
|
+
"x": 2.2600000000000007,
|
|
7
|
+
"y": 0
|
|
8
|
+
},
|
|
9
|
+
"width": 3.8,
|
|
10
|
+
"height": 7,
|
|
11
|
+
"pins": [
|
|
12
|
+
{
|
|
13
|
+
"pinId": "U1.1",
|
|
14
|
+
"x": 0.36000000000000076,
|
|
15
|
+
"y": 2.7
|
|
16
|
+
},
|
|
17
|
+
{
|
|
18
|
+
"pinId": "U1.2",
|
|
19
|
+
"x": 0.36000000000000076,
|
|
20
|
+
"y": 1.9000000000000001
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
"pinId": "U1.3",
|
|
24
|
+
"x": 0.36000000000000076,
|
|
25
|
+
"y": 1.1
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
"pinId": "U1.4",
|
|
29
|
+
"x": 0.36000000000000076,
|
|
30
|
+
"y": 0.2999999999999998
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
"pinId": "U1.5",
|
|
34
|
+
"x": 0.36000000000000076,
|
|
35
|
+
"y": -0.5000000000000004
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
"pinId": "U1.6",
|
|
39
|
+
"x": 0.36000000000000076,
|
|
40
|
+
"y": -1.3000000000000007
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
"pinId": "U1.7",
|
|
44
|
+
"x": 0.36000000000000076,
|
|
45
|
+
"y": -2.1000000000000005
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
"pinId": "U1.8",
|
|
49
|
+
"x": 4.16,
|
|
50
|
+
"y": 4.440892098500626e-16
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
"pinId": "U1.9",
|
|
54
|
+
"x": 4.16,
|
|
55
|
+
"y": -1
|
|
56
|
+
},
|
|
57
|
+
{
|
|
58
|
+
"pinId": "U1.10",
|
|
59
|
+
"x": 4.16,
|
|
60
|
+
"y": -0.19999999999999973
|
|
61
|
+
},
|
|
62
|
+
{
|
|
63
|
+
"pinId": "U1.11",
|
|
64
|
+
"x": 4.16,
|
|
65
|
+
"y": 2.6000000000000005
|
|
66
|
+
},
|
|
67
|
+
{
|
|
68
|
+
"pinId": "U1.12",
|
|
69
|
+
"x": 4.16,
|
|
70
|
+
"y": 1.8000000000000007
|
|
71
|
+
},
|
|
72
|
+
{
|
|
73
|
+
"pinId": "U1.13",
|
|
74
|
+
"x": 4.16,
|
|
75
|
+
"y": 1.0000000000000009
|
|
76
|
+
},
|
|
77
|
+
{
|
|
78
|
+
"pinId": "U1.14",
|
|
79
|
+
"x": 4.16,
|
|
80
|
+
"y": 0.20000000000000062
|
|
81
|
+
},
|
|
82
|
+
{
|
|
83
|
+
"pinId": "U1.15",
|
|
84
|
+
"x": 4.16,
|
|
85
|
+
"y": -1.8000000000000003
|
|
86
|
+
},
|
|
87
|
+
{
|
|
88
|
+
"pinId": "U1.17",
|
|
89
|
+
"x": 4.16,
|
|
90
|
+
"y": -3.2
|
|
91
|
+
}
|
|
92
|
+
]
|
|
93
|
+
},
|
|
94
|
+
{
|
|
95
|
+
"chipId": "schematic_component_1",
|
|
96
|
+
"center": {
|
|
97
|
+
"x": 2.26,
|
|
98
|
+
"y": 5.795000000000001
|
|
99
|
+
},
|
|
100
|
+
"width": 0.6394553499999995,
|
|
101
|
+
"height": 1.08,
|
|
102
|
+
"pins": [
|
|
103
|
+
{
|
|
104
|
+
"pinId": "V_VM.1",
|
|
105
|
+
"x": 2.255,
|
|
106
|
+
"y": 6.335000000000001
|
|
107
|
+
},
|
|
108
|
+
{
|
|
109
|
+
"pinId": "V_VM.2",
|
|
110
|
+
"x": 2.2649999999999997,
|
|
111
|
+
"y": 5.255000000000001
|
|
112
|
+
}
|
|
113
|
+
]
|
|
114
|
+
},
|
|
115
|
+
{
|
|
116
|
+
"chipId": "schematic_component_2",
|
|
117
|
+
"center": {
|
|
118
|
+
"x": 0.42054464999999963,
|
|
119
|
+
"y": 5.795000000000001
|
|
120
|
+
},
|
|
121
|
+
"width": 0.6394553499999995,
|
|
122
|
+
"height": 1.08,
|
|
123
|
+
"pins": [
|
|
124
|
+
{
|
|
125
|
+
"pinId": "V_CC.1",
|
|
126
|
+
"x": 0.41554464999999957,
|
|
127
|
+
"y": 6.335000000000001
|
|
128
|
+
},
|
|
129
|
+
{
|
|
130
|
+
"pinId": "V_CC.2",
|
|
131
|
+
"x": 0.42554464999999964,
|
|
132
|
+
"y": 5.255000000000001
|
|
133
|
+
}
|
|
134
|
+
]
|
|
135
|
+
},
|
|
136
|
+
{
|
|
137
|
+
"chipId": "schematic_component_3",
|
|
138
|
+
"center": {
|
|
139
|
+
"x": -0.4881243499999989,
|
|
140
|
+
"y": 2.5458007999999994
|
|
141
|
+
},
|
|
142
|
+
"width": 0.39624869999999945,
|
|
143
|
+
"height": 0.8916015999999996,
|
|
144
|
+
"pins": [
|
|
145
|
+
{
|
|
146
|
+
"pinId": "V_EN_PWM.1",
|
|
147
|
+
"x": -0.48806214999999886,
|
|
148
|
+
"y": 2.991601599999999
|
|
149
|
+
},
|
|
150
|
+
{
|
|
151
|
+
"pinId": "V_EN_PWM.2",
|
|
152
|
+
"x": -0.4881865499999989,
|
|
153
|
+
"y": 2.0999999999999996
|
|
154
|
+
}
|
|
155
|
+
]
|
|
156
|
+
},
|
|
157
|
+
{
|
|
158
|
+
"chipId": "schematic_component_4",
|
|
159
|
+
"center": {
|
|
160
|
+
"x": -0.4881243499999989,
|
|
161
|
+
"y": 0.654199199999999
|
|
162
|
+
},
|
|
163
|
+
"width": 0.39624869999999945,
|
|
164
|
+
"height": 0.8916016,
|
|
165
|
+
"pins": [
|
|
166
|
+
{
|
|
167
|
+
"pinId": "V_SLEEP.1",
|
|
168
|
+
"x": -0.48806214999999886,
|
|
169
|
+
"y": 1.099999999999999
|
|
170
|
+
},
|
|
171
|
+
{
|
|
172
|
+
"pinId": "V_SLEEP.2",
|
|
173
|
+
"x": -0.4881865499999989,
|
|
174
|
+
"y": 0.20839839999999898
|
|
175
|
+
}
|
|
176
|
+
]
|
|
177
|
+
},
|
|
178
|
+
{
|
|
179
|
+
"chipId": "schematic_component_5",
|
|
180
|
+
"center": {
|
|
181
|
+
"x": 2.4681089299999996,
|
|
182
|
+
"y": 8.095
|
|
183
|
+
},
|
|
184
|
+
"width": 1.6800000000000002,
|
|
185
|
+
"height": 1.1000000000000014,
|
|
186
|
+
"pins": [
|
|
187
|
+
{
|
|
188
|
+
"pinId": "C_VM_BYPASS.1",
|
|
189
|
+
"x": 1.8931089299999995,
|
|
190
|
+
"y": 8.645000000000001
|
|
191
|
+
},
|
|
192
|
+
{
|
|
193
|
+
"pinId": "C_VM_BYPASS.2",
|
|
194
|
+
"x": 1.8931089299999995,
|
|
195
|
+
"y": 7.545
|
|
196
|
+
}
|
|
197
|
+
]
|
|
198
|
+
},
|
|
199
|
+
{
|
|
200
|
+
"chipId": "schematic_component_6",
|
|
201
|
+
"center": {
|
|
202
|
+
"x": 2.34810893,
|
|
203
|
+
"y": 10.405000000000001
|
|
204
|
+
},
|
|
205
|
+
"width": 1.4400000000000004,
|
|
206
|
+
"height": 1.1000000000000014,
|
|
207
|
+
"pins": [
|
|
208
|
+
{
|
|
209
|
+
"pinId": "C_VM_BULK.1",
|
|
210
|
+
"x": 1.89310893,
|
|
211
|
+
"y": 10.955000000000002
|
|
212
|
+
},
|
|
213
|
+
{
|
|
214
|
+
"pinId": "C_VM_BULK.2",
|
|
215
|
+
"x": 1.89310893,
|
|
216
|
+
"y": 9.855
|
|
217
|
+
}
|
|
218
|
+
]
|
|
219
|
+
},
|
|
220
|
+
{
|
|
221
|
+
"chipId": "schematic_component_7",
|
|
222
|
+
"center": {
|
|
223
|
+
"x": 5.525,
|
|
224
|
+
"y": 3.5000000000000004
|
|
225
|
+
},
|
|
226
|
+
"width": 0.9799999999999995,
|
|
227
|
+
"height": 1.1000000000000005,
|
|
228
|
+
"pins": [
|
|
229
|
+
{
|
|
230
|
+
"pinId": "C_VCP.1",
|
|
231
|
+
"x": 5.300000000000001,
|
|
232
|
+
"y": 2.95
|
|
233
|
+
},
|
|
234
|
+
{
|
|
235
|
+
"pinId": "C_VCP.2",
|
|
236
|
+
"x": 5.300000000000001,
|
|
237
|
+
"y": 4.050000000000001
|
|
238
|
+
}
|
|
239
|
+
]
|
|
240
|
+
},
|
|
241
|
+
{
|
|
242
|
+
"chipId": "schematic_component_8",
|
|
243
|
+
"center": {
|
|
244
|
+
"x": 5.745,
|
|
245
|
+
"y": 1.7000000000000002
|
|
246
|
+
},
|
|
247
|
+
"width": 1.1999999999999993,
|
|
248
|
+
"height": 1.1,
|
|
249
|
+
"pins": [
|
|
250
|
+
{
|
|
251
|
+
"pinId": "C_CP.1",
|
|
252
|
+
"x": 5.41,
|
|
253
|
+
"y": 2.25
|
|
254
|
+
},
|
|
255
|
+
{
|
|
256
|
+
"pinId": "C_CP.2",
|
|
257
|
+
"x": 5.41,
|
|
258
|
+
"y": 1.1500000000000001
|
|
259
|
+
}
|
|
260
|
+
]
|
|
261
|
+
},
|
|
262
|
+
{
|
|
263
|
+
"chipId": "schematic_component_9",
|
|
264
|
+
"center": {
|
|
265
|
+
"x": -1.2589107000000002,
|
|
266
|
+
"y": 5.805000000000001
|
|
267
|
+
},
|
|
268
|
+
"width": 1.0591830249999994,
|
|
269
|
+
"height": 1.0999999999999996,
|
|
270
|
+
"pins": [
|
|
271
|
+
{
|
|
272
|
+
"pinId": "R_REF1.1",
|
|
273
|
+
"x": -1.6287745375,
|
|
274
|
+
"y": 6.355
|
|
275
|
+
},
|
|
276
|
+
{
|
|
277
|
+
"pinId": "R_REF1.2",
|
|
278
|
+
"x": -1.6287745375,
|
|
279
|
+
"y": 5.255000000000001
|
|
280
|
+
}
|
|
281
|
+
]
|
|
282
|
+
},
|
|
283
|
+
{
|
|
284
|
+
"chipId": "schematic_component_10",
|
|
285
|
+
"center": {
|
|
286
|
+
"x": -0.3066187450000004,
|
|
287
|
+
"y": 8.115
|
|
288
|
+
},
|
|
289
|
+
"width": 1.0591830249999992,
|
|
290
|
+
"height": 1.1000000000000014,
|
|
291
|
+
"pins": [
|
|
292
|
+
{
|
|
293
|
+
"pinId": "R_REF2.1",
|
|
294
|
+
"x": -0.6764825825000003,
|
|
295
|
+
"y": 8.665000000000001
|
|
296
|
+
},
|
|
297
|
+
{
|
|
298
|
+
"pinId": "R_REF2.2",
|
|
299
|
+
"x": -0.6764825825000003,
|
|
300
|
+
"y": 7.5649999999999995
|
|
301
|
+
}
|
|
302
|
+
]
|
|
303
|
+
},
|
|
304
|
+
{
|
|
305
|
+
"chipId": "schematic_component_11",
|
|
306
|
+
"center": {
|
|
307
|
+
"x": 1.4213323985714263,
|
|
308
|
+
"y": -5.655
|
|
309
|
+
},
|
|
310
|
+
"width": 1.2991830249999992,
|
|
311
|
+
"height": 1.0999999999999996,
|
|
312
|
+
"pins": [
|
|
313
|
+
{
|
|
314
|
+
"pinId": "R_IPROPI.1",
|
|
315
|
+
"x": 0.9314685610714264,
|
|
316
|
+
"y": -5.105
|
|
317
|
+
},
|
|
318
|
+
{
|
|
319
|
+
"pinId": "R_IPROPI.2",
|
|
320
|
+
"x": 0.9314685610714264,
|
|
321
|
+
"y": -6.205
|
|
322
|
+
}
|
|
323
|
+
]
|
|
324
|
+
},
|
|
325
|
+
{
|
|
326
|
+
"chipId": "schematic_component_12",
|
|
327
|
+
"center": {
|
|
328
|
+
"x": 1.3264685610714282,
|
|
329
|
+
"y": -7.965
|
|
330
|
+
},
|
|
331
|
+
"width": 1.3199999999999998,
|
|
332
|
+
"height": 1.1000000000000014,
|
|
333
|
+
"pins": [
|
|
334
|
+
{
|
|
335
|
+
"pinId": "C_IPROPI.1",
|
|
336
|
+
"x": 0.9314685610714282,
|
|
337
|
+
"y": -7.414999999999999
|
|
338
|
+
},
|
|
339
|
+
{
|
|
340
|
+
"pinId": "C_IPROPI.2",
|
|
341
|
+
"x": 0.9314685610714282,
|
|
342
|
+
"y": -8.515
|
|
343
|
+
}
|
|
344
|
+
]
|
|
345
|
+
},
|
|
346
|
+
{
|
|
347
|
+
"chipId": "schematic_component_13",
|
|
348
|
+
"center": {
|
|
349
|
+
"x": -1.5193191874999983,
|
|
350
|
+
"y": 0.8499999999999996
|
|
351
|
+
},
|
|
352
|
+
"width": 2.139183024999999,
|
|
353
|
+
"height": 1.1,
|
|
354
|
+
"pins": [
|
|
355
|
+
{
|
|
356
|
+
"pinId": "R_NFAULT_PULLUP.1",
|
|
357
|
+
"x": -2.429183024999998,
|
|
358
|
+
"y": 1.3999999999999997
|
|
359
|
+
},
|
|
360
|
+
{
|
|
361
|
+
"pinId": "R_NFAULT_PULLUP.2",
|
|
362
|
+
"x": -2.429183024999998,
|
|
363
|
+
"y": 0.2999999999999996
|
|
364
|
+
}
|
|
365
|
+
]
|
|
366
|
+
},
|
|
367
|
+
{
|
|
368
|
+
"chipId": "schematic_component_14",
|
|
369
|
+
"center": {
|
|
370
|
+
"x": 5.4,
|
|
371
|
+
"y": 0
|
|
372
|
+
},
|
|
373
|
+
"width": 1.08,
|
|
374
|
+
"height": 1,
|
|
375
|
+
"pins": [
|
|
376
|
+
{
|
|
377
|
+
"pinId": "I_MOTOR_PROBE.1",
|
|
378
|
+
"x": 4.86,
|
|
379
|
+
"y": 0
|
|
380
|
+
},
|
|
381
|
+
{
|
|
382
|
+
"pinId": "I_MOTOR_PROBE.2",
|
|
383
|
+
"x": 5.94,
|
|
384
|
+
"y": 0
|
|
385
|
+
}
|
|
386
|
+
]
|
|
387
|
+
},
|
|
388
|
+
{
|
|
389
|
+
"chipId": "schematic_component_15",
|
|
390
|
+
"center": {
|
|
391
|
+
"x": 7.1899999999999995,
|
|
392
|
+
"y": 0.020000000000000018
|
|
393
|
+
},
|
|
394
|
+
"width": 1.1600000000000001,
|
|
395
|
+
"height": 0.8200000000000001,
|
|
396
|
+
"pins": [
|
|
397
|
+
{
|
|
398
|
+
"pinId": "L_MOTOR.1",
|
|
399
|
+
"x": 6.609999999999999,
|
|
400
|
+
"y": 1.734723475976807e-17
|
|
401
|
+
},
|
|
402
|
+
{
|
|
403
|
+
"pinId": "L_MOTOR.2",
|
|
404
|
+
"x": 7.77,
|
|
405
|
+
"y": -0.009999999999999981
|
|
406
|
+
}
|
|
407
|
+
]
|
|
408
|
+
},
|
|
409
|
+
{
|
|
410
|
+
"chipId": "schematic_component_16",
|
|
411
|
+
"center": {
|
|
412
|
+
"x": 5.82945535,
|
|
413
|
+
"y": -1.6999999999999993
|
|
414
|
+
},
|
|
415
|
+
"width": 1.1791830249999995,
|
|
416
|
+
"height": 1.0999999999999999,
|
|
417
|
+
"pins": [
|
|
418
|
+
{
|
|
419
|
+
"pinId": "R_MOTOR.1",
|
|
420
|
+
"x": 5.3995915125,
|
|
421
|
+
"y": -1.1499999999999995
|
|
422
|
+
},
|
|
423
|
+
{
|
|
424
|
+
"pinId": "R_MOTOR.2",
|
|
425
|
+
"x": 5.3995915125,
|
|
426
|
+
"y": -2.249999999999999
|
|
427
|
+
}
|
|
428
|
+
]
|
|
429
|
+
}
|
|
430
|
+
],
|
|
431
|
+
"directConnections": [
|
|
432
|
+
{
|
|
433
|
+
"pinIds": [
|
|
434
|
+
"I_MOTOR_PROBE.1",
|
|
435
|
+
"U1.8"
|
|
436
|
+
],
|
|
437
|
+
"netId": ".I_MOTOR_PROBE > .pos to U1.OUT1"
|
|
438
|
+
},
|
|
439
|
+
{
|
|
440
|
+
"pinIds": [
|
|
441
|
+
"I_MOTOR_PROBE.2",
|
|
442
|
+
"L_MOTOR.1"
|
|
443
|
+
],
|
|
444
|
+
"netId": ".I_MOTOR_PROBE > .neg to L_MOTOR.pin1"
|
|
445
|
+
},
|
|
446
|
+
{
|
|
447
|
+
"pinIds": [
|
|
448
|
+
"V_EN_PWM.1",
|
|
449
|
+
"U1.1"
|
|
450
|
+
],
|
|
451
|
+
"netId": "V_EN_PWM.pin1 to U1.EN"
|
|
452
|
+
},
|
|
453
|
+
{
|
|
454
|
+
"pinIds": [
|
|
455
|
+
"V_SLEEP.1",
|
|
456
|
+
"U1.3"
|
|
457
|
+
],
|
|
458
|
+
"netId": "V_SLEEP.pin1 to U1.nSLEEP"
|
|
459
|
+
},
|
|
460
|
+
{
|
|
461
|
+
"pinIds": [
|
|
462
|
+
"U1.12",
|
|
463
|
+
"C_VCP.1"
|
|
464
|
+
],
|
|
465
|
+
"netId": "U1.VCP to C_VCP.pin1"
|
|
466
|
+
},
|
|
467
|
+
{
|
|
468
|
+
"pinIds": [
|
|
469
|
+
"U1.13",
|
|
470
|
+
"C_CP.1"
|
|
471
|
+
],
|
|
472
|
+
"netId": "U1.CPH to C_CP.pin1"
|
|
473
|
+
},
|
|
474
|
+
{
|
|
475
|
+
"pinIds": [
|
|
476
|
+
"U1.14",
|
|
477
|
+
"C_CP.2"
|
|
478
|
+
],
|
|
479
|
+
"netId": "U1.CPL to C_CP.pin2"
|
|
480
|
+
},
|
|
481
|
+
{
|
|
482
|
+
"pinIds": [
|
|
483
|
+
"R_NFAULT_PULLUP.2",
|
|
484
|
+
"U1.4"
|
|
485
|
+
],
|
|
486
|
+
"netId": "R_NFAULT_PULLUP.pin2 to U1.nFAULT",
|
|
487
|
+
"netLabelWidth": 3.17
|
|
488
|
+
},
|
|
489
|
+
{
|
|
490
|
+
"pinIds": [
|
|
491
|
+
"L_MOTOR.2",
|
|
492
|
+
"R_MOTOR.1"
|
|
493
|
+
],
|
|
494
|
+
"netId": "L_MOTOR.pin2 to R_MOTOR.pin1",
|
|
495
|
+
"netLabelWidth": 2.71
|
|
496
|
+
},
|
|
497
|
+
{
|
|
498
|
+
"pinIds": [
|
|
499
|
+
"R_MOTOR.2",
|
|
500
|
+
"U1.10"
|
|
501
|
+
],
|
|
502
|
+
"netId": "R_MOTOR.pin2 to U1.OUT2"
|
|
503
|
+
}
|
|
504
|
+
],
|
|
505
|
+
"netConnections": [
|
|
506
|
+
{
|
|
507
|
+
"netId": "VCC",
|
|
508
|
+
"pinIds": [
|
|
509
|
+
"U1.2",
|
|
510
|
+
"V_CC.1",
|
|
511
|
+
"R_REF1.1",
|
|
512
|
+
"R_NFAULT_PULLUP.1"
|
|
513
|
+
],
|
|
514
|
+
"netLabelWidth": 0.48,
|
|
515
|
+
"netLabelHeight": 0.42
|
|
516
|
+
},
|
|
517
|
+
{
|
|
518
|
+
"netId": "VREF",
|
|
519
|
+
"pinIds": [
|
|
520
|
+
"U1.5",
|
|
521
|
+
"R_REF1.2",
|
|
522
|
+
"R_REF2.1"
|
|
523
|
+
],
|
|
524
|
+
"netLabelWidth": 0.6,
|
|
525
|
+
"netLabelHeight": 0.42
|
|
526
|
+
},
|
|
527
|
+
{
|
|
528
|
+
"netId": "IPROPI",
|
|
529
|
+
"pinIds": [
|
|
530
|
+
"U1.6",
|
|
531
|
+
"R_IPROPI.1",
|
|
532
|
+
"C_IPROPI.1"
|
|
533
|
+
],
|
|
534
|
+
"netLabelWidth": 0.84
|
|
535
|
+
},
|
|
536
|
+
{
|
|
537
|
+
"netId": "GND",
|
|
538
|
+
"pinIds": [
|
|
539
|
+
"U1.7",
|
|
540
|
+
"U1.9",
|
|
541
|
+
"U1.15",
|
|
542
|
+
"U1.17",
|
|
543
|
+
"V_VM.2",
|
|
544
|
+
"V_CC.2",
|
|
545
|
+
"V_EN_PWM.2",
|
|
546
|
+
"V_SLEEP.2",
|
|
547
|
+
"C_VM_BYPASS.2",
|
|
548
|
+
"C_VM_BULK.2",
|
|
549
|
+
"R_REF2.2",
|
|
550
|
+
"R_IPROPI.2",
|
|
551
|
+
"C_IPROPI.2"
|
|
552
|
+
],
|
|
553
|
+
"netLabelWidth": 0.48,
|
|
554
|
+
"netLabelHeight": 0.42
|
|
555
|
+
},
|
|
556
|
+
{
|
|
557
|
+
"netId": "VM",
|
|
558
|
+
"pinIds": [
|
|
559
|
+
"U1.11",
|
|
560
|
+
"V_VM.1",
|
|
561
|
+
"C_VM_BYPASS.1",
|
|
562
|
+
"C_VM_BULK.1",
|
|
563
|
+
"C_VCP.2"
|
|
564
|
+
],
|
|
565
|
+
"netLabelWidth": 0.36,
|
|
566
|
+
"netLabelHeight": 0.42
|
|
567
|
+
}
|
|
568
|
+
],
|
|
569
|
+
"textBoxes": [
|
|
570
|
+
{
|
|
571
|
+
"chipId": "schematic_component_0",
|
|
572
|
+
"center": {
|
|
573
|
+
"x": 1.1800000000000006,
|
|
574
|
+
"y": -3.63
|
|
575
|
+
},
|
|
576
|
+
"width": 0.8399999999999999,
|
|
577
|
+
"height": 0.17999999999999972,
|
|
578
|
+
"text": "DRV8876"
|
|
579
|
+
},
|
|
580
|
+
{
|
|
581
|
+
"chipId": "schematic_component_0",
|
|
582
|
+
"center": {
|
|
583
|
+
"x": 0.8800000000000007,
|
|
584
|
+
"y": 3.63
|
|
585
|
+
},
|
|
586
|
+
"width": 0.24,
|
|
587
|
+
"height": 0.17999999999999972,
|
|
588
|
+
"text": "U1"
|
|
589
|
+
}
|
|
590
|
+
],
|
|
591
|
+
"availableNetLabelOrientations": {
|
|
592
|
+
"VM": [
|
|
593
|
+
"y+"
|
|
594
|
+
],
|
|
595
|
+
"GND": [
|
|
596
|
+
"y-"
|
|
597
|
+
],
|
|
598
|
+
"VCC": [
|
|
599
|
+
"y+"
|
|
600
|
+
],
|
|
601
|
+
"VREF": [
|
|
602
|
+
"y+"
|
|
603
|
+
],
|
|
604
|
+
"IPROPI": [
|
|
605
|
+
"x-",
|
|
606
|
+
"x+"
|
|
607
|
+
]
|
|
608
|
+
},
|
|
609
|
+
"maxMspPairDistance": 2.4
|
|
610
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { expect, test } from "bun:test"
|
|
2
|
+
import { SchematicTracePipelineSolver } from "lib/solvers/SchematicTracePipelineSolver/SchematicTracePipelineSolver"
|
|
3
|
+
import inputProblem from "./bug-report-20260707T140410Z.json"
|
|
4
|
+
import "tests/fixtures/matcher"
|
|
5
|
+
|
|
6
|
+
test("bug-report-20260707T140410Z", () => {
|
|
7
|
+
const solver = new SchematicTracePipelineSolver(inputProblem as any)
|
|
8
|
+
|
|
9
|
+
solver.solve()
|
|
10
|
+
|
|
11
|
+
expect(solver).toMatchSolverSnapshot(import.meta.path)
|
|
12
|
+
})
|