My name is Julien Lochen, I work as FPGA Design Engineer in France.
My question is about the init of FPGA's RAMs.
In my design, some data are stored in a block-RAM.
I need to init each byte stored in the block-RAM, but THE INIT VALUE ARE NOT THE SAME.
To do this, I use the constraint file, in which I use the following keyword :
"INIT_00 = 256'h ... INIT_01 = 256'h ... ... INIT_3F = 256'h ..."
The block-RAM is mapped as follow : 256 lines of 1 byte.
The question is :
If I want to init only the five first addresses to "1", and the rest of the block-RAM to zero, am I correct if I write : "INIT_00 =256'h0000000000000000000000000000000000000000000000000000FFFFFFFFFFFF; INIT_01 = 256'h0000000000000000000000000000000000000000000000000000000000000000; ... INIT_3F = 256'h0000000000000000000000000000000000000000000000000000000000000000;"