diff options
author | Eddie Hung <eddie@fpgeh.com> | 2019-07-13 04:13:57 -0700 |
---|---|---|
committer | Eddie Hung <eddie@fpgeh.com> | 2019-07-13 04:13:57 -0700 |
commit | 9b91d815b55343630c3c2d4a5a7d2a593c344f07 (patch) | |
tree | ff6c22da3c634265a4840754a8823b11e4bacd54 /passes/techmap | |
parent | 463f7100665b38ca346f3919a65ff7626c24c91c (diff) | |
download | yosys-9b91d815b55343630c3c2d4a5a7d2a593c344f07.tar.gz yosys-9b91d815b55343630c3c2d4a5a7d2a593c344f07.tar.bz2 yosys-9b91d815b55343630c3c2d4a5a7d2a593c344f07.zip |
If ConstEval fails do not log_abort() but return gracefully
Diffstat (limited to 'passes/techmap')
-rw-r--r-- | passes/techmap/extract_fa.cc | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/passes/techmap/extract_fa.cc b/passes/techmap/extract_fa.cc index 9e6dc0d24..8de57e769 100644 --- a/passes/techmap/extract_fa.cc +++ b/passes/techmap/extract_fa.cc @@ -174,8 +174,10 @@ struct ExtractFaWorker SigSpec sig = root; - if (!ce.eval(sig)) - log_abort(); + if (ce.eval(sig)) { + ce.pop(); + return; + } if (sig == State::S1) func |= 1 << i; @@ -214,8 +216,10 @@ struct ExtractFaWorker SigSpec sig = root; - if (!ce.eval(sig)) - log_abort(); + if (ce.eval(sig)) { + ce.pop(); + return; + } if (sig == State::S1) func |= 1 << i; |