Forum Discussion
Altera_Forum
Honored Contributor
14 years ago --- Quote Start --- I am just making sure the correct values are being read in. When I run it in modelsim, src_transaction.data shows the correct data values in the wavewindow until variable i reaches 57672. After that, it just displays a x in between red lines. I can't find where I am going wrong. Any help please? --- Quote End --- I can't see anything obviously wrong. However, if you just want to check that data is being read in ok, change the loop to simply display the values read from the file, eg., something like
logic val;
for (int i = 0; i < `NUMBER_OF_PIXEL_VALUES; i++)
begin
@(posedge clk);
val = storage_values;
end
And display val in the wave window. Cheers, Dave