@tscircuit/schematic-trace-solver 0.0.86 → 0.0.88
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 +86 -10
- package/lib/solvers/Example28Solver/Example28Solver.ts +46 -10
- package/lib/solvers/Example28Solver/countCrossingsWithOtherTraces.ts +19 -0
- package/lib/solvers/Example28Solver/scoreSolutionTracePath.ts +26 -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-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 +2098 -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 +857 -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 +275 -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 +950 -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 +218 -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 +613 -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 +12 -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 -195
- 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 +284 -0
- package/tests/repros/__snapshots__/repro-atmega328p-missing-gnd-netlabel.snap.svg +470 -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,239 @@
|
|
|
1
|
+
{
|
|
2
|
+
"chips": [
|
|
3
|
+
{
|
|
4
|
+
"chipId": "schematic_component_0",
|
|
5
|
+
"center": {
|
|
6
|
+
"x": 10,
|
|
7
|
+
"y": 14
|
|
8
|
+
},
|
|
9
|
+
"width": 2.1999999999999993,
|
|
10
|
+
"height": 3.3999999999999986,
|
|
11
|
+
"pins": [
|
|
12
|
+
{
|
|
13
|
+
"pinId": "U_MCU.1",
|
|
14
|
+
"x": 8.9,
|
|
15
|
+
"y": 15.5
|
|
16
|
+
},
|
|
17
|
+
{
|
|
18
|
+
"pinId": "U_MCU.2",
|
|
19
|
+
"x": 8.9,
|
|
20
|
+
"y": 15.3
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
"pinId": "U_MCU.3",
|
|
24
|
+
"x": 8.9,
|
|
25
|
+
"y": 15.1
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
"pinId": "U_MCU.4",
|
|
29
|
+
"x": 8.9,
|
|
30
|
+
"y": 14.9
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
"pinId": "U_MCU.5",
|
|
34
|
+
"x": 8.9,
|
|
35
|
+
"y": 14.7
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
"pinId": "U_MCU.6",
|
|
39
|
+
"x": 8.9,
|
|
40
|
+
"y": 14.5
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
"pinId": "U_MCU.7",
|
|
44
|
+
"x": 8.9,
|
|
45
|
+
"y": 14.3
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
"pinId": "U_MCU.8",
|
|
49
|
+
"x": 8.9,
|
|
50
|
+
"y": 14.1
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
"pinId": "U_MCU.9",
|
|
54
|
+
"x": 8.9,
|
|
55
|
+
"y": 13.9
|
|
56
|
+
},
|
|
57
|
+
{
|
|
58
|
+
"pinId": "U_MCU.10",
|
|
59
|
+
"x": 8.9,
|
|
60
|
+
"y": 13.700000000000001
|
|
61
|
+
},
|
|
62
|
+
{
|
|
63
|
+
"pinId": "U_MCU.11",
|
|
64
|
+
"x": 8.9,
|
|
65
|
+
"y": 13.5
|
|
66
|
+
},
|
|
67
|
+
{
|
|
68
|
+
"pinId": "U_MCU.12",
|
|
69
|
+
"x": 8.9,
|
|
70
|
+
"y": 13.3
|
|
71
|
+
},
|
|
72
|
+
{
|
|
73
|
+
"pinId": "U_MCU.13",
|
|
74
|
+
"x": 8.9,
|
|
75
|
+
"y": 13.1
|
|
76
|
+
},
|
|
77
|
+
{
|
|
78
|
+
"pinId": "U_MCU.14",
|
|
79
|
+
"x": 8.9,
|
|
80
|
+
"y": 12.9
|
|
81
|
+
},
|
|
82
|
+
{
|
|
83
|
+
"pinId": "U_MCU.15",
|
|
84
|
+
"x": 8.9,
|
|
85
|
+
"y": 12.7
|
|
86
|
+
},
|
|
87
|
+
{
|
|
88
|
+
"pinId": "U_MCU.16",
|
|
89
|
+
"x": 8.9,
|
|
90
|
+
"y": 12.5
|
|
91
|
+
},
|
|
92
|
+
{
|
|
93
|
+
"pinId": "U_MCU.17",
|
|
94
|
+
"x": 11.1,
|
|
95
|
+
"y": 12.5
|
|
96
|
+
},
|
|
97
|
+
{
|
|
98
|
+
"pinId": "U_MCU.18",
|
|
99
|
+
"x": 11.1,
|
|
100
|
+
"y": 12.7
|
|
101
|
+
},
|
|
102
|
+
{
|
|
103
|
+
"pinId": "U_MCU.19",
|
|
104
|
+
"x": 11.1,
|
|
105
|
+
"y": 12.9
|
|
106
|
+
},
|
|
107
|
+
{
|
|
108
|
+
"pinId": "U_MCU.20",
|
|
109
|
+
"x": 11.1,
|
|
110
|
+
"y": 13.1
|
|
111
|
+
},
|
|
112
|
+
{
|
|
113
|
+
"pinId": "U_MCU.21",
|
|
114
|
+
"x": 11.1,
|
|
115
|
+
"y": 13.3
|
|
116
|
+
},
|
|
117
|
+
{
|
|
118
|
+
"pinId": "U_MCU.22",
|
|
119
|
+
"x": 11.1,
|
|
120
|
+
"y": 13.5
|
|
121
|
+
},
|
|
122
|
+
{
|
|
123
|
+
"pinId": "U_MCU.23",
|
|
124
|
+
"x": 11.1,
|
|
125
|
+
"y": 13.7
|
|
126
|
+
},
|
|
127
|
+
{
|
|
128
|
+
"pinId": "U_MCU.24",
|
|
129
|
+
"x": 11.1,
|
|
130
|
+
"y": 13.9
|
|
131
|
+
},
|
|
132
|
+
{
|
|
133
|
+
"pinId": "U_MCU.25",
|
|
134
|
+
"x": 11.1,
|
|
135
|
+
"y": 14.1
|
|
136
|
+
},
|
|
137
|
+
{
|
|
138
|
+
"pinId": "U_MCU.26",
|
|
139
|
+
"x": 11.1,
|
|
140
|
+
"y": 14.299999999999999
|
|
141
|
+
},
|
|
142
|
+
{
|
|
143
|
+
"pinId": "U_MCU.27",
|
|
144
|
+
"x": 11.1,
|
|
145
|
+
"y": 14.5
|
|
146
|
+
},
|
|
147
|
+
{
|
|
148
|
+
"pinId": "U_MCU.28",
|
|
149
|
+
"x": 11.1,
|
|
150
|
+
"y": 14.7
|
|
151
|
+
},
|
|
152
|
+
{
|
|
153
|
+
"pinId": "U_MCU.29",
|
|
154
|
+
"x": 11.1,
|
|
155
|
+
"y": 14.9
|
|
156
|
+
},
|
|
157
|
+
{
|
|
158
|
+
"pinId": "U_MCU.30",
|
|
159
|
+
"x": 11.1,
|
|
160
|
+
"y": 15.1
|
|
161
|
+
},
|
|
162
|
+
{
|
|
163
|
+
"pinId": "U_MCU.31",
|
|
164
|
+
"x": 11.1,
|
|
165
|
+
"y": 15.3
|
|
166
|
+
},
|
|
167
|
+
{
|
|
168
|
+
"pinId": "U_MCU.32",
|
|
169
|
+
"x": 11.1,
|
|
170
|
+
"y": 15.5
|
|
171
|
+
}
|
|
172
|
+
]
|
|
173
|
+
},
|
|
174
|
+
{
|
|
175
|
+
"chipId": "schematic_component_1",
|
|
176
|
+
"center": {
|
|
177
|
+
"x": 14,
|
|
178
|
+
"y": 10
|
|
179
|
+
},
|
|
180
|
+
"width": 1.8399999999999999,
|
|
181
|
+
"height": 0.7789106999999973,
|
|
182
|
+
"pins": [
|
|
183
|
+
{
|
|
184
|
+
"pinId": "R_FAULT_PULLUP.1",
|
|
185
|
+
"x": 13.08,
|
|
186
|
+
"y": 10
|
|
187
|
+
},
|
|
188
|
+
{
|
|
189
|
+
"pinId": "R_FAULT_PULLUP.2",
|
|
190
|
+
"x": 14.92,
|
|
191
|
+
"y": 10
|
|
192
|
+
}
|
|
193
|
+
]
|
|
194
|
+
}
|
|
195
|
+
],
|
|
196
|
+
"directConnections": [],
|
|
197
|
+
"netConnections": [
|
|
198
|
+
{
|
|
199
|
+
"netId": "GND",
|
|
200
|
+
"pinIds": [
|
|
201
|
+
"U_MCU.3",
|
|
202
|
+
"U_MCU.5",
|
|
203
|
+
"U_MCU.21"
|
|
204
|
+
],
|
|
205
|
+
"netLabelWidth": 0.48
|
|
206
|
+
},
|
|
207
|
+
{
|
|
208
|
+
"netId": "VCC_3V3",
|
|
209
|
+
"pinIds": [
|
|
210
|
+
"U_MCU.4",
|
|
211
|
+
"U_MCU.6",
|
|
212
|
+
"U_MCU.18",
|
|
213
|
+
"R_FAULT_PULLUP.1"
|
|
214
|
+
],
|
|
215
|
+
"netLabelWidth": 0.96
|
|
216
|
+
},
|
|
217
|
+
{
|
|
218
|
+
"netId": "FAULT",
|
|
219
|
+
"pinIds": [
|
|
220
|
+
"U_MCU.32",
|
|
221
|
+
"R_FAULT_PULLUP.2"
|
|
222
|
+
],
|
|
223
|
+
"netLabelWidth": 0.72
|
|
224
|
+
}
|
|
225
|
+
],
|
|
226
|
+
"availableNetLabelOrientations": {
|
|
227
|
+
"VCC_3V3": [
|
|
228
|
+
"y+"
|
|
229
|
+
],
|
|
230
|
+
"GND": [
|
|
231
|
+
"y-"
|
|
232
|
+
],
|
|
233
|
+
"FAULT": [
|
|
234
|
+
"x-",
|
|
235
|
+
"x+"
|
|
236
|
+
]
|
|
237
|
+
},
|
|
238
|
+
"maxMspPairDistance": 2.4
|
|
239
|
+
}
|
|
@@ -0,0 +1,432 @@
|
|
|
1
|
+
{
|
|
2
|
+
"chips": [
|
|
3
|
+
{
|
|
4
|
+
"chipId": "schematic_component_0",
|
|
5
|
+
"center": {
|
|
6
|
+
"x": 10,
|
|
7
|
+
"y": 14
|
|
8
|
+
},
|
|
9
|
+
"width": 2.1999999999999993,
|
|
10
|
+
"height": 3.3999999999999986,
|
|
11
|
+
"pins": [
|
|
12
|
+
{
|
|
13
|
+
"pinId": "U_MCU.1",
|
|
14
|
+
"x": 8.9,
|
|
15
|
+
"y": 15.5
|
|
16
|
+
},
|
|
17
|
+
{
|
|
18
|
+
"pinId": "U_MCU.2",
|
|
19
|
+
"x": 8.9,
|
|
20
|
+
"y": 15.3
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
"pinId": "U_MCU.3",
|
|
24
|
+
"x": 8.9,
|
|
25
|
+
"y": 15.1
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
"pinId": "U_MCU.4",
|
|
29
|
+
"x": 8.9,
|
|
30
|
+
"y": 14.9
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
"pinId": "U_MCU.5",
|
|
34
|
+
"x": 8.9,
|
|
35
|
+
"y": 14.7
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
"pinId": "U_MCU.6",
|
|
39
|
+
"x": 8.9,
|
|
40
|
+
"y": 14.5
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
"pinId": "U_MCU.7",
|
|
44
|
+
"x": 8.9,
|
|
45
|
+
"y": 14.3
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
"pinId": "U_MCU.8",
|
|
49
|
+
"x": 8.9,
|
|
50
|
+
"y": 14.1
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
"pinId": "U_MCU.9",
|
|
54
|
+
"x": 8.9,
|
|
55
|
+
"y": 13.9
|
|
56
|
+
},
|
|
57
|
+
{
|
|
58
|
+
"pinId": "U_MCU.10",
|
|
59
|
+
"x": 8.9,
|
|
60
|
+
"y": 13.700000000000001
|
|
61
|
+
},
|
|
62
|
+
{
|
|
63
|
+
"pinId": "U_MCU.11",
|
|
64
|
+
"x": 8.9,
|
|
65
|
+
"y": 13.5
|
|
66
|
+
},
|
|
67
|
+
{
|
|
68
|
+
"pinId": "U_MCU.12",
|
|
69
|
+
"x": 8.9,
|
|
70
|
+
"y": 13.3
|
|
71
|
+
},
|
|
72
|
+
{
|
|
73
|
+
"pinId": "U_MCU.13",
|
|
74
|
+
"x": 8.9,
|
|
75
|
+
"y": 13.1
|
|
76
|
+
},
|
|
77
|
+
{
|
|
78
|
+
"pinId": "U_MCU.14",
|
|
79
|
+
"x": 8.9,
|
|
80
|
+
"y": 12.9
|
|
81
|
+
},
|
|
82
|
+
{
|
|
83
|
+
"pinId": "U_MCU.15",
|
|
84
|
+
"x": 8.9,
|
|
85
|
+
"y": 12.7
|
|
86
|
+
},
|
|
87
|
+
{
|
|
88
|
+
"pinId": "U_MCU.16",
|
|
89
|
+
"x": 8.9,
|
|
90
|
+
"y": 12.5
|
|
91
|
+
},
|
|
92
|
+
{
|
|
93
|
+
"pinId": "U_MCU.17",
|
|
94
|
+
"x": 11.1,
|
|
95
|
+
"y": 12.5
|
|
96
|
+
},
|
|
97
|
+
{
|
|
98
|
+
"pinId": "U_MCU.18",
|
|
99
|
+
"x": 11.1,
|
|
100
|
+
"y": 12.7
|
|
101
|
+
},
|
|
102
|
+
{
|
|
103
|
+
"pinId": "U_MCU.19",
|
|
104
|
+
"x": 11.1,
|
|
105
|
+
"y": 12.9
|
|
106
|
+
},
|
|
107
|
+
{
|
|
108
|
+
"pinId": "U_MCU.20",
|
|
109
|
+
"x": 11.1,
|
|
110
|
+
"y": 13.1
|
|
111
|
+
},
|
|
112
|
+
{
|
|
113
|
+
"pinId": "U_MCU.21",
|
|
114
|
+
"x": 11.1,
|
|
115
|
+
"y": 13.3
|
|
116
|
+
},
|
|
117
|
+
{
|
|
118
|
+
"pinId": "U_MCU.22",
|
|
119
|
+
"x": 11.1,
|
|
120
|
+
"y": 13.5
|
|
121
|
+
},
|
|
122
|
+
{
|
|
123
|
+
"pinId": "U_MCU.23",
|
|
124
|
+
"x": 11.1,
|
|
125
|
+
"y": 13.7
|
|
126
|
+
},
|
|
127
|
+
{
|
|
128
|
+
"pinId": "U_MCU.24",
|
|
129
|
+
"x": 11.1,
|
|
130
|
+
"y": 13.9
|
|
131
|
+
},
|
|
132
|
+
{
|
|
133
|
+
"pinId": "U_MCU.25",
|
|
134
|
+
"x": 11.1,
|
|
135
|
+
"y": 14.1
|
|
136
|
+
},
|
|
137
|
+
{
|
|
138
|
+
"pinId": "U_MCU.26",
|
|
139
|
+
"x": 11.1,
|
|
140
|
+
"y": 14.299999999999999
|
|
141
|
+
},
|
|
142
|
+
{
|
|
143
|
+
"pinId": "U_MCU.27",
|
|
144
|
+
"x": 11.1,
|
|
145
|
+
"y": 14.5
|
|
146
|
+
},
|
|
147
|
+
{
|
|
148
|
+
"pinId": "U_MCU.28",
|
|
149
|
+
"x": 11.1,
|
|
150
|
+
"y": 14.7
|
|
151
|
+
},
|
|
152
|
+
{
|
|
153
|
+
"pinId": "U_MCU.29",
|
|
154
|
+
"x": 11.1,
|
|
155
|
+
"y": 14.9
|
|
156
|
+
},
|
|
157
|
+
{
|
|
158
|
+
"pinId": "U_MCU.30",
|
|
159
|
+
"x": 11.1,
|
|
160
|
+
"y": 15.1
|
|
161
|
+
},
|
|
162
|
+
{
|
|
163
|
+
"pinId": "U_MCU.31",
|
|
164
|
+
"x": 11.1,
|
|
165
|
+
"y": 15.3
|
|
166
|
+
},
|
|
167
|
+
{
|
|
168
|
+
"pinId": "U_MCU.32",
|
|
169
|
+
"x": 11.1,
|
|
170
|
+
"y": 15.5
|
|
171
|
+
}
|
|
172
|
+
]
|
|
173
|
+
},
|
|
174
|
+
{
|
|
175
|
+
"chipId": "schematic_component_1",
|
|
176
|
+
"center": {
|
|
177
|
+
"x": 14,
|
|
178
|
+
"y": 14
|
|
179
|
+
},
|
|
180
|
+
"width": 1.1000000000000014,
|
|
181
|
+
"height": 1.2399999999999984,
|
|
182
|
+
"pins": [
|
|
183
|
+
{
|
|
184
|
+
"pinId": "C_AREF.1",
|
|
185
|
+
"x": 13.45,
|
|
186
|
+
"y": 14
|
|
187
|
+
},
|
|
188
|
+
{
|
|
189
|
+
"pinId": "C_AREF.2",
|
|
190
|
+
"x": 14.55,
|
|
191
|
+
"y": 14
|
|
192
|
+
}
|
|
193
|
+
]
|
|
194
|
+
},
|
|
195
|
+
{
|
|
196
|
+
"chipId": "schematic_component_2",
|
|
197
|
+
"center": {
|
|
198
|
+
"x": 14,
|
|
199
|
+
"y": 10
|
|
200
|
+
},
|
|
201
|
+
"width": 1.7199999999999989,
|
|
202
|
+
"height": 0.7789106999999973,
|
|
203
|
+
"pins": [
|
|
204
|
+
{
|
|
205
|
+
"pinId": "R_FAULT_PULLUP.1",
|
|
206
|
+
"x": 13.14,
|
|
207
|
+
"y": 10
|
|
208
|
+
},
|
|
209
|
+
{
|
|
210
|
+
"pinId": "R_FAULT_PULLUP.2",
|
|
211
|
+
"x": 14.86,
|
|
212
|
+
"y": 10
|
|
213
|
+
}
|
|
214
|
+
]
|
|
215
|
+
},
|
|
216
|
+
{
|
|
217
|
+
"chipId": "schematic_component_3",
|
|
218
|
+
"center": {
|
|
219
|
+
"x": 14,
|
|
220
|
+
"y": 16
|
|
221
|
+
},
|
|
222
|
+
"width": 1.1000000000000014,
|
|
223
|
+
"height": 1.2400000000000002,
|
|
224
|
+
"pins": [
|
|
225
|
+
{
|
|
226
|
+
"pinId": "C_MCU_DEC.1",
|
|
227
|
+
"x": 13.45,
|
|
228
|
+
"y": 16
|
|
229
|
+
},
|
|
230
|
+
{
|
|
231
|
+
"pinId": "C_MCU_DEC.2",
|
|
232
|
+
"x": 14.55,
|
|
233
|
+
"y": 16
|
|
234
|
+
}
|
|
235
|
+
]
|
|
236
|
+
}
|
|
237
|
+
],
|
|
238
|
+
"directConnections": [
|
|
239
|
+
{
|
|
240
|
+
"pinIds": [
|
|
241
|
+
"C_MCU_DEC.1",
|
|
242
|
+
"U_MCU.6"
|
|
243
|
+
],
|
|
244
|
+
"netId": "C_MCU_DEC.pin1 to U_MCU.VCC1",
|
|
245
|
+
"netLabelWidth": 2.71
|
|
246
|
+
},
|
|
247
|
+
{
|
|
248
|
+
"pinIds": [
|
|
249
|
+
"C_MCU_DEC.2",
|
|
250
|
+
"U_MCU.3"
|
|
251
|
+
],
|
|
252
|
+
"netId": "C_MCU_DEC.pin2 to U_MCU.GND3",
|
|
253
|
+
"netLabelWidth": 2.71
|
|
254
|
+
},
|
|
255
|
+
{
|
|
256
|
+
"pinIds": [
|
|
257
|
+
"C_AREF.1",
|
|
258
|
+
"U_MCU.20"
|
|
259
|
+
],
|
|
260
|
+
"netId": "C_AREF.pin1 to U_MCU.AREF",
|
|
261
|
+
"netLabelWidth": 2.43
|
|
262
|
+
}
|
|
263
|
+
],
|
|
264
|
+
"netConnections": [
|
|
265
|
+
{
|
|
266
|
+
"netId": "GND",
|
|
267
|
+
"pinIds": [
|
|
268
|
+
"U_MCU.3",
|
|
269
|
+
"U_MCU.5",
|
|
270
|
+
"U_MCU.21",
|
|
271
|
+
"C_AREF.2",
|
|
272
|
+
"C_MCU_DEC.2"
|
|
273
|
+
],
|
|
274
|
+
"netLabelWidth": 0.48,
|
|
275
|
+
"netLabelHeight": 0.42
|
|
276
|
+
},
|
|
277
|
+
{
|
|
278
|
+
"netId": "VCC_3V3",
|
|
279
|
+
"pinIds": [
|
|
280
|
+
"U_MCU.4",
|
|
281
|
+
"U_MCU.6",
|
|
282
|
+
"U_MCU.18",
|
|
283
|
+
"R_FAULT_PULLUP.1",
|
|
284
|
+
"C_MCU_DEC.1"
|
|
285
|
+
],
|
|
286
|
+
"netLabelWidth": 0.96,
|
|
287
|
+
"netLabelHeight": 0.42
|
|
288
|
+
},
|
|
289
|
+
{
|
|
290
|
+
"netId": "X_IN1",
|
|
291
|
+
"pinIds": [
|
|
292
|
+
"U_MCU.9"
|
|
293
|
+
],
|
|
294
|
+
"netLabelWidth": 0.72
|
|
295
|
+
},
|
|
296
|
+
{
|
|
297
|
+
"netId": "X_IN2",
|
|
298
|
+
"pinIds": [
|
|
299
|
+
"U_MCU.10"
|
|
300
|
+
],
|
|
301
|
+
"netLabelWidth": 0.72
|
|
302
|
+
},
|
|
303
|
+
{
|
|
304
|
+
"netId": "Y_IN1",
|
|
305
|
+
"pinIds": [
|
|
306
|
+
"U_MCU.11"
|
|
307
|
+
],
|
|
308
|
+
"netLabelWidth": 0.72
|
|
309
|
+
},
|
|
310
|
+
{
|
|
311
|
+
"netId": "Y_IN2",
|
|
312
|
+
"pinIds": [
|
|
313
|
+
"U_MCU.12"
|
|
314
|
+
],
|
|
315
|
+
"netLabelWidth": 0.72
|
|
316
|
+
},
|
|
317
|
+
{
|
|
318
|
+
"netId": "JOY_X",
|
|
319
|
+
"pinIds": [
|
|
320
|
+
"U_MCU.23"
|
|
321
|
+
],
|
|
322
|
+
"netLabelWidth": 0.72
|
|
323
|
+
},
|
|
324
|
+
{
|
|
325
|
+
"netId": "JOY_Y",
|
|
326
|
+
"pinIds": [
|
|
327
|
+
"U_MCU.24"
|
|
328
|
+
],
|
|
329
|
+
"netLabelWidth": 0.72
|
|
330
|
+
},
|
|
331
|
+
{
|
|
332
|
+
"netId": "X_SPEED_WIPER",
|
|
333
|
+
"pinIds": [
|
|
334
|
+
"U_MCU.25"
|
|
335
|
+
],
|
|
336
|
+
"netLabelWidth": 1.68
|
|
337
|
+
},
|
|
338
|
+
{
|
|
339
|
+
"netId": "Y_SPEED_WIPER",
|
|
340
|
+
"pinIds": [
|
|
341
|
+
"U_MCU.26"
|
|
342
|
+
],
|
|
343
|
+
"netLabelWidth": 1.68
|
|
344
|
+
},
|
|
345
|
+
{
|
|
346
|
+
"netId": "JOY_SW",
|
|
347
|
+
"pinIds": [
|
|
348
|
+
"U_MCU.27"
|
|
349
|
+
],
|
|
350
|
+
"netLabelWidth": 0.84
|
|
351
|
+
},
|
|
352
|
+
{
|
|
353
|
+
"netId": "FAULT",
|
|
354
|
+
"pinIds": [
|
|
355
|
+
"U_MCU.32",
|
|
356
|
+
"R_FAULT_PULLUP.2"
|
|
357
|
+
],
|
|
358
|
+
"netLabelWidth": 0.72
|
|
359
|
+
}
|
|
360
|
+
],
|
|
361
|
+
"textBoxes": [
|
|
362
|
+
{
|
|
363
|
+
"chipId": "schematic_component_0",
|
|
364
|
+
"center": {
|
|
365
|
+
"x": 10.080000000000002,
|
|
366
|
+
"y": 12.17
|
|
367
|
+
},
|
|
368
|
+
"width": 1.5600000000000005,
|
|
369
|
+
"height": 0.17999999999999972,
|
|
370
|
+
"text": "ATMEGA328P_AU"
|
|
371
|
+
},
|
|
372
|
+
{
|
|
373
|
+
"chipId": "schematic_component_0",
|
|
374
|
+
"center": {
|
|
375
|
+
"x": 9.600000000000001,
|
|
376
|
+
"y": 15.83
|
|
377
|
+
},
|
|
378
|
+
"width": 0.5999999999999996,
|
|
379
|
+
"height": 0.17999999999999972,
|
|
380
|
+
"text": "U_MCU"
|
|
381
|
+
}
|
|
382
|
+
],
|
|
383
|
+
"availableNetLabelOrientations": {
|
|
384
|
+
"GND": [
|
|
385
|
+
"y-"
|
|
386
|
+
],
|
|
387
|
+
"VCC_3V3": [
|
|
388
|
+
"y+"
|
|
389
|
+
],
|
|
390
|
+
"JOY_X": [
|
|
391
|
+
"x-",
|
|
392
|
+
"x+"
|
|
393
|
+
],
|
|
394
|
+
"JOY_Y": [
|
|
395
|
+
"x-",
|
|
396
|
+
"x+"
|
|
397
|
+
],
|
|
398
|
+
"X_SPEED_WIPER": [
|
|
399
|
+
"x-",
|
|
400
|
+
"x+"
|
|
401
|
+
],
|
|
402
|
+
"Y_SPEED_WIPER": [
|
|
403
|
+
"x-",
|
|
404
|
+
"x+"
|
|
405
|
+
],
|
|
406
|
+
"JOY_SW": [
|
|
407
|
+
"x-",
|
|
408
|
+
"x+"
|
|
409
|
+
],
|
|
410
|
+
"X_IN1": [
|
|
411
|
+
"x-",
|
|
412
|
+
"x+"
|
|
413
|
+
],
|
|
414
|
+
"X_IN2": [
|
|
415
|
+
"x-",
|
|
416
|
+
"x+"
|
|
417
|
+
],
|
|
418
|
+
"Y_IN1": [
|
|
419
|
+
"x-",
|
|
420
|
+
"x+"
|
|
421
|
+
],
|
|
422
|
+
"Y_IN2": [
|
|
423
|
+
"x-",
|
|
424
|
+
"x+"
|
|
425
|
+
],
|
|
426
|
+
"FAULT": [
|
|
427
|
+
"x-",
|
|
428
|
+
"x+"
|
|
429
|
+
]
|
|
430
|
+
},
|
|
431
|
+
"maxMspPairDistance": 2.4
|
|
432
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { expect, test } from "bun:test"
|
|
2
|
+
import { SchematicTracePipelineSolver } from "lib/solvers/SchematicTracePipelineSolver/SchematicTracePipelineSolver"
|
|
3
|
+
import inputProblem from "./assets/repro-atmega328p-fault-pullup.input.json"
|
|
4
|
+
import "tests/fixtures/matcher"
|
|
5
|
+
|
|
6
|
+
test("repro atmega328p mcu fault pullup net labels", () => {
|
|
7
|
+
const solver = new SchematicTracePipelineSolver(inputProblem as any)
|
|
8
|
+
solver.solve()
|
|
9
|
+
|
|
10
|
+
expect(solver).toMatchSolverSnapshot(import.meta.path)
|
|
11
|
+
})
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { expect, test } from "bun:test"
|
|
2
|
+
import { SchematicTracePipelineSolver } from "lib/solvers/SchematicTracePipelineSolver/SchematicTracePipelineSolver"
|
|
3
|
+
import inputProblem from "./assets/repro-atmega328p-missing-gnd-netlabel.input.json"
|
|
4
|
+
import "tests/fixtures/matcher"
|
|
5
|
+
|
|
6
|
+
// Repro: GND pins U_MCU.3 and U_MCU.5 end up with no net label. The GND net is
|
|
7
|
+
// split into three MSP-paired islands; the {U_MCU.3, U_MCU.5} bracket is boxed
|
|
8
|
+
// in by the chip and the neighboring VCC bracket, so NetLabelPlacementSolver
|
|
9
|
+
// cannot place its label and silently drops the group (failedGroups), leaving
|
|
10
|
+
// those pins visually unlabeled.
|
|
11
|
+
test("repro atmega328p missing gnd netlabel on interleaved pins", () => {
|
|
12
|
+
const solver = new SchematicTracePipelineSolver(inputProblem as any)
|
|
13
|
+
solver.solve()
|
|
14
|
+
|
|
15
|
+
expect(solver).toMatchSolverSnapshot(import.meta.path)
|
|
16
|
+
})
|