mirror of
https://github.com/YosysHQ/yosys
synced 2025-08-08 20:21:25 +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
|
@ -477,7 +477,7 @@ struct ShowWorker
|
|||
if (!design->selected_module(module->name))
|
||||
continue;
|
||||
if (design->selected_whole_module(module->name)) {
|
||||
if (module->attributes.count("\\placeholder") > 0) {
|
||||
if (module->get_bool_attribute("\\placeholder") > 0) {
|
||||
log("Skipping placeholder module %s.\n", id2cstr(module->name));
|
||||
continue;
|
||||
} else
|
||||
|
@ -617,7 +617,7 @@ struct ShowPass : public Pass {
|
|||
if (format != "ps") {
|
||||
int modcount = 0;
|
||||
for (auto &mod_it : design->modules) {
|
||||
if (mod_it.second->attributes.count("\\placeholder") > 0)
|
||||
if (mod_it.second->get_bool_attribute("\\placeholder") > 0)
|
||||
continue;
|
||||
if (mod_it.second->cells.empty() && mod_it.second->connections.empty())
|
||||
continue;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue