From e9dede01ca8834ea3c211862a5d6c0119b2b578a Mon Sep 17 00:00:00 2001 From: Clifford Wolf Date: Thu, 24 Oct 2013 11:27:30 +0200 Subject: Fixed handling of boolean attributes (backends) --- backends/spice/spice.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'backends/spice/spice.cc') diff --git a/backends/spice/spice.cc b/backends/spice/spice.cc index 6932e142..e6e4ab4b 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) -- cgit v1.2.3