aboutsummaryrefslogtreecommitdiffstats
path: root/ice40/pack.cc
diff options
context:
space:
mode:
Diffstat (limited to 'ice40/pack.cc')
-rw-r--r--ice40/pack.cc3
1 files changed, 1 insertions, 2 deletions
diff --git a/ice40/pack.cc b/ice40/pack.cc
index f4c024da..b9a9fe6d 100644
--- a/ice40/pack.cc
+++ b/ice40/pack.cc
@@ -129,8 +129,7 @@ static void pack_ram(Design *design)
ci->name.str() + "_RAM");
packed_cells.insert(ci->name);
new_cells.push_back(packed);
- packed->params["READ_MODE"] = ci->params.at("READ_MODE");
- packed->params["WRITE_MODE"] = ci->params.at("WRITE_MODE");
+ std::copy(ci->params.begin(), ci->params.end(), std::inserter(packed->params, packed->params.begin()));
packed->params["NEG_CLK_W"] =
std::to_string(ci->type == "SB_RAM40_4KNW" ||
ci->type == "SB_RAM40_4KNRNW");