aboutsummaryrefslogtreecommitdiffstats
path: root/fpga_interchange/dedicated_interconnect.cc
diff options
context:
space:
mode:
authorgatecat <gatecat@ds0.me>2021-06-30 13:00:12 +0100
committerGitHub <noreply@github.com>2021-06-30 13:00:12 +0100
commit152c41c3ac4541ddfa2147be1ac89f9d0eaf5c6e (patch)
tree8bf5a86b5b473e535686ac836e53c44eff3ccdab /fpga_interchange/dedicated_interconnect.cc
parent91b998bb11e4bce04ecd6e2a81119714fb4640ae (diff)
parentb3882f8324507ed503ff481abda3dffded0d0b67 (diff)
downloadnextpnr-152c41c3ac4541ddfa2147be1ac89f9d0eaf5c6e.tar.gz
nextpnr-152c41c3ac4541ddfa2147be1ac89f9d0eaf5c6e.tar.bz2
nextpnr-152c41c3ac4541ddfa2147be1ac89f9d0eaf5c6e.zip
Merge pull request #739 from YosysHQ/gatecat/usp-io-macro
interchange: Place entire IO macro based on routeability
Diffstat (limited to 'fpga_interchange/dedicated_interconnect.cc')
-rw-r--r--fpga_interchange/dedicated_interconnect.cc5
1 files changed, 4 insertions, 1 deletions
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);