mirror of
https://github.com/YosysHQ/yosys
synced 2025-06-06 14:13:23 +00:00
fixup! dump: sort lhs and rhs in a connection
This commit is contained in:
parent
4a0685aa1c
commit
05942dc8ed
1 changed files with 1 additions and 1 deletions
|
@ -313,12 +313,12 @@ void RTLIL_BACKEND::dump_module(std::ostream &f, std::string indent, RTLIL::Modu
|
||||||
module->cloneInto(new_module);
|
module->cloneInto(new_module);
|
||||||
module = new_module;
|
module = new_module;
|
||||||
module->sort();
|
module->sort();
|
||||||
std::sort(module->connections_.begin(), module->connections_.end());
|
|
||||||
for (auto& [lhs, rhs] : module->connections_) {
|
for (auto& [lhs, rhs] : module->connections_) {
|
||||||
if (std::string(log_signal(lhs)) < std::string(log_signal(rhs))) {
|
if (std::string(log_signal(lhs)) < std::string(log_signal(rhs))) {
|
||||||
std::swap(lhs, rhs);
|
std::swap(lhs, rhs);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
std::sort(module->connections_.begin(), module->connections_.end());
|
||||||
}
|
}
|
||||||
|
|
||||||
if (print_header)
|
if (print_header)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue