mirror of https://github.com/YosysHQ/yosys.git
Added placeholder check to dfflibmap and cleaned up some other placeholder checks
This commit is contained in:
parent
961eaa0077
commit
0efe16f118
|
@ -298,7 +298,7 @@ struct BlifBackend : public Backend {
|
|||
for (auto module_it : design->modules)
|
||||
{
|
||||
RTLIL::Module *module = module_it.second;
|
||||
if ((module->get_bool_attribute("\\placeholder")) > 0)
|
||||
if (module->get_bool_attribute("\\placeholder"))
|
||||
continue;
|
||||
|
||||
if (module->processes.size() != 0)
|
||||
|
|
|
@ -477,7 +477,7 @@ struct ShowWorker
|
|||
if (!design->selected_module(module->name))
|
||||
continue;
|
||||
if (design->selected_whole_module(module->name)) {
|
||||
if (module->get_bool_attribute("\\placeholder") > 0) {
|
||||
if (module->get_bool_attribute("\\placeholder")) {
|
||||
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->get_bool_attribute("\\placeholder") > 0)
|
||||
if (mod_it.second->get_bool_attribute("\\placeholder"))
|
||||
continue;
|
||||
if (mod_it.second->cells.empty() && mod_it.second->connections.empty())
|
||||
continue;
|
||||
|
|
|
@ -498,7 +498,7 @@ struct DfflibmapPass : public Pass {
|
|||
logmap_all();
|
||||
|
||||
for (auto &it : design->modules)
|
||||
if (design->selected(it.second))
|
||||
if (design->selected(it.second) && !it.second->get_bool_attribute("\\placeholder"))
|
||||
dfflibmap(design, it.second);
|
||||
|
||||
cell_mappings.clear();
|
||||
|
|
Loading…
Reference in New Issue