aboutsummaryrefslogtreecommitdiffstats
path: root/fpga_interchange
diff options
context:
space:
mode:
authorAlessandro Comodi <acomodi@antmicro.com>2021-10-01 11:53:56 +0200
committerAlessandro Comodi <acomodi@antmicro.com>2021-10-01 11:53:56 +0200
commita3ba83fce3629fa4c0ec8034b01d112e2c3be78a (patch)
tree24f66da6fabd084211e7b01027d084ab96c85961 /fpga_interchange
parent7550b60069facbca9e4292ad2753f8e317a5d681 (diff)
downloadnextpnr-a3ba83fce3629fa4c0ec8034b01d112e2c3be78a.tar.gz
nextpnr-a3ba83fce3629fa4c0ec8034b01d112e2c3be78a.tar.bz2
nextpnr-a3ba83fce3629fa4c0ec8034b01d112e2c3be78a.zip
interchange: fix uninitialized memory bug in cluster placement
Signed-off-by: Alessandro Comodi <acomodi@antmicro.com>
Diffstat (limited to 'fpga_interchange')
-rw-r--r--fpga_interchange/arch_pack_clusters.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/fpga_interchange/arch_pack_clusters.cc b/fpga_interchange/arch_pack_clusters.cc
index acb61917..b003812e 100644
--- a/fpga_interchange/arch_pack_clusters.cc
+++ b/fpga_interchange/arch_pack_clusters.cc
@@ -99,7 +99,7 @@ static void handle_expansion_node(const Context *ctx, WireId prev_wire, PipId pi
NPNR_ASSERT(false);
}
} else {
- if (next_node.state == IN_ROUTING)
+ if (curr_node.state == IN_ROUTING)
next_node.depth++;
next_node.state = curr_node.state;
}