From 05942dc8ed858fc6f39ebca0bd3eafaae1590a3b Mon Sep 17 00:00:00 2001 From: "Emil J. Tywoniak" Date: Mon, 14 Apr 2025 14:39:46 +0200 Subject: [PATCH] fixup! dump: sort lhs and rhs in a connection --- backends/rtlil/rtlil_backend.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backends/rtlil/rtlil_backend.cc b/backends/rtlil/rtlil_backend.cc index 1ad17d485..a65b54159 100644 --- a/backends/rtlil/rtlil_backend.cc +++ b/backends/rtlil/rtlil_backend.cc @@ -313,12 +313,12 @@ void RTLIL_BACKEND::dump_module(std::ostream &f, std::string indent, RTLIL::Modu module->cloneInto(new_module); 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); } } + std::sort(module->connections_.begin(), module->connections_.end()); } if (print_header)