Report an error when a liberty file contains pin references that reference non-existi...
authorNiels Moseley <n.a.moseley@moseleyinstrumnets.com>
Sat, 3 Nov 2018 17:07:51 +0000 (18:07 +0100)
committerNiels Moseley <n.a.moseley@moseleyinstrumnets.com>
Sat, 3 Nov 2018 17:07:51 +0000 (18:07 +0100)
passes/techmap/dfflibmap.cc

index 416ed2bd580f8ef64f2b49420e6d57b9d2afb089..421073485dc93e669e88abc6afe93534f21ac1bd 100644 (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;
 }