3
0
Fork 0
mirror of https://github.com/YosysHQ/yosys synced 2025-08-08 12:11:24 +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

@ -4124,6 +4124,9 @@ struct VerificPass : public Pass {
if (argidx > GetSize(args) && args[argidx].compare(0, 1, "-") == 0)
cmd_error(args, argidx, "unknown option");
if ((unsigned long)verific_sva_fsm_limit >= sizeof(1ull)*8)
log_cmd_error("-L %d: limit too large; maximum allowed value is %zu.\n", verific_sva_fsm_limit, sizeof(1ull)*8-1);
std::set<std::string> top_mod_names;
if (mode_all)