mirror of https://github.com/YosysHQ/yosys.git
If ConstEval fails do not log_abort() but return gracefully
This commit is contained in:
parent
463f710066
commit
9b91d815b5
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue