aboutsummaryrefslogtreecommitdiffstats
path: root/ice40/pack.cc
diff options
context:
space:
mode:
authorDavid Shah <davey1576@gmail.com>2018-07-24 15:52:56 +0200
committerDavid Shah <davey1576@gmail.com>2018-07-24 15:52:56 +0200
commit5a170f286c2868375d93477ad3bd08ccc30a15a1 (patch)
tree2a65950859af431d76775e847e4d6fca739ee47b /ice40/pack.cc
parente200c281d988b30ee39bd4d5934d6e6b2d3d4b6d (diff)
downloadnextpnr-5a170f286c2868375d93477ad3bd08ccc30a15a1.tar.gz
nextpnr-5a170f286c2868375d93477ad3bd08ccc30a15a1.tar.bz2
nextpnr-5a170f286c2868375d93477ad3bd08ccc30a15a1.zip
ice40: Remove use of deprecated APIs
Signed-off-by: David Shah <davey1576@gmail.com>
Diffstat (limited to 'ice40/pack.cc')
-rw-r--r--ice40/pack.cc5
1 files changed, 3 insertions, 2 deletions
diff --git a/ice40/pack.cc b/ice40/pack.cc
index 164fa756..f054be6b 100644
--- a/ice40/pack.cc
+++ b/ice40/pack.cc
@@ -311,8 +311,9 @@ static void set_net_constant(const Context *ctx, NetInfo *orig, NetInfo *constne
(user.port != ctx->id("CLK") &&
((constval && user.port == ctx->id("CE")) || (!constval && user.port != ctx->id("CE"))))) {
uc->ports[user.port].net = nullptr;
- } else if (is_ram(ctx, uc) && !constval && user.port != ctx->id("RCLK") && user.port != ctx->id("RCLKN") && user.port != ctx->id("WCLK") && user.port != ctx->id("WCLKN")
- && user.port != ctx->id("RCLKE") && user.port != ctx->id("WCLKE")) {
+ } else if (is_ram(ctx, uc) && !constval && user.port != ctx->id("RCLK") && user.port != ctx->id("RCLKN") &&
+ user.port != ctx->id("WCLK") && user.port != ctx->id("WCLKN") && user.port != ctx->id("RCLKE") &&
+ user.port != ctx->id("WCLKE")) {
uc->ports[user.port].net = nullptr;
} else {
uc->ports[user.port].net = constnet;