aboutsummaryrefslogtreecommitdiffstats
path: root/passes/techmap
diff options
context:
space:
mode:
authorEddie Hung <eddie@fpgeh.com>2019-04-18 09:00:06 -0700
committerEddie Hung <eddie@fpgeh.com>2019-04-18 09:00:06 -0700
commit8fe0a961b306ef0c9c5de912833c6d92aed5f363 (patch)
tree10325fb4b9a5d9a481177f0360fdbb8026e66367 /passes/techmap
parenta20ed260e1b12da64bc4b40682c53145f6ffe827 (diff)
parentf4abc21d8ad79621cc24852bd76abf40a9d9f702 (diff)
downloadyosys-8fe0a961b306ef0c9c5de912833c6d92aed5f363.tar.gz
yosys-8fe0a961b306ef0c9c5de912833c6d92aed5f363.tar.bz2
yosys-8fe0a961b306ef0c9c5de912833c6d92aed5f363.zip
Merge remote-tracking branch 'origin/clifford/whitebox' into xaig
Diffstat (limited to 'passes/techmap')
-rw-r--r--passes/techmap/dfflibmap.cc2
-rw-r--r--passes/techmap/techmap.cc4
2 files changed, 3 insertions, 3 deletions
diff --git a/passes/techmap/dfflibmap.cc b/passes/techmap/dfflibmap.cc
index 274177a68..b5c0498d0 100644
--- a/passes/techmap/dfflibmap.cc
+++ b/passes/techmap/dfflibmap.cc
@@ -664,7 +664,7 @@ struct DfflibmapPass : public Pass {
logmap_all();
for (auto &it : design->modules_)
- if (design->selected(it.second) && !it.second->get_bool_attribute("\\blackbox"))
+ if (design->selected(it.second) && !it.second->get_blackbox_attribute())
dfflibmap(design, it.second, prepare_mode);
cell_mappings.clear();
diff --git a/passes/techmap/techmap.cc b/passes/techmap/techmap.cc
index d0e5e2236..d694e8165 100644
--- a/passes/techmap/techmap.cc
+++ b/passes/techmap/techmap.cc
@@ -472,7 +472,7 @@ struct TechmapWorker
RTLIL::Module *tpl = map->modules_[tpl_name];
std::map<RTLIL::IdString, RTLIL::Const> parameters(cell->parameters.begin(), cell->parameters.end());
- if (tpl->get_bool_attribute("\\blackbox"))
+ if (tpl->get_blackbox_attribute())
continue;
if (!flatten_mode)
@@ -1209,7 +1209,7 @@ struct FlattenPass : public Pass {
dict<RTLIL::IdString, RTLIL::Module*> new_modules;
for (auto mod : vector<Module*>(design->modules()))
- if (used_modules[mod->name] || mod->get_bool_attribute("\\blackbox")) {
+ if (used_modules[mod->name] || mod->get_blackbox_attribute()) {
new_modules[mod->name] = mod;
} else {
log("Deleting now unused module %s.\n", log_id(mod));