fix: don't log error when getting non-top cells in -bb mode

This commit is contained in:
Chia-Hsiang Chang 2026-05-12 10:01:42 -07:00
parent 67373542ae
commit 86358bf825
1 changed files with 3 additions and 2 deletions

View File

@ -649,10 +649,11 @@ struct SimInstance
if (cell->type == ID($print))
return;
// If the cell is a blackbox child of an instance root module, skip it
// In -bb mode every hierarchical cell is a cut boundary. Its outputs were already sourced from the FST.
// Don't log error for these cells.
if (shared->blackbox_children) {
Module *mod = module->design->module(cell->type);
if (mod && shared->instance_root_modules.count(mod->name))
if (mod)
return;
}