Report an error when a liberty file contains pin references that reference non-existing pins

This commit is contained in:
Niels Moseley 2018-11-03 18:07:51 +01:00
parent d86ea6badd
commit d1e8249f9a
1 changed files with 3 additions and 0 deletions

View File

@ -100,6 +100,9 @@ static bool parse_pin(LibertyAst *cell, LibertyAst *attr, std::string &pin_name,
for (auto child : cell->children)
if (child->id == "pin" && child->args.size() == 1 && child->args[0] == pin_name)
return true;
log_error("Malformed liberty file - cannot find pin '%s' in cell '%s'.\n", pin_name.c_str(), cell->args[0].c_str());
return false;
}