diff options
author | gatecat <gatecat@ds0.me> | 2021-02-10 12:28:40 +0000 |
---|---|---|
committer | gatecat <gatecat@ds0.me> | 2021-02-10 14:18:12 +0000 |
commit | 535723f414a77eb4aa43b794627bbd4aca56f6f0 (patch) | |
tree | ad130cb32c2b6ff29de73d88d12bdbfe0ed2fd66 /nexus/global.cc | |
parent | 85bb108ba40f9573571de0a785f9fbc91c4e1dd0 (diff) | |
download | nextpnr-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.cc | 2 |
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), |