error when no signal found

This commit is contained in:
Miodrag Milanovic 2022-01-31 17:41:50 +01:00
parent 1b5ff92e62
commit 8ba2000a50
1 changed files with 2 additions and 0 deletions

View File

@ -994,6 +994,8 @@ struct SimWorker : SimShared
for (auto wire : topmod->wires()) {
if (wire->port_input) {
fstHandle id = fst->getHandle(scope + "." + RTLIL::unescape_id(wire->name));
if (id==0)
log_error("Unable to find required '%s' signal in file\n",(scope + "." + RTLIL::unescape_id(wire->name)).c_str());
inputs[wire] = id;
}
}