fix: Fix build and test errors due to botched last commit

This commit is contained in:
Mikolaj Wielgus 2025-10-14 02:21:48 +02:00
parent cd73c766a5
commit 2895277e73
12 changed files with 71 additions and 36 deletions

View File

@ -5,7 +5,6 @@
use clap::Parser;
use std::fs::File;
use std::io::BufReader;
use topola::autorouter::anterouter::AnterouterOptions;
use topola::autorouter::execution::Command;
use topola::autorouter::history::History;
use topola::autorouter::invoker::Invoker;
@ -40,6 +39,7 @@ fn main() -> Result<(), std::io::Error> {
Command::Autoroute(
PinSelection::new_select_layer(&board, 0),
PlanarAutorouteOptions {
principal_layer: 0,
presort_by: PresortBy::RatlineIntersectionCountAndLength,
permutate: true,
router: RouterOptions {

View File

@ -132,7 +132,8 @@ pub fn assert_navnode_count(
expected_count: usize,
) {
let (origin, destination) = autorouter
.ratsnest()
.ratsnests()
.on_principal_layer(0)
.graph()
.edge_indices()
.collect::<Vec<_>>()
@ -176,7 +177,12 @@ pub fn assert_that_all_single_layer_groundless_ratlines_are_autorouted(
) {
let conncomps = ConncompsWithPrincipalLayer::new(autorouter.board(), 0);
for ratline in autorouter.ratsnest().graph().edge_indices() {
for ratline in autorouter
.ratsnests()
.on_principal_layer(0)
.graph()
.edge_indices()
{
let (origin_dot, destination_dot) = ratline.ref_(autorouter).endpoint_dots();
let origin_layer = autorouter

View File

@ -19,7 +19,8 @@
"squeeze_through_under_bends": true,
"routed_band_width": 100.0
},
"permutate": false
"permutate": false,
"principal_layer": 0
}
]
},
@ -42,7 +43,8 @@
"squeeze_through_under_bends": true,
"routed_band_width": 100.0
},
"permutate": false
"permutate": false,
"principal_layer": 0
}
]
}

View File

@ -203,7 +203,8 @@
"routed_band_width": 100.0,
"wrap_around_bands": true,
"squeeze_through_under_bends": true
}
},
"principal_layer": 0
}
]
}

View File

@ -75,7 +75,8 @@
"routed_band_width": 100.0,
"wrap_around_bands": true,
"squeeze_through_under_bends": true
}
},
"principal_layer": 0
}
]
},
@ -122,7 +123,8 @@
"routed_band_width": 100.0,
"wrap_around_bands": true,
"squeeze_through_under_bends": true
}
},
"principal_layer": 0
}
]
},
@ -201,7 +203,8 @@
"routed_band_width": 100.0,
"wrap_around_bands": true,
"squeeze_through_under_bends": true
}
},
"principal_layer": 0
}
]
},
@ -232,7 +235,8 @@
"routed_band_width": 100.0,
"wrap_around_bands": true,
"squeeze_through_under_bends": true
}
},
"principal_layer": 0
}
]
},
@ -263,7 +267,8 @@
"routed_band_width": 100.0,
"wrap_around_bands": true,
"squeeze_through_under_bends": true
}
},
"principal_layer": 0
}
]
},
@ -294,7 +299,8 @@
"routed_band_width": 100.0,
"wrap_around_bands": true,
"squeeze_through_under_bends": true
}
},
"principal_layer": 0
}
]
},
@ -325,7 +331,8 @@
"routed_band_width": 100.0,
"wrap_around_bands": true,
"squeeze_through_under_bends": true
}
},
"principal_layer": 0
}
]
}

View File

@ -55,7 +55,8 @@
"squeeze_through_under_bends": true,
"routed_band_width": 100.0
},
"permutate": false
"permutate": false,
"principal_layer": 0
}
]
},
@ -114,7 +115,8 @@
"squeeze_through_under_bends": true,
"routed_band_width": 100.0
},
"permutate": false
"permutate": false,
"principal_layer": 0
}
]
},
@ -173,7 +175,8 @@
"squeeze_through_under_bends": true,
"routed_band_width": 100.0
},
"permutate": false
"permutate": false,
"principal_layer": 0
}
]
},
@ -232,7 +235,8 @@
"squeeze_through_under_bends": true,
"routed_band_width": 100.0
},
"permutate": false
"permutate": false,
"principal_layer": 0
}
]
}

View File

@ -43,7 +43,8 @@
"wrap_around_bands": true,
"squeeze_through_under_bends": true
},
"permutate": false
"permutate": false,
"principal_layer": 0
}
]
}

View File

@ -35,7 +35,8 @@
"squeeze_through_under_bends": true,
"routed_band_width": 100.0
},
"permutate": false
"permutate": false,
"principal_layer": 0
}
]
}

View File

@ -83,7 +83,8 @@
"routed_band_width": 100.0,
"wrap_around_bands": true,
"squeeze_through_under_bends": true
}
},
"principal_layer": 0
}
]
}

View File

@ -19,7 +19,8 @@
"wrap_around_bands": true,
"squeeze_through_under_bends": true
},
"permutate": false
"permutate": false,
"principal_layer": 0
}
]
},
@ -42,7 +43,8 @@
"wrap_around_bands": true,
"squeeze_through_under_bends": true
},
"permutate": false
"permutate": false,
"principal_layer": 0
}
]
},
@ -65,7 +67,8 @@
"wrap_around_bands": true,
"squeeze_through_under_bends": true
},
"permutate": false
"permutate": false,
"principal_layer": 0
}
]
},
@ -88,7 +91,8 @@
"wrap_around_bands": true,
"squeeze_through_under_bends": true
},
"permutate": false
"permutate": false,
"principal_layer": 0
}
]
},
@ -111,7 +115,8 @@
"wrap_around_bands": true,
"squeeze_through_under_bends": true
},
"permutate": false
"permutate": false,
"principal_layer": 0
}
]
},
@ -134,7 +139,8 @@
"wrap_around_bands": true,
"squeeze_through_under_bends": true
},
"permutate": false
"permutate": false,
"principal_layer": 0
}
]
},
@ -157,7 +163,8 @@
"wrap_around_bands": true,
"squeeze_through_under_bends": true
},
"permutate": false
"permutate": false,
"principal_layer": 0
}
]
},
@ -180,7 +187,8 @@
"wrap_around_bands": true,
"squeeze_through_under_bends": true
},
"permutate": false
"permutate": false,
"principal_layer": 0
}
]
},
@ -203,7 +211,8 @@
"wrap_around_bands": true,
"squeeze_through_under_bends": true
},
"permutate": false
"permutate": false,
"principal_layer": 0
}
]
}

View File

@ -55,7 +55,8 @@
"squeeze_through_under_bends": true,
"routed_band_width": 100.0
},
"permutate": false
"permutate": false,
"principal_layer": 0
}
]
},
@ -78,7 +79,8 @@
"squeeze_through_under_bends": true,
"routed_band_width": 100.0
},
"permutate": false
"permutate": false,
"principal_layer": 0
}
]
}

View File

@ -215,7 +215,8 @@
"routed_band_width": 100.0,
"wrap_around_bands": true,
"squeeze_through_under_bends": true
}
},
"principal_layer": 0
}
]
}