From: Niels Moseley Date: Sat, 3 Nov 2018 17:07:51 +0000 (+0100) Subject: Report an error when a liberty file contains pin references that reference non-existi... X-Git-Tag: yosys-0.9~423^2~1 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=d1e8249f9acd6e65e9804f5998906c6ce1915ec1;p=yosys.git Report an error when a liberty file contains pin references that reference non-existing pins --- diff --git a/passes/techmap/dfflibmap.cc b/passes/techmap/dfflibmap.cc index 416ed2bd5..421073485 100644 --- a/passes/techmap/dfflibmap.cc +++ b/passes/techmap/dfflibmap.cc @@ -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; }