mirror of
https://github.com/YosysHQ/yosys
synced 2025-04-26 18:45:34 +00:00
dump: sort lhs and rhs in a connection
This commit is contained in:
parent
9f74e1bd2b
commit
4a0685aa1c
1 changed files with 5 additions and 0 deletions
|
@ -314,6 +314,11 @@ void RTLIL_BACKEND::dump_module(std::ostream &f, std::string indent, RTLIL::Modu
|
|||
module = new_module;
|
||||
module->sort();
|
||||
std::sort(module->connections_.begin(), module->connections_.end());
|
||||
for (auto& [lhs, rhs] : module->connections_) {
|
||||
if (std::string(log_signal(lhs)) < std::string(log_signal(rhs))) {
|
||||
std::swap(lhs, rhs);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (print_header)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue