diff options
author | Sergiusz Bazanski <q3k@q3k.org> | 2018-07-24 15:54:03 +0100 |
---|---|---|
committer | Sergiusz Bazanski <q3k@q3k.org> | 2018-07-24 15:54:03 +0100 |
commit | b31e95f82caf53a98827134a9f1719822d9dea52 (patch) | |
tree | 86434ce0e46e18d1621bc43fe382c70b847b1896 /ice40/pack.cc | |
parent | 90ba958abe85ced03f16888644dd026b133cab36 (diff) | |
parent | c57463e87b4976f63f04eff133c554af7e8d59d3 (diff) | |
download | nextpnr-b31e95f82caf53a98827134a9f1719822d9dea52.tar.gz nextpnr-b31e95f82caf53a98827134a9f1719822d9dea52.tar.bz2 nextpnr-b31e95f82caf53a98827134a9f1719822d9dea52.zip |
Merge branch 'master' of gitlab.com:SymbioticEDA/nextpnr into q3k/pll
Diffstat (limited to 'ice40/pack.cc')
-rw-r--r-- | ice40/pack.cc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/ice40/pack.cc b/ice40/pack.cc index 03b33190..b1e7380e 100644 --- a/ice40/pack.cc +++ b/ice40/pack.cc @@ -312,6 +312,10 @@ 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")) { + uc->ports[user.port].net = nullptr; } else { uc->ports[user.port].net = constnet; constnet->users.push_back(user); |