mirror of https://github.com/YosysHQ/yosys.git
bbox_derive: add assert and debug print
This commit is contained in:
parent
e8c58a5528
commit
44b0fdc2bf
|
@ -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));
|
||||
|
|
Loading…
Reference in New Issue