From 5ed076dfb45b197497d23bad42f8fde369b2998e Mon Sep 17 00:00:00 2001 From: tangxifan Date: Tue, 28 May 2019 17:55:09 -0600 Subject: [PATCH] fixed a critical bug in rotating --- vpr7_x2p/vpr/SRC/fpga_x2p/base/rr_blocks.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vpr7_x2p/vpr/SRC/fpga_x2p/base/rr_blocks.cpp b/vpr7_x2p/vpr/SRC/fpga_x2p/base/rr_blocks.cpp index d1242c4e6..ac945861a 100644 --- a/vpr7_x2p/vpr/SRC/fpga_x2p/base/rr_blocks.cpp +++ b/vpr7_x2p/vpr/SRC/fpga_x2p/base/rr_blocks.cpp @@ -113,7 +113,7 @@ std::vector RRChan::get_segment_ids() const { std::vector::iterator it; /* Try to find the node_segment id in the list */ it = find(seg_list.begin(), seg_list.end(), node_segments_[inode]); - if ( it != seg_list.end() ) { + if ( it == seg_list.end() ) { /* Not found, add it to the list */ seg_list.push_back(node_segments_[inode]); }