Skip to content

Commit cae0b88

Browse files
committed
[vpr][route] print numbers for seg occ and cap
1 parent 211f7fa commit cae0b88

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

vpr/src/route/segment_stats.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,12 +119,16 @@ void get_segment_usage_stats(std::vector<t_segment_inf>& segment_inf) {
119119

120120
int occ = 0;
121121
int cap = 0;
122+
std::string seg_occ = seg_name + std::string("_O");
123+
std::string seg_cap = seg_name + std::string("_C");
122124
for (e_parallel_axis ax : {e_parallel_axis::X_AXIS, e_parallel_axis::Y_AXIS}) {
123125
occ += directed_occ_by_length[ax][seg_length];
124126
cap += directed_cap_by_length[ax][seg_length];
125127
}
126128
utilization = (float)occ / (float)cap;
127129
VTR_LOG(" %s %11.3g\n", seg_name.c_str(), utilization);
130+
VTR_LOG(" %s %4d\n", seg_occ.c_str(), occ);
131+
VTR_LOG(" %s %4d\n", seg_cap.c_str(), cap);
128132
}
129133
}
130134

0 commit comments

Comments
 (0)