diff options
author | Marcelina KoĆcielnicka <mwk@0x04.net> | 2021-05-27 21:08:11 +0200 |
---|---|---|
committer | Marcelina KoĆcielnicka <mwk@0x04.net> | 2021-08-11 14:17:48 +0200 |
commit | 72d86c327e203a097f15e502e6a90f1e6d345d7e (patch) | |
tree | 2387fd14ea61f265e900f46fca70b78e842c574b /passes/memory/memory_dff.cc | |
parent | 24027b5446ffa9d47e00e2ab8bc773fdebc246bd (diff) | |
download | yosys-72d86c327e203a097f15e502e6a90f1e6d345d7e.tar.gz yosys-72d86c327e203a097f15e502e6a90f1e6d345d7e.tar.bz2 yosys-72d86c327e203a097f15e502e6a90f1e6d345d7e.zip |
memory_dff: Recognize read ports with reset / initial value.
Diffstat (limited to 'passes/memory/memory_dff.cc')
-rw-r--r-- | passes/memory/memory_dff.cc | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/passes/memory/memory_dff.cc b/passes/memory/memory_dff.cc index e6b4b2400..8ad131c7c 100644 --- a/passes/memory/memory_dff.cc +++ b/passes/memory/memory_dff.cc @@ -60,11 +60,6 @@ struct MemoryDffWorker log("output FF has both set and reset, not supported.\n"); return; } - if (ff.has_srst || ff.has_arst || !ff.val_init.is_fully_undef()) { - // TODO: not supported yet - log("output FF has reset and/or init value, not supported yet.\n"); - return; - } merger.remove_output_ff(bits); if (ff.has_en && !ff.pol_en) ff.sig_en = module->LogicNot(NEW_ID, ff.sig_en); @@ -79,7 +74,6 @@ struct MemoryDffWorker port.en = ff.sig_en; else port.en = State::S1; -#if 0 if (ff.has_arst) { port.arst = ff.sig_arst; port.arst_value = ff.val_arst; @@ -94,7 +88,6 @@ struct MemoryDffWorker port.srst = State::S0; } port.init_value = ff.val_init; -#endif port.data = ff.sig_q; mem.emit(); log("merged output FF to cell.\n"); |