aboutsummaryrefslogtreecommitdiffstats
path: root/nexus/global.cc
diff options
context:
space:
mode:
authorgatecat <gatecat@ds0.me>2021-02-10 12:28:40 +0000
committergatecat <gatecat@ds0.me>2021-02-10 14:18:12 +0000
commit535723f414a77eb4aa43b794627bbd4aca56f6f0 (patch)
treead130cb32c2b6ff29de73d88d12bdbfe0ed2fd66 /nexus/global.cc
parent85bb108ba40f9573571de0a785f9fbc91c4e1dd0 (diff)
downloadnextpnr-535723f414a77eb4aa43b794627bbd4aca56f6f0.tar.gz
nextpnr-535723f414a77eb4aa43b794627bbd4aca56f6f0.tar.bz2
nextpnr-535723f414a77eb4aa43b794627bbd4aca56f6f0.zip
Start making use of getBelPinsForCellPin API
This replaces getNetinfoSinkWire with 3 new functions for different use cases. At the moment all existing code has been moved to getNetinfoSinkWire with phys_idx=0 so the build doesn't break; but this won't yet function properly with more than one sink. But it provides a base on which to work on refactoring the routers to support this case. Signed-off-by: gatecat <gatecat@ds0.me>
Diffstat (limited to 'nexus/global.cc')
-rw-r--r--nexus/global.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/nexus/global.cc b/nexus/global.cc
index f7abb399..62633df9 100644
--- a/nexus/global.cc
+++ b/nexus/global.cc
@@ -53,7 +53,7 @@ struct NexusGlobalRouter
// Lookup source and destination wires
WireId src = ctx->getNetinfoSourceWire(net);
- WireId dst = ctx->getNetinfoSinkWire(net, net->users.at(user_idx));
+ WireId dst = ctx->getNetinfoSinkWire(net, net->users.at(user_idx), 0);
if (src == WireId())
log_error("Net '%s' has an invalid source port %s.%s\n", ctx->nameOf(net), ctx->nameOf(net->driver.cell),