diff options
author | Clifford Wolf <clifford@clifford.at> | 2018-11-04 10:08:33 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-11-04 10:08:33 +0100 |
commit | 68304c6d176e396e068cbe3ac2800ac75091143c (patch) | |
tree | a92f295d2f5ee780eb6e8f042817f1a633125e54 /passes/techmap/dfflibmap.cc | |
parent | 18a4c1cdacc948ef669678f9e3ac1052aadba1a2 (diff) | |
parent | 04cd17969657dc7402d79e054ea390f98e159083 (diff) | |
download | yosys-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.cc | 3 |
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; } |