Skip to content

Commit 8446d88

Browse files
committed
[vpr][route][lookahead] fix dump_lookahead
1 parent be3aeed commit 8446d88

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

vpr/src/route/router_lookahead_map_utils.cpp

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -893,30 +893,30 @@ void dump_readable_router_lookahead_map(const std::string& file_name, const std:
893893
}
894894

895895
VTR_ASSERT(dim_sizes[0] == num_layers);
896-
VTR_ASSERT(dim_sizes[1] == 2);
897-
VTR_ASSERT(dim_sizes[3] == num_layers);
896+
VTR_ASSERT(dim_sizes[1] == num_layers);
897+
VTR_ASSERT(dim_sizes[2] == 2);
898898
VTR_ASSERT(dim_sizes.size() == 5 || (dim_sizes.size() == 6 && dim_sizes[4] == grid_width && dim_sizes[5] == grid_height));
899899

900900
ofs << "from_layer,"
901+
"to_layer,"
901902
"chan_type,"
902903
"seg_type,"
903-
"to_layer,"
904904
"delta_x,"
905905
"delta_y,"
906906
"cong_cost,"
907907
"delay_cost\n";
908908

909909
for (int from_layer_num = 0; from_layer_num < num_layers; from_layer_num++) {
910-
for (e_rr_type chan_type : {CHANX, CHANY}) {
911-
for (int seg_index = 0; seg_index < dim_sizes[2]; seg_index++) {
912-
for (int to_layer_num = 0; to_layer_num < num_layers; to_layer_num++) {
910+
for (int to_layer_num = 0; to_layer_num < num_layers; to_layer_num++) {
911+
for (e_rr_type chan_type : {CHANX, CHANY}) {
912+
for (int seg_index = 0; seg_index < dim_sizes[3]; seg_index++) {
913913
for (int dx = 0; dx < grid_width; dx++) {
914914
for (int dy = 0; dy < grid_height; dy++) {
915915
auto cost = wire_cost_func(chan_type, seg_index, from_layer_num, dx, dy, to_layer_num);
916916
ofs << from_layer_num << ","
917+
<< to_layer_num << ","
917918
<< rr_node_typename[chan_type] << ","
918919
<< seg_index << ","
919-
<< to_layer_num << ","
920920
<< dx << ","
921921
<< dy << ","
922922
<< cost.congestion << ","

0 commit comments

Comments
 (0)