projects
/
yosys.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7074ec9
)
Replace assert with error message
author
Eddie Hung
<eddie@fpgeh.com>
Fri, 21 Jun 2019 22:45:51 +0000
(15:45 -0700)
committer
Eddie Hung
<eddie@fpgeh.com>
Sat, 22 Jun 2019 00:18:04 +0000
(17:18 -0700)
backends/aiger/xaiger.cc
patch
|
blob
|
history
diff --git
a/backends/aiger/xaiger.cc
b/backends/aiger/xaiger.cc
index 2070cae8fcb2c7786ae4a474f4622c560b2e9f8c..23132f10870fbad9413ed6851ebffef0c0fcc719 100644
(file)
--- a/
backends/aiger/xaiger.cc
+++ b/
backends/aiger/xaiger.cc
@@
-244,7
+244,8
@@
struct XAigerWriter
if (c.second.is_fully_const()) continue;
auto is_input = cell->input(c.first);
auto is_output = cell->output(c.first);
- log_assert(is_input || is_output);
+ if (!is_input && !is_output)
+ log_error("Connection '%s' on cell '%s' (type '%s') not recognised!\n", log_id(c.first), log_id(cell), log_id(cell->type));
if (is_input) {
for (auto b : c.second.bits()) {