Skip to content

Commit

Permalink
bbox_derive: add assert and debug print
Browse files Browse the repository at this point in the history
  • Loading branch information
widlarizer committed May 3, 2024
1 parent e8c58a5 commit 44b0fdc
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions passes/cmds/bbox_derive.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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));
Expand Down

0 comments on commit 44b0fdc

Please sign in to comment.