Skip to content

Commit

Permalink
hacky fix to force router to not assume same root net means connected
Browse files Browse the repository at this point in the history
  • Loading branch information
rahulk29 committed Jan 2, 2024
1 parent f7ff06f commit 9ae51a1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions libs/atoll/src/grid.rs
Original file line number Diff line number Diff line change
Expand Up @@ -712,12 +712,12 @@ impl<L: AtollLayer + Clone> RoutingState<L> {
fn cost(&self, src: GridCoord, dst: GridCoord, net: NetId) -> usize {
if src.layer == dst.layer {
if self.is_routed_for_net(src, net) && self.is_routed_for_net(dst, net) {
0
if self[src] == self[dst] { 0 } else { 1 }
} else {
1
4
}
} else {
1
4
}
}

Expand Down

0 comments on commit 9ae51a1

Please sign in to comment.