We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 211f7fa commit cae0b88Copy full SHA for cae0b88
vpr/src/route/segment_stats.cpp
@@ -119,12 +119,16 @@ void get_segment_usage_stats(std::vector<t_segment_inf>& segment_inf) {
119
120
int occ = 0;
121
int cap = 0;
122
+ std::string seg_occ = seg_name + std::string("_O");
123
+ std::string seg_cap = seg_name + std::string("_C");
124
for (e_parallel_axis ax : {e_parallel_axis::X_AXIS, e_parallel_axis::Y_AXIS}) {
125
occ += directed_occ_by_length[ax][seg_length];
126
cap += directed_cap_by_length[ax][seg_length];
127
}
128
utilization = (float)occ / (float)cap;
129
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);
132
133
134
0 commit comments