Skip to content

Commit 97c106c

Browse files
committed
[vpr] fixing a bug where sorted edges are not located
1 parent 7aa2304 commit 97c106c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

vpr/src/tileable_rr_graph/rr_gsb.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -879,10 +879,10 @@ void RRGSB::sort_chan_node_in_edges(const RRGraphView& rr_graph) {
879879
for (size_t side = 0; side < get_num_sides(); ++side) {
880880
SideManager side_manager(side);
881881
/* Bypass boundary GSBs here. When perimeter_cb option is on, Some GSBs may have only 1 side of CHANX or CHANY. There are no edges in the GSB, so we should skip them */
882+
chan_node_in_edges_[side].resize(chan_node_[side].get_chan_width());
882883
if (chan_node_[side_manager.get_opposite()].get_chan_width() == 0) {
883884
continue;
884885
}
885-
chan_node_in_edges_[side].resize(chan_node_[side].get_chan_width());
886886
for (size_t track_id = 0; track_id < chan_node_[side].get_chan_width(); ++track_id) {
887887
/* Only sort the output nodes and bypass passing wires */
888888
if ((OUT_PORT == chan_node_direction_[side][track_id])

0 commit comments

Comments
 (0)