From f2c531e65f4518abe58d04e53d0116583651ac50 Mon Sep 17 00:00:00 2001 From: Jannis Harder Date: Thu, 10 Nov 2022 16:28:47 +0100 Subject: [PATCH] verilog_backend: Do not run bmuxmap or demuxmap in -noexpr mode. --- backends/verilog/verilog_backend.cc | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/backends/verilog/verilog_backend.cc b/backends/verilog/verilog_backend.cc index 5a9d9b63f..3da168960 100644 --- a/backends/verilog/verilog_backend.cc +++ b/backends/verilog/verilog_backend.cc @@ -2326,8 +2326,10 @@ struct VerilogBackend : public Backend { } log_push(); - Pass::call(design, "bmuxmap"); - Pass::call(design, "demuxmap"); + if (!noexpr) { + Pass::call(design, "bmuxmap"); + Pass::call(design, "demuxmap"); + } Pass::call(design, "clean_zerowidth"); log_pop();