summaryrefslogtreecommitdiff
path: root/passes
diff options
context:
space:
mode:
authorClifford Wolf <clifford@clifford.at>2014-10-03 19:21:04 +0200
committerClifford Wolf <clifford@clifford.at>2014-10-03 19:21:04 +0200
commit9dea161321c7a3fb47b5e085f91b4ecf40c9e209 (patch)
tree7bf419bed1ca15f1429025bd149f13a1beb035eb /passes
parentc5c7066ea64d50a6bb24270da1579f88d26af9ec (diff)
sort cell types in "stat" output by name
Diffstat (limited to 'passes')
-rw-r--r--passes/cmds/stat.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/passes/cmds/stat.cc b/passes/cmds/stat.cc
index b21ba01b..51f1f0ca 100644
--- a/passes/cmds/stat.cc
+++ b/passes/cmds/stat.cc
@@ -33,7 +33,7 @@ struct statdata_t
STAT_INT_MEMBERS
#undef X
- std::map<RTLIL::IdString, int> num_cells_by_type;
+ std::map<RTLIL::IdString, int, RTLIL::sort_by_id_str> num_cells_by_type;
statdata_t operator+(const statdata_t &other) const
{
@@ -147,7 +147,7 @@ struct statdata_t
statdata_t hierarchy_worker(std::map<RTLIL::IdString, statdata_t> &mod_stat, RTLIL::IdString mod, int level)
{
statdata_t mod_data = mod_stat.at(mod);
- std::map<RTLIL::IdString, int> num_cells_by_type;
+ std::map<RTLIL::IdString, int, RTLIL::sort_by_id_str> num_cells_by_type;
num_cells_by_type.swap(mod_data.num_cells_by_type);
for (auto &it : num_cells_by_type)