Skip to content

Commit 9642bb4

Browse files
committed
fix typo
1 parent e434d14 commit 9642bb4

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

vpr/src/route/rr_graph.cpp

+3-3
Original file line numberDiff line numberDiff line change
@@ -747,7 +747,7 @@ void create_rr_graph(const t_graph_type graph_type,
747747
short delayless_switch = OPEN;
748748
if (load_rr_graph) {
749749
const auto& rr_switches = device_ctx.rr_graph.rr_switch();
750-
for (int switch_id = 0; switch_id < rr_switches.size(); switch_id++){
750+
for (int switch_id = 0; switch_id < static_cast<int>(rr_switches.size()); switch_id++){
751751
const auto& rr_switch = rr_switches[RRSwitchId(switch_id)];
752752
if (rr_switch.name.find("delayless") != std::string::npos) {
753753
delayless_switch = static_cast<short>(switch_id);
@@ -762,7 +762,7 @@ void create_rr_graph(const t_graph_type graph_type,
762762
grid,
763763
block_types,
764764
device_ctx.rr_graph,
765-
det_routing_arch->delayless_switch,
765+
delayless_switch,
766766
det_routing_arch->R_minW_nmos,
767767
det_routing_arch->R_minW_pmos,
768768
mutable_device_ctx.rr_graph_builder,
@@ -794,7 +794,7 @@ void create_rr_graph(const t_graph_type graph_type,
794794
// When this function is called in any stage other than routing, the is_flat flag passed to this function is false, regardless of the flag passed
795795
// through command line. So, the graph corresponding to global resources will be created and written down to file if needed. During routing, if flat-routing
796796
// is enabled, intra-cluster resources will be added to the graph, but this new bigger graph will not be written down.
797-
if (!det_routing_arch->write_rr_graph_filename.empty() && !is_flat) {
797+
if (!det_routing_arch->write_rr_graph_filename.empty()) {
798798
write_rr_graph(&mutable_device_ctx.rr_graph_builder,
799799
&mutable_device_ctx.rr_graph,
800800
device_ctx.physical_tile_types,

0 commit comments

Comments
 (0)