From 96c526d1ba57a465f970347ad30109c7d4c6e823 Mon Sep 17 00:00:00 2001 From: "N. Engelhardt" Date: Wed, 13 Nov 2024 10:21:44 +0100 Subject: [PATCH] Print a note about finding attribute (* top *) in hierarchy --- passes/hierarchy/hierarchy.cc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/passes/hierarchy/hierarchy.cc b/passes/hierarchy/hierarchy.cc index a8d7d5a53ef..8372c0339c1 100644 --- a/passes/hierarchy/hierarchy.cc +++ b/passes/hierarchy/hierarchy.cc @@ -1003,8 +1003,10 @@ struct HierarchyPass : public Pass { if (top_mod == nullptr) for (auto mod : design->modules()) - if (mod->get_bool_attribute(ID::top)) + if (mod->get_bool_attribute(ID::top)) { + log("Attribute `top' found on module `%s'. Setting top module to %s.\n", log_id(mod), log_id(mod)); top_mod = mod; + } if (top_mod == nullptr) {