diff options
Diffstat (limited to 'ice40/pack.cc')
-rw-r--r-- | ice40/pack.cc | 5 |
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; |