diff options
author | Clifford Wolf <clifford@clifford.at> | 2013-10-24 11:27:30 +0200 |
---|---|---|
committer | Clifford Wolf <clifford@clifford.at> | 2013-10-24 11:27:30 +0200 |
commit | e9dede01ca8834ea3c211862a5d6c0119b2b578a (patch) | |
tree | b4c2d02cefb1dce8976a222b34c7c8f53d7b4a84 /backends/spice | |
parent | 23cf23418cd28b98c11a1ed3fb45dbb927f48e65 (diff) | |
download | yosys-e9dede01ca8834ea3c211862a5d6c0119b2b578a.tar.gz yosys-e9dede01ca8834ea3c211862a5d6c0119b2b578a.tar.bz2 yosys-e9dede01ca8834ea3c211862a5d6c0119b2b578a.zip |
Fixed handling of boolean attributes (backends)
Diffstat (limited to 'backends/spice')
-rw-r--r-- | backends/spice/spice.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/backends/spice/spice.cc b/backends/spice/spice.cc index 6932e1420..e6e4ab4b0 100644 --- a/backends/spice/spice.cc +++ b/backends/spice/spice.cc @@ -181,7 +181,7 @@ struct SpiceBackend : public Backend { for (auto module_it : design->modules) { RTLIL::Module *module = module_it.second; - if ((module->attributes.count("\\placeholder") > 0) > 0) + if (module->get_bool_attribute("\\placeholder")) continue; if (module->processes.size() != 0) |