diff options
Diffstat (limited to 'backends/verilog')
-rw-r--r-- | backends/verilog/verilog_backend.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/backends/verilog/verilog_backend.cc b/backends/verilog/verilog_backend.cc index 0eee4af40..88a48b584 100644 --- a/backends/verilog/verilog_backend.cc +++ b/backends/verilog/verilog_backend.cc @@ -957,7 +957,7 @@ struct VerilogBackend : public Backend { extra_args(f, filename, args, argidx); for (auto it = design->modules.begin(); it != design->modules.end(); it++) { - if ((it->second->attributes.count("\\placeholder") > 0) != placeholders) + if (it->second->get_bool_attribute("\\placeholder") != placeholders) continue; if (selected && !design->selected_whole_module(it->first)) { if (design->selected_module(it->first)) |