Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions src/pcb/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -990,6 +990,11 @@ pub struct RouteOptions {
/// each net's search for a route with fewer vias is made ahead of its turn, in a copy
/// of the board as it is, and stands at the turn if no net before it has ended with
/// other copper since, as few do. The routes are the same for any number there as well.
///
/// And so has the step before it that lays each net again among the others by the
/// negotiation's search: a net's search is made ahead of its turn with the net's claims
/// left out of its count, and stands at the turn, and the next time through the nets,
/// while no net has other copper where the search looked.
pub threads: usize,
/// Whether cleanup looks for a shorter way for each run of a net's tracks from one
/// pad or branch to the next, with every other route where it is. The default is
Expand Down
10 changes: 10 additions & 0 deletions src/pcb/router.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3343,9 +3343,19 @@ fn route_all<'a>(
// the routes are its own; at the pitch in a run for shorter ways, whose routes
// are where they stay, and a way that only the finer grid has is one to take.
let coarse = rules.layer_count() > 2 && !options.shorten;
// The same board for each thread that looks a net's way up ahead of
// its turn.
let make_base = || {
let mut base = make_with(&pairs_first)?;
for (tracks, vias) in &back_copper {
let _ = pairs::Undo::place(&mut base, tracks, vias);
}
Some(base)
};
let again = whole::again(
design,
&base,
&make_base,
&mut world,
&jobs,
&mut copper,
Expand Down
Loading
Loading