diff options
author | Clifford Wolf <clifford@clifford.at> | 2014-09-29 12:51:54 +0200 |
---|---|---|
committer | Clifford Wolf <clifford@clifford.at> | 2014-09-29 12:51:54 +0200 |
commit | 0b8cfbc6fde8e7500c5df38c74e1da2d74e588bd (patch) | |
tree | 8915aeb7d1af113469fc4e1f101d3dd157f6ba57 /passes | |
parent | f9a307a50b5ce67b67d2b53e8c1334ea23ffd997 (diff) | |
download | yosys-0b8cfbc6fde8e7500c5df38c74e1da2d74e588bd.tar.gz yosys-0b8cfbc6fde8e7500c5df38c74e1da2d74e588bd.tar.bz2 yosys-0b8cfbc6fde8e7500c5df38c74e1da2d74e588bd.zip |
Added support for "keep" on modules
Diffstat (limited to 'passes')
-rw-r--r-- | passes/opt/opt_clean.cc | 2 | ||||
-rw-r--r-- | passes/opt/opt_share.cc | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/passes/opt/opt_clean.cc b/passes/opt/opt_clean.cc index d589518aa..0e5ed238f 100644 --- a/passes/opt/opt_clean.cc +++ b/passes/opt/opt_clean.cc @@ -48,7 +48,7 @@ void rmunused_module_cells(RTLIL::Module *module, bool verbose) wire2driver.insert(sig, cell); } } - if (cell->type == "$memwr" || cell->type == "$assert" || cell->get_bool_attribute("\\keep")) + if (cell->type == "$memwr" || cell->type == "$assert" || cell->has_keep_attr()) queue.insert(cell); unused.insert(cell); } diff --git a/passes/opt/opt_share.cc b/passes/opt/opt_share.cc index 33115349c..f8bc02205 100644 --- a/passes/opt/opt_share.cc +++ b/passes/opt/opt_share.cc @@ -196,7 +196,7 @@ struct OptShareWorker if (!ct.cell_known(cell1->type)) return cell1 < cell2; - if (cell1->get_bool_attribute("\\keep") || cell2->get_bool_attribute("\\keep")) + if (cell1->has_keep_attr() || cell2->has_keep_attr()) return cell1 < cell2; bool lt; |