Altera_Forum
Honored Contributor
12 years agocontinue process after end of file
goodmorning,
I have created a testbench importing data from a .bin file. These data are loaded in a RAM, and then analyzed by a second process. The time for analyzing all data is more than the time to upload them in the RAM. I have written the process to extract data from file in this way: begin if not endfile(input) then wait for clockRAM*4; for i in 0 to 7 loop read(datafile, indata); inputvariable<=CONV_STD_LOGIC_VECTOR(character'pos(indata),8); --I extract 8 byte at a time. end loop; else file_close(datafile); wait; end if; end process; I would that the simulation doesn't stop when the datafile is ended, but I would wait the end of the data analysis, which is in another process; But when datafile is ended I receive a message of fatal error. How can I do? Thanks Dario