mirror of https://codeberg.org/topola/topola.git
fix: Fix build and test errors due to botched last commit
This commit is contained in:
parent
cd73c766a5
commit
2895277e73
|
|
@ -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 {
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
}
|
||||
]
|
||||
}
|
||||
|
|
|
|||
|
|
@ -203,10 +203,11 @@
|
|||
"routed_band_width": 100.0,
|
||||
"wrap_around_bands": true,
|
||||
"squeeze_through_under_bends": true
|
||||
}
|
||||
},
|
||||
"principal_layer": 0
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"undone": []
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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,10 +331,11 @@
|
|||
"routed_band_width": 100.0,
|
||||
"wrap_around_bands": true,
|
||||
"squeeze_through_under_bends": true
|
||||
}
|
||||
},
|
||||
"principal_layer": 0
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"undone": []
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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
|
||||
}
|
||||
]
|
||||
}
|
||||
|
|
|
|||
|
|
@ -43,7 +43,8 @@
|
|||
"wrap_around_bands": true,
|
||||
"squeeze_through_under_bends": true
|
||||
},
|
||||
"permutate": false
|
||||
"permutate": false,
|
||||
"principal_layer": 0
|
||||
}
|
||||
]
|
||||
}
|
||||
|
|
|
|||
|
|
@ -35,7 +35,8 @@
|
|||
"squeeze_through_under_bends": true,
|
||||
"routed_band_width": 100.0
|
||||
},
|
||||
"permutate": false
|
||||
"permutate": false,
|
||||
"principal_layer": 0
|
||||
}
|
||||
]
|
||||
}
|
||||
|
|
|
|||
|
|
@ -83,10 +83,11 @@
|
|||
"routed_band_width": 100.0,
|
||||
"wrap_around_bands": true,
|
||||
"squeeze_through_under_bends": true
|
||||
}
|
||||
},
|
||||
"principal_layer": 0
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"undone": []
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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
|
||||
}
|
||||
]
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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
|
||||
}
|
||||
]
|
||||
}
|
||||
|
|
|
|||
|
|
@ -215,10 +215,11 @@
|
|||
"routed_band_width": 100.0,
|
||||
"wrap_around_bands": true,
|
||||
"squeeze_through_under_bends": true
|
||||
}
|
||||
},
|
||||
"principal_layer": 0
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"undone": []
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue