From b3882f8324507ed503ff481abda3dffded0d0b67 Mon Sep 17 00:00:00 2001 From: gatecat Date: Wed, 30 Jun 2021 11:48:51 +0100 Subject: interchange: Fix dedicated interconnect check when site is the same Signed-off-by: gatecat --- fpga_interchange/dedicated_interconnect.cc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'fpga_interchange/dedicated_interconnect.cc') diff --git a/fpga_interchange/dedicated_interconnect.cc b/fpga_interchange/dedicated_interconnect.cc index d78743ac..6a2d16bb 100644 --- a/fpga_interchange/dedicated_interconnect.cc +++ b/fpga_interchange/dedicated_interconnect.cc @@ -87,7 +87,10 @@ bool DedicatedInterconnect::check_routing(BelId src_bel, IdString src_bel_pin, B WireNode wire_node; wire_node.wire = src_wire; - wire_node.state = IN_SOURCE_SITE; + if (src_wire.tile == dst_wire.tile && src_wire_data.site == dst_wire_data.site) + wire_node.state = IN_SINK_SITE; + else + wire_node.state = IN_SOURCE_SITE; wire_node.depth = 0; nodes_to_expand.push_back(wire_node); -- cgit v1.2.3