mirror of
https://github.com/YosysHQ/yosys
synced 2025-04-23 09:05:32 +00:00
Added support for "keep" on modules
This commit is contained in:
parent
f9a307a50b
commit
0b8cfbc6fd
4 changed files with 9 additions and 2 deletions
|
@ -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);
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue