Hey
The following will read each line in a file until the end.
process
begin
while not (ENDFILE(TestFile)) loop
readline(TestFile,line_ind);
...
if (x=Y) then
exit;
end if;
...
end loop;
end process;
What if you want to read the file one more time.
I want to read the test vectors from a file. When all the test vectors are read the whole thing shall start all over.
Hope you can help me.
Regards
Thomas
The following will read each line in a file until the end.
process
begin
while not (ENDFILE(TestFile)) loop
readline(TestFile,line_ind);
...
if (x=Y) then
exit;
end if;
...
end loop;
end process;
What if you want to read the file one more time.
I want to read the test vectors from a file. When all the test vectors are read the whole thing shall start all over.
Hope you can help me.
Regards
Thomas