mirror of
https://github.com/YosysHQ/yosys
synced 2025-04-13 04:28:18 +00:00
Alphabetically sort port names in "show" output
This commit is contained in:
parent
f56b92818b
commit
f7bb8f244b
|
@ -355,6 +355,9 @@ struct ShowWorker
|
||||||
out_ports.push_back(conn.first);
|
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 = "{{";
|
std::string label_string = "{{";
|
||||||
|
|
||||||
for (auto &p : in_ports)
|
for (auto &p : in_ports)
|
||||||
|
|
Loading…
Reference in a new issue