mirror of https://github.com/YosysHQ/yosys.git
formalff: Fix -ff2anyinit assertion error for fine FFs
This commit is contained in:
parent
ce708122a5
commit
551ca7f97f
|
@ -529,12 +529,14 @@ struct FormalFfPass : public Pass {
|
||||||
if ((int)bits.size() == ff.val_init.size()) {
|
if ((int)bits.size() == ff.val_init.size()) {
|
||||||
// This check is only to make the private names more helpful for debugging
|
// This check is only to make the private names more helpful for debugging
|
||||||
ff.is_anyinit = true;
|
ff.is_anyinit = true;
|
||||||
|
ff.is_fine = false;
|
||||||
emit = true;
|
emit = true;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
auto slice = ff.slice(bits);
|
auto slice = ff.slice(bits);
|
||||||
slice.is_anyinit = is_anyinit;
|
slice.is_anyinit = is_anyinit;
|
||||||
|
slice.is_fine = false;
|
||||||
slice.emit();
|
slice.emit();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue