diff options
author | David Shah <davey1576@gmail.com> | 2018-06-16 14:42:00 +0200 |
---|---|---|
committer | David Shah <davey1576@gmail.com> | 2018-06-16 14:44:10 +0200 |
commit | 7ff1b7e02f7436e03aae6204e4b23f106369ca6b (patch) | |
tree | f9a8467373ffcfa41a4ba6eca745423873494ad1 | |
parent | f079e0d204117b53a91da2805d31136607a5ca0e (diff) | |
download | nextpnr-7ff1b7e02f7436e03aae6204e4b23f106369ca6b.tar.gz nextpnr-7ff1b7e02f7436e03aae6204e4b23f106369ca6b.tar.bz2 nextpnr-7ff1b7e02f7436e03aae6204e4b23f106369ca6b.zip |
ice40: Fix RAM config in packer
Signed-off-by: David Shah <davey1576@gmail.com>
-rw-r--r-- | ice40/pack.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/ice40/pack.cc b/ice40/pack.cc index b9a9fe6d..e045c05c 100644 --- a/ice40/pack.cc +++ b/ice40/pack.cc @@ -129,7 +129,8 @@ static void pack_ram(Design *design) ci->name.str() + "_RAM"); packed_cells.insert(ci->name); new_cells.push_back(packed); - std::copy(ci->params.begin(), ci->params.end(), std::inserter(packed->params, packed->params.begin())); + for (auto param : ci->params) + packed->params[param.first] = param.second; packed->params["NEG_CLK_W"] = std::to_string(ci->type == "SB_RAM40_4KNW" || ci->type == "SB_RAM40_4KNRNW"); |