Skip to content

Commit

Permalink
Merge pull request #4338 from jix/fix-formalff-setundef-srst
Browse files Browse the repository at this point in the history
formalff -setundef: Fix handling for has_srst FFs
  • Loading branch information
jix authored Apr 15, 2024
2 parents 7bb2746 + 2bd889a commit 1527cc8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion passes/sat/formalff.cc
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@ struct InitValWorker
return true;
if (ff.has_ce && initconst(ff.sig_ce.as_bit()) == (ff.pol_ce ? State::S0 : State::S1))
continue;
if (ff.has_srst && initconst(ff.sig_ce.as_bit()) == (ff.pol_srst ? State::S1 : State::S0))
if (ff.has_srst && initconst(ff.sig_srst.as_bit()) == (ff.pol_srst ? State::S1 : State::S0))
continue;

return true;
Expand Down

0 comments on commit 1527cc8

Please sign in to comment.