Skip to content

Commit 6ef581f

Browse files
committed
Fixed minor compilation errors.
1 parent 7a54df6 commit 6ef581f

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

vpr/src/base/vpr_types.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -722,7 +722,7 @@ struct t_grid_blocks {
722722
* occupied by a block at this grid location. The subtile id serves
723723
* as the z-dimensional offset in the grid indexing.
724724
*/
725-
inline bool subtile_empty(size_t isubtile) {
725+
inline bool subtile_empty(size_t isubtile) const {
726726
return blocks[isubtile] == EMPTY_BLOCK_ID;
727727
}
728728
};

vpr/src/route/overuse_report.cpp

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,8 @@ void log_overused_nodes_status(int max_logged_overused_rr_nodes) {
5555
*
5656
* Print all the overused RR nodes' info in the report file report_overused_nodes.rpt.
5757
* The report generation is turned on by the VPR option: --generate_rr_node_overuse_report on.
58+
* This report will be generated only if the last routing attempt fails, which
59+
* causes the whole VPR flow to fail.
5860
*/
5961
void report_overused_nodes() {
6062
const auto& device_ctx = g_vpr_ctx.device();
@@ -166,9 +168,9 @@ static void report_overused_ipin_opin(std::ostream& os, RRNodeId node_id) {
166168
os << "Number of blocks currently occupying this grid location = " << grid_info.usage << '\n';
167169

168170
size_t iblock = 0;
169-
for (size_t isubtile = 0; isubtile < grid_blocks.size(); ++isubtile) {
170-
//Check if the block is empty
171-
if (grid_info.subtile_empty[isubtile]) {
171+
for (size_t isubtile = 0; isubtile < grid_info.blocks.size(); ++isubtile) {
172+
//Check if there is a valid block at this subtile location
173+
if (grid_info.subtile_empty(isubtile)) {
172174
continue;
173175
}
174176

0 commit comments

Comments
 (0)