mirror of https://github.com/YosysHQ/yosys.git
Fixed "stat" handling of blackbox modules
This commit is contained in:
parent
e9368a1d7e
commit
c6ae9ebb79
|
@ -208,20 +208,17 @@ struct StatPass : public Pass {
|
||||||
}
|
}
|
||||||
extra_args(args, argidx, design);
|
extra_args(args, argidx, design);
|
||||||
|
|
||||||
for (auto &it : design->modules_)
|
for (auto mod : design->selected_modules())
|
||||||
{
|
{
|
||||||
if (!design->selected_module(it.first))
|
|
||||||
continue;
|
|
||||||
|
|
||||||
if (!top_mod && design->full_selection())
|
if (!top_mod && design->full_selection())
|
||||||
if (it.second->get_bool_attribute("\\top"))
|
if (mod->get_bool_attribute("\\top"))
|
||||||
top_mod = it.second;
|
top_mod = mod;
|
||||||
|
|
||||||
statdata_t data(design, it.second, width_mode);
|
statdata_t data(design, mod, width_mode);
|
||||||
mod_stat[it.first] = data;
|
mod_stat[mod->name] = data;
|
||||||
|
|
||||||
log("\n");
|
log("\n");
|
||||||
log("=== %s%s ===\n", RTLIL::id2cstr(it.first), design->selected_whole_module(it.first) ? "" : " (partially selected)");
|
log("=== %s%s ===\n", RTLIL::id2cstr(mod->name), design->selected_whole_module(mod->name) ? "" : " (partially selected)");
|
||||||
log("\n");
|
log("\n");
|
||||||
data.log_data();
|
data.log_data();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue