3
0
Fork 0
mirror of https://github.com/YosysHQ/yosys synced 2025-08-06 11:20:27 +00:00

verificsva: check -L value is small enough for code to work

This commit is contained in:
N. Engelhardt 2025-07-09 15:58:35 +02:00
parent 7566af4a4b
commit e47f5369fd
2 changed files with 7 additions and 4 deletions

View file

@ -479,14 +479,14 @@ struct SvaFsm
GetSize(dnode.ctrl), verific_sva_fsm_limit);
}
for (int i = 0; i < (1 << GetSize(dnode.ctrl)); i++)
for (unsigned long long i = 0; i < (1ull << GetSize(dnode.ctrl)); i++)
{
Const ctrl_val(i, GetSize(dnode.ctrl));
pool<SigBit> ctrl_bits;
for (int i = 0; i < GetSize(dnode.ctrl); i++)
if (ctrl_val[i] == State::S1)
ctrl_bits.insert(dnode.ctrl[i]);
for (int j = 0; j < GetSize(dnode.ctrl); j++)
if (ctrl_val[j] == State::S1)
ctrl_bits.insert(dnode.ctrl[j]);
vector<int> new_state;
bool accept = false, cond = false;