summaryrefslogtreecommitdiff
path: root/passes
diff options
context:
space:
mode:
authorClifford Wolf <clifford@clifford.at>2013-11-25 21:08:34 +0100
committerClifford Wolf <clifford@clifford.at>2013-11-25 21:08:34 +0100
commit3d95047ce2c08e60894b49832f1e1ffc6c599a0f (patch)
treedc042694287a83a5675f617879a1cb03f643f948 /passes
parent4c7d6e63ecbbe6445e9450551676b7bb98d529f3 (diff)
Bugfixes in new "stat" command
Diffstat (limited to 'passes')
-rw-r--r--passes/cmds/stat.cc8
1 files changed, 1 insertions, 7 deletions
diff --git a/passes/cmds/stat.cc b/passes/cmds/stat.cc
index cd222a9b..83477007 100644
--- a/passes/cmds/stat.cc
+++ b/passes/cmds/stat.cc
@@ -97,13 +97,6 @@ namespace
num_cells_by_type[it.second->type]++;
}
- for (auto &it : mod->cells) {
- if (!design->selected(mod, it.second))
- continue;
- num_cells++;
- num_cells_by_type[it.second->type]++;
- }
-
for (auto &it : mod->processes) {
if (!design->selected(mod, it.second))
continue;
@@ -136,6 +129,7 @@ namespace
if (mod_stat.count(it.first) > 0) {
log(" %*s%-*s %6d\n", 2*level, "", 26-2*level, RTLIL::id2cstr(it.first), it.second);
mod_data = mod_data + hierarchy_worker(mod_stat, it.first, level+1) * it.second;
+ mod_data.num_cells -= it.second;
} else {
mod_data.num_cells_by_type[it.first] += it.second;
}