What is the size of your FIFO?
I will use a for loop for initialization of a block memory.But it will take time since the FIFO write is clock controlled.
Code:
for i in 0 to FIFOsize loop
data_in_FIFO <= (others => '0');
wait for clk_period;
end loop;
What is the size of your FIFO?
I will use a for loop for initialization of a block memory.But it will take time since the FIFO write is clock controlled.
Code:
for i in 0 to FIFOsize loop
data_in_FIFO <= (others => '0');
wait for clk_period;
end loop;
I thought he wanted to initialize all the FIFO values to some CONSTANT value.It can be zero or anything else.Does that matter?
Is there any way to initialize a FIFO?
If I understood you right this is what you want to do -
Bring out your FIFO signals as ports in your i2c core instantiation which will allow you to access your FIFO signals in the testbench. Now you can manipulate your FIFO signals in your testbench.