mirror of
https://github.com/YosysHQ/yosys
synced 2025-06-24 14:53:42 +00:00
Fixed handling of boolean attributes (passes)
This commit is contained in:
parent
e9dede01ca
commit
e679a5d046
6 changed files with 8 additions and 8 deletions
|
@ -47,7 +47,7 @@ static void rmunused_module_cells(RTLIL::Module *module, bool verbose)
|
|||
wire2driver.insert(sig, cell);
|
||||
}
|
||||
}
|
||||
if (cell->type == "$memwr" || cell->attributes.count("\\keep"))
|
||||
if (cell->type == "$memwr" || cell->get_bool_attribute("\\keep"))
|
||||
queue.insert(cell);
|
||||
unused.insert(cell);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue