summaryrefslogtreecommitdiff
path: root/passes
diff options
context:
space:
mode:
authorClifford Wolf <clifford@clifford.at>2014-09-19 11:13:10 +0200
committerClifford Wolf <clifford@clifford.at>2014-09-19 11:13:10 +0200
commitf7bb8f244beff135aa2ef6c771bece45ce240c5d (patch)
treebce8fb1a6c257b91f8264b5c9d244ac226a2cbf7 /passes
parentf56b92818b05c898740df76e0a15bf94ce533e17 (diff)
Alphabetically sort port names in "show" output
Diffstat (limited to 'passes')
-rw-r--r--passes/cmds/show.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/passes/cmds/show.cc b/passes/cmds/show.cc
index 0451ebc2..2218eded 100644
--- a/passes/cmds/show.cc
+++ b/passes/cmds/show.cc
@@ -355,6 +355,9 @@ struct ShowWorker
out_ports.push_back(conn.first);
}
+ std::sort(in_ports.begin(), in_ports.end(), RTLIL::sort_by_id_str());
+ std::sort(out_ports.begin(), out_ports.end(), RTLIL::sort_by_id_str());
+
std::string label_string = "{{";
for (auto &p : in_ports)