3
0
Fork 0
mirror of https://github.com/YosysHQ/yosys synced 2025-06-12 17:06:15 +00:00

Added support for "keep" on modules

This commit is contained in:
Clifford Wolf 2014-09-29 12:51:54 +02:00
parent f9a307a50b
commit 0b8cfbc6fd
4 changed files with 9 additions and 2 deletions

View file

@ -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);
}