mirror of https://github.com/YosysHQ/yosys.git
Merge pull request #4645 from georgerennie/george/btor_undef_array_init
write_btor: only initialize array with const value when it is fully def
This commit is contained in:
commit
014cb531aa
|
@ -832,7 +832,10 @@ struct BtorWorker
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (constword)
|
// If not fully defined, undef bits should be able to take a
|
||||||
|
// different value for each address so we can't initialise from
|
||||||
|
// one value (and btor2parser doesn't like it)
|
||||||
|
if (constword && firstword.is_fully_def())
|
||||||
{
|
{
|
||||||
if (verbose)
|
if (verbose)
|
||||||
btorf("; initval = %s\n", log_signal(firstword));
|
btorf("; initval = %s\n", log_signal(firstword));
|
||||||
|
|
Loading…
Reference in New Issue