diff options
author | Clifford Wolf <clifford@clifford.at> | 2015-02-14 10:23:03 +0100 |
---|---|---|
committer | Clifford Wolf <clifford@clifford.at> | 2015-02-14 10:23:03 +0100 |
commit | 910556560fbf26df4f2960b7d94039a1f399f1a1 (patch) | |
tree | 0275d15fa8aa833995f68784f205b2842a0ccb48 /passes | |
parent | ef151b0b30c7b7253aceba6d184e7721a4eff0c0 (diff) | |
download | yosys-910556560fbf26df4f2960b7d94039a1f399f1a1.tar.gz yosys-910556560fbf26df4f2960b7d94039a1f399f1a1.tar.bz2 yosys-910556560fbf26df4f2960b7d94039a1f399f1a1.zip |
Added $meminit cell type
Diffstat (limited to 'passes')
-rw-r--r-- | passes/opt/opt_clean.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/passes/opt/opt_clean.cc b/passes/opt/opt_clean.cc index 6a7e6051d..aea341759 100644 --- a/passes/opt/opt_clean.cc +++ b/passes/opt/opt_clean.cc @@ -47,7 +47,7 @@ void rmunused_module_cells(Module *module, bool verbose) if (bit.wire != nullptr) wire2driver[bit].insert(cell); } - if (cell->type == "$memwr" || cell->type == "$assert" || cell->has_keep_attr()) + if (cell->type.in("$memwr", "$meminit", "$assert") || cell->has_keep_attr()) queue.insert(cell); else unused.insert(cell); |