kernel/mem: Remove old parameter when upgrading $mem to $mem_v2.
authorMarcelina Kościelnicka <mwk@0x04.net>
Mon, 16 Aug 2021 10:31:01 +0000 (12:31 +0200)
committerMarcelina Kościelnicka <mwk@0x04.net>
Mon, 16 Aug 2021 11:31:27 +0000 (13:31 +0200)
Fixes #2967.

kernel/mem.cc

index ee6b8b6cf2a75f6213cee05a19ea7b6281bea404..b176e40575c0ca28540abc43dfc4b74c822865d1 100644 (file)
@@ -202,6 +202,7 @@ void Mem::emit() {
                cell->parameters[ID::RD_ARST_VALUE] = rd_arst_value;
                cell->parameters[ID::RD_SRST_VALUE] = rd_srst_value;
                cell->parameters[ID::RD_INIT_VALUE] = rd_init_value;
+               cell->parameters.erase(ID::RD_TRANSPARENT);
                cell->setPort(ID::RD_CLK, rd_clk);
                cell->setPort(ID::RD_EN, rd_en);
                cell->setPort(ID::RD_ARST, rd_arst);