chore: log error when no scope found

This commit is contained in:
Chia-Hsiang Chang 2026-05-12 00:01:29 -07:00
parent a00bb2b80b
commit 9e6d66d74e
1 changed files with 5 additions and 1 deletions

View File

@ -1612,7 +1612,11 @@ struct SimWorker : SimShared
for (auto wire : m->wires()) {
if (!wire->port_input) continue;
fstHandle id = fst->getHandle(iscope + "." + RTLIL::unescape_id(wire->name));
if (id != 0) t->fst_inputs[wire] = id;
if (id == 0) {
log_error("Can't find port '%s' on module '%s' in FST.\n",
(iscope + "." + RTLIL::unescape_id(wire->name)).c_str(), RTLIL::unescape_id(m->name).c_str());
}
t->fst_inputs[wire] = id;
}
t->addAdditionalInputs();
}