Merge pull request #1190 from YosysHQ/eddie/fix_1099

extract_fa to return nothing more gracefully
This commit is contained in:
Clifford Wolf 2019-07-15 20:05:56 +02:00 committed by GitHub
commit 2c5c53e4c1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 8 additions and 4 deletions

View File

@ -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;