aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Shah <davey1576@gmail.com>2018-06-16 14:42:00 +0200
committerDavid Shah <davey1576@gmail.com>2018-06-16 14:44:10 +0200
commit7ff1b7e02f7436e03aae6204e4b23f106369ca6b (patch)
treef9a8467373ffcfa41a4ba6eca745423873494ad1
parentf079e0d204117b53a91da2805d31136607a5ca0e (diff)
downloadnextpnr-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.cc3
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");