mirror of
https://github.com/YosysHQ/yosys
synced 2025-04-26 10:35:38 +00:00
fixup! fixup! dump: sort lhs and rhs in a connection
This commit is contained in:
parent
05942dc8ed
commit
f95de7d340
1 changed files with 6 additions and 1 deletions
|
@ -318,7 +318,12 @@ void RTLIL_BACKEND::dump_module(std::ostream &f, std::string indent, RTLIL::Modu
|
|||
std::swap(lhs, rhs);
|
||||
}
|
||||
}
|
||||
std::sort(module->connections_.begin(), module->connections_.end());
|
||||
std::sort(module->connections_.begin(), module->connections_.end(), [](const auto &a, const auto &b) {
|
||||
if (std::string(log_signal(a.first)) != std::string(log_signal(b.first))) {
|
||||
return std::string(log_signal(a.first)) < std::string(log_signal(b.first));
|
||||
}
|
||||
return std::string(log_signal(a.second)) < std::string(log_signal(b.second));
|
||||
});
|
||||
}
|
||||
|
||||
if (print_header)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue