From 81617afa954c4aa3f4c83162a6780eb873d0d4fe Mon Sep 17 00:00:00 2001 From: "Emil J. Tywoniak" Date: Tue, 7 Apr 2026 19:30:19 +0200 Subject: [PATCH] rtlil_bufnorm: more xlog --- kernel/rtlil_bufnorm.cc | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/kernel/rtlil_bufnorm.cc b/kernel/rtlil_bufnorm.cc index c9d03250a..64943a01a 100644 --- a/kernel/rtlil_bufnorm.cc +++ b/kernel/rtlil_bufnorm.cc @@ -30,7 +30,9 @@ YOSYS_NAMESPACE_BEGIN typedef std::pair cell_port_t; - +// Since this is kernel code, we only log with yosys_xtrace set to not get +// in the way when using `debug` to debug specific passes.q +#define xlog(...) do { if (yosys_xtrace) log("#X [bufnorm] " __VA_ARGS__); } while (0) struct RTLIL::SigNormIndex { @@ -316,6 +318,7 @@ void RTLIL::Design::sigNormalize(bool enable) return; + xlog("leaving signorm\n"); for (auto module : modules()) { module->connections(); if (module->sig_norm_index != nullptr) { @@ -344,8 +347,7 @@ void RTLIL::Design::sigNormalize(bool enable) if (!flagSigNormalized) { - - + xlog("entering signorm\n"); flagSigNormalized = true; } @@ -508,9 +510,6 @@ void RTLIL::Module::remove(RTLIL::Cell *cell) void RTLIL::Module::bufNormalize() { - // Since this is kernel code, we only log with yosys_xtrace set to not get - // in the way when using `debug` to debug specific passes.q -#define xlog(...) do { if (yosys_xtrace) log("#X [bufnorm] " __VA_ARGS__); } while (0) if (!design->flagBufferedNormalized) return;