@tscircuit/core 0.0.1934 → 0.0.1936
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.js +30 -7
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -53693,11 +53693,29 @@ var getBusSrjConnectionNamesOrThrow = ({
|
|
|
53693
53693
|
srjConnections,
|
|
53694
53694
|
bus,
|
|
53695
53695
|
sourceTraceId,
|
|
53696
|
-
traceNameOrPortSelector
|
|
53696
|
+
traceNameOrPortSelector,
|
|
53697
|
+
busSourceTraces
|
|
53697
53698
|
}) => {
|
|
53698
|
-
const
|
|
53699
|
+
const directSrjConnections = srjConnections.filter(
|
|
53699
53700
|
(srjConnection) => srjConnection.source_trace_id === sourceTraceId
|
|
53700
53701
|
);
|
|
53702
|
+
if (directSrjConnections.length > 0) {
|
|
53703
|
+
return directSrjConnections.map((srjConnection) => srjConnection.name);
|
|
53704
|
+
}
|
|
53705
|
+
const sourceTrace = busSourceTraces.find(
|
|
53706
|
+
(trace) => trace.source_trace_id === sourceTraceId
|
|
53707
|
+
);
|
|
53708
|
+
const connectedSourceTraces = busSourceTraces.filter(
|
|
53709
|
+
(trace) => trace.source_trace_id === sourceTraceId || sourceTrace.subcircuit_connectivity_map_key !== void 0 && trace.subcircuit_connectivity_map_key === sourceTrace.subcircuit_connectivity_map_key
|
|
53710
|
+
);
|
|
53711
|
+
const connectedSourceNetIds = new Set(
|
|
53712
|
+
connectedSourceTraces.flatMap(
|
|
53713
|
+
(trace) => trace.connected_source_net_ids ?? []
|
|
53714
|
+
)
|
|
53715
|
+
);
|
|
53716
|
+
const matchingSrjConnections = srjConnections.filter(
|
|
53717
|
+
(srjConnection) => connectedSourceNetIds.has(srjConnection.name)
|
|
53718
|
+
);
|
|
53701
53719
|
if (matchingSrjConnections.length === 0) {
|
|
53702
53720
|
throw new Error(
|
|
53703
53721
|
`Could not find an SRJ connection for "${traceNameOrPortSelector}" in bus "${bus.name}"`
|
|
@@ -53754,7 +53772,8 @@ var getBusesForSimpleRouteJson = ({
|
|
|
53754
53772
|
buses,
|
|
53755
53773
|
sourceTraces,
|
|
53756
53774
|
subcircuitId,
|
|
53757
|
-
planeTerminatedSourceTraceLayers
|
|
53775
|
+
planeTerminatedSourceTraceLayers,
|
|
53776
|
+
preservedSourceTraceIds
|
|
53758
53777
|
}) => {
|
|
53759
53778
|
const declaredSrjBuses = [];
|
|
53760
53779
|
for (const bus of buses) {
|
|
@@ -53770,11 +53789,13 @@ var getBusesForSimpleRouteJson = ({
|
|
|
53770
53789
|
busSourceTraces,
|
|
53771
53790
|
traceNameOrPortSelector
|
|
53772
53791
|
});
|
|
53792
|
+
if (preservedSourceTraceIds?.has(sourceTraceId)) return [];
|
|
53773
53793
|
return getBusSrjConnectionNamesOrThrow({
|
|
53774
53794
|
srjConnections,
|
|
53775
53795
|
bus,
|
|
53776
53796
|
sourceTraceId,
|
|
53777
|
-
traceNameOrPortSelector
|
|
53797
|
+
traceNameOrPortSelector,
|
|
53798
|
+
busSourceTraces
|
|
53778
53799
|
});
|
|
53779
53800
|
}
|
|
53780
53801
|
);
|
|
@@ -53783,6 +53804,7 @@ var getBusesForSimpleRouteJson = ({
|
|
|
53783
53804
|
`Bus "${bus.name}" resolves multiple entries to one trace`
|
|
53784
53805
|
);
|
|
53785
53806
|
}
|
|
53807
|
+
if (connectionNames.length === 0) continue;
|
|
53786
53808
|
declaredSrjBuses.push({
|
|
53787
53809
|
busId: bus.name,
|
|
53788
53810
|
name: bus.name,
|
|
@@ -54695,7 +54717,8 @@ var getSimpleRouteJsonFromCircuitJson = ({
|
|
|
54695
54717
|
buses,
|
|
54696
54718
|
sourceTraces: db.source_trace.list(),
|
|
54697
54719
|
subcircuitId: subcircuit_id,
|
|
54698
|
-
planeTerminatedSourceTraceLayers
|
|
54720
|
+
planeTerminatedSourceTraceLayers,
|
|
54721
|
+
preservedSourceTraceIds: sourceTraceIdsAlreadyPreservedAsSrjTraces
|
|
54699
54722
|
});
|
|
54700
54723
|
if (subcircuit_id) {
|
|
54701
54724
|
const pointIdToConn = /* @__PURE__ */ new Map();
|
|
@@ -63356,7 +63379,7 @@ function Group_getRoutingPhasePlans(group) {
|
|
|
63356
63379
|
var package_default = {
|
|
63357
63380
|
name: "@tscircuit/core",
|
|
63358
63381
|
type: "module",
|
|
63359
|
-
version: "0.0.
|
|
63382
|
+
version: "0.0.1935",
|
|
63360
63383
|
types: "dist/index.d.ts",
|
|
63361
63384
|
main: "dist/index.js",
|
|
63362
63385
|
module: "dist/index.js",
|
|
@@ -63392,7 +63415,7 @@ var package_default = {
|
|
|
63392
63415
|
"@tscircuit/bga-fanout-solver": "github:tscircuit/bga-fanout-solver#247c835cb8d69b65e53891dcf869731079415b39",
|
|
63393
63416
|
"@tscircuit/bus-lanes-solver": "github:tscircuit/bus-lanes-solver#0bc8d071241b18a3e7465a878881abe4998f6384",
|
|
63394
63417
|
"@tscircuit/capacity-autorouter": "^0.0.900",
|
|
63395
|
-
"@tscircuit/checks": "^0.0.
|
|
63418
|
+
"@tscircuit/checks": "^0.0.200",
|
|
63396
63419
|
"@tscircuit/circuit-json-util": "^0.0.114",
|
|
63397
63420
|
"@tscircuit/common": "^0.0.20",
|
|
63398
63421
|
"@tscircuit/copper-pour-solver": "^0.0.54",
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tscircuit/core",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.0.
|
|
4
|
+
"version": "0.0.1936",
|
|
5
5
|
"types": "dist/index.d.ts",
|
|
6
6
|
"main": "dist/index.js",
|
|
7
7
|
"module": "dist/index.js",
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
"@tscircuit/bga-fanout-solver": "github:tscircuit/bga-fanout-solver#247c835cb8d69b65e53891dcf869731079415b39",
|
|
38
38
|
"@tscircuit/bus-lanes-solver": "github:tscircuit/bus-lanes-solver#0bc8d071241b18a3e7465a878881abe4998f6384",
|
|
39
39
|
"@tscircuit/capacity-autorouter": "^0.0.900",
|
|
40
|
-
"@tscircuit/checks": "^0.0.
|
|
40
|
+
"@tscircuit/checks": "^0.0.200",
|
|
41
41
|
"@tscircuit/circuit-json-util": "^0.0.114",
|
|
42
42
|
"@tscircuit/common": "^0.0.20",
|
|
43
43
|
"@tscircuit/copper-pour-solver": "^0.0.54",
|