-
Notifications
You must be signed in to change notification settings - Fork 396
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2381 from verilog-to-routing/3D-Routing-Util
Routing Util 3d
- Loading branch information
Showing
4 changed files
with
29 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,21 @@ | ||
#ifndef VPR_ROUTE_UTIL_H | ||
#define VPR_ROUTE_UTIL_H | ||
#include "vpr_types.h" | ||
#include "draw_types.h" | ||
#include "draw_global.h" | ||
|
||
vtr::Matrix<float> calculate_routing_avail(t_rr_type rr_type); | ||
vtr::Matrix<float> calculate_routing_usage(t_rr_type rr_type, bool is_flat); | ||
|
||
/** | ||
* @brief: Calculates and returns the usage over the entire grid for the specified | ||
* type of rr_node to the usage array. The usage is recorded at each (x,y) location. | ||
* | ||
* @param rr_type: Type of rr_node that we are calculating the usage of; can be CHANX or CHANY | ||
* @param is_flat: Is the flat router being used or not? | ||
* @param only_visible: If true, only record the usage of rr_nodes on layers that are visible according to the current | ||
* drawing settings. | ||
*/ | ||
vtr::Matrix<float> calculate_routing_usage(t_rr_type rr_type, bool is_flat, bool is_print); | ||
float routing_util(float used, float avail); | ||
|
||
#endif |