Skip to content

Commit c8857cc

Browse files
fix compilation error in test_connection router and the warning in rr_graph2.cpp
1 parent a5980f2 commit c8857cc

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

vpr/src/route/rr_graph2.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -280,7 +280,7 @@ std::vector<int> get_seg_track_counts(int num_sets,
280280
// Keep assigning tracks until we use them up
281281
int assigned = 0;
282282
int imax = 0;
283-
int size;
283+
int size = 0;
284284
while (assigned < num_sets) {
285285
// Find current maximum demand
286286
double max = 0;

vpr/test/test_connection_router.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -150,12 +150,12 @@ TEST_CASE("connection_router", "[vpr]") {
150150
vpr_setup_clock_networks(vpr_setup, arch);
151151
auto det_routing_arch = &vpr_setup.RoutingArch;
152152
auto& router_opts = vpr_setup.RouterOpts;
153-
t_graph_type graph_directionality;
153+
e_graph_type graph_directionality;
154154

155155
if (router_opts.route_type == GLOBAL) {
156-
graph_directionality = GRAPH_BIDIR;
156+
graph_directionality = e_graph_type::BIDIR;
157157
} else {
158-
graph_directionality = (det_routing_arch->directionality == BI_DIRECTIONAL ? GRAPH_BIDIR : GRAPH_UNIDIR);
158+
graph_directionality = (det_routing_arch->directionality == BI_DIRECTIONAL ? e_graph_type::BIDIR : e_graph_type::UNIDIR);
159159
}
160160

161161
auto chan_width = init_chan(vpr_setup.RouterOpts.fixed_channel_width, arch.Chans, graph_directionality);

0 commit comments

Comments
 (0)