@tscircuit/fanout-solver 0.0.15 → 0.0.16
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/README.md +25 -0
- package/package.json +3 -1
package/README.md
CHANGED
|
@@ -198,6 +198,31 @@ parameters. Each sample has one shared boundary around all of its footprints,
|
|
|
198
198
|
and component bounds come from the exact footprinter-generated copper pad
|
|
199
199
|
extents.
|
|
200
200
|
|
|
201
|
+
## SRJ19 benchmark
|
|
202
|
+
|
|
203
|
+
The repository also loads all 200 samples from
|
|
204
|
+
[`tscircuit/dataset-srj19`](https://github.com/tscircuit/dataset-srj19) as a
|
|
205
|
+
pinned development dependency. The adapter keeps the complete obstacle field
|
|
206
|
+
but selects only connections that touch the BGA, producing progressively larger
|
|
207
|
+
two-layer fanout problems with opposite-layer passive overlays.
|
|
208
|
+
|
|
209
|
+
Run the full benchmark with:
|
|
210
|
+
|
|
211
|
+
```sh
|
|
212
|
+
./benchmark.sh
|
|
213
|
+
```
|
|
214
|
+
|
|
215
|
+
Use `--sample sample001`, `--limit 10`, or
|
|
216
|
+
`--max-layer-combinations 16` for shorter runs. Partial solutions are reported
|
|
217
|
+
as benchmark results instead of failing the command, making current completion
|
|
218
|
+
rates a baseline for solver improvements. `bun run benchmark:srj19` is an alias
|
|
219
|
+
for the same command.
|
|
220
|
+
|
|
221
|
+
Run `bun run start` and open the `datasets/srj19` Cosmos fixture to step the
|
|
222
|
+
selected sample through `GenericSolverDebugger`. The page has Previous/Next,
|
|
223
|
+
sample dropdown, and range controls and stores the selection in the `sample`
|
|
224
|
+
URL parameter.
|
|
225
|
+
|
|
201
226
|
## Dataset 02
|
|
202
227
|
|
|
203
228
|
`datasets/dataset02.ts` is the four-layer BGA400 stress benchmark. It routes
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tscircuit/fanout-solver",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.16",
|
|
4
4
|
"description": "BGA fanout solver with coordinated bus-layer escapes for SimpleRouteJson",
|
|
5
5
|
"module": "lib/index.ts",
|
|
6
6
|
"type": "module",
|
|
@@ -28,6 +28,7 @@
|
|
|
28
28
|
"typecheck": "bunx tsc --noEmit",
|
|
29
29
|
"test": "bun test",
|
|
30
30
|
"benchmark": "bun benchmarks/run-benchmark.ts",
|
|
31
|
+
"benchmark:srj19": "./benchmark.sh",
|
|
31
32
|
"render:dataset": "bun scripts/render-dataset-pngs.ts",
|
|
32
33
|
"format": "biome format --write .",
|
|
33
34
|
"format:check": "biome format ."
|
|
@@ -39,6 +40,7 @@
|
|
|
39
40
|
},
|
|
40
41
|
"devDependencies": {
|
|
41
42
|
"@biomejs/biome": "2.5.5",
|
|
43
|
+
"@tsci/tscircuit.dataset-srj19-bga-passive-overlays": "github:tscircuit/dataset-srj19#c1206f3",
|
|
42
44
|
"@tscircuit/footprinter": "0.0.394",
|
|
43
45
|
"@types/bun": "1.3.14",
|
|
44
46
|
"@types/react": "19.2.14",
|