From 44b0fdc2bf8bac019641f4f5c5f9d29294fc0624 Mon Sep 17 00:00:00 2001 From: "Emil J. Tywoniak" Date: Fri, 3 May 2024 20:43:01 +0200 Subject: [PATCH] bbox_derive: add assert and debug print --- passes/cmds/bbox_derive.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/passes/cmds/bbox_derive.cc b/passes/cmds/bbox_derive.cc index 758f793004a..a35e9629058 100644 --- a/passes/cmds/bbox_derive.cc +++ b/passes/cmds/bbox_derive.cc @@ -71,6 +71,8 @@ struct BboxDerivePass : Pass { IdString derived_type = base->derive(d, cell->parameters); Module *derived = d->module(derived_type); + log_assert(derived && "Failed to derive module\n"); + log_debug("derived %s\n", derived_type.c_str()); if (!naming_attr.empty() && derived->has_attribute(naming_attr)) { IdString new_name = RTLIL::escape_id(derived->get_string_attribute(naming_attr));