aboutsummaryrefslogtreecommitdiffstats
path: root/passes/techmap/dfflibmap.cc
diff options
context:
space:
mode:
authorClifford Wolf <clifford@clifford.at>2018-11-04 10:08:33 +0100
committerGitHub <noreply@github.com>2018-11-04 10:08:33 +0100
commit68304c6d176e396e068cbe3ac2800ac75091143c (patch)
treea92f295d2f5ee780eb6e8f042817f1a633125e54 /passes/techmap/dfflibmap.cc
parent18a4c1cdacc948ef669678f9e3ac1052aadba1a2 (diff)
parent04cd17969657dc7402d79e054ea390f98e159083 (diff)
downloadyosys-68304c6d176e396e068cbe3ac2800ac75091143c.tar.gz
yosys-68304c6d176e396e068cbe3ac2800ac75091143c.tar.bz2
yosys-68304c6d176e396e068cbe3ac2800ac75091143c.zip
Merge pull request #687 from trcwm/master
Liberty file: error when it contains pin references to non-existing pins
Diffstat (limited to 'passes/techmap/dfflibmap.cc')
-rw-r--r--passes/techmap/dfflibmap.cc3
1 files changed, 3 insertions, 0 deletions
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;
}