Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit bcc7ca5

Browse files
committedApr 3, 2024
vpr: place: use chanz cost to cube bounding box cost
1 parent 760b5a0 commit bcc7ca5

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed
 

‎vpr/src/place/place.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3116,6 +3116,11 @@ static double get_net_cost(ClusterNetId net_id, const t_bb& bbptr) {
31163116
ncost += (bbptr.ymax - bbptr.ymin + 1) * crossing
31173117
* chany_place_cost_fac[bbptr.xmax][bbptr.xmin - 1];
31183118

3119+
if (is_multi_layer) {
3120+
ncost += (bbptr.layer_max - bbptr.layer_min) * crossing
3121+
* chanz_place_cost_fac[bbptr.layer_max][bbptr.xmax][bbptr.ymax][bbptr.layer_min][bbptr.xmin][bbptr.ymin];
3122+
}
3123+
31193124
return (ncost);
31203125
}
31213126

0 commit comments

Comments
 (0)
Please sign in to comment.