From 6d6556aef0d4738cc93d3a7524c89e52e1a700be Mon Sep 17 00:00:00 2001 From: Jannis Harder Date: Wed, 12 Feb 2025 16:27:59 +0100 Subject: [PATCH] abstract: Improve debug logging Print the port bit instead of the arbitrary representative sigbit to identify the target of the abstraction operation. --- passes/cmds/abstract.cc | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/passes/cmds/abstract.cc b/passes/cmds/abstract.cc index 43940a6ea..5639758bb 100644 --- a/passes/cmds/abstract.cc +++ b/passes/cmds/abstract.cc @@ -187,7 +187,7 @@ unsigned int abstract_state(Module* mod, EnableLogic enable, const std::vector offsets_to_abstract; for (int i = 0; i < conn.second.size(); i++) { if (selected_reps.count(sigmap(conn.second[i]))) { - log_debug("Abstracting value for bit %s due to selections:\n", log_signal(conn.second[i])); + log_debug("Abstracting value for %s.%s[%i] in module %s due to selections:\n", + log_id(cell), log_id(conn.first), i, log_id(mod)); explain_selections(selected_reps.at(sigmap(conn.second[i]))); offsets_to_abstract.insert(i); }