Skip to content

Commit

Permalink
vpr: place: use chanz cost to cube bounding box cost
Browse files Browse the repository at this point in the history
  • Loading branch information
amin1377 committed Apr 3, 2024
1 parent 760b5a0 commit bcc7ca5
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions vpr/src/place/place.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3116,6 +3116,11 @@ static double get_net_cost(ClusterNetId net_id, const t_bb& bbptr) {
ncost += (bbptr.ymax - bbptr.ymin + 1) * crossing
* chany_place_cost_fac[bbptr.xmax][bbptr.xmin - 1];

if (is_multi_layer) {
ncost += (bbptr.layer_max - bbptr.layer_min) * crossing
* chanz_place_cost_fac[bbptr.layer_max][bbptr.xmax][bbptr.ymax][bbptr.layer_min][bbptr.xmin][bbptr.ymin];
}

return (ncost);
}

Expand Down

0 comments on commit bcc7ca5

Please sign in to comment.