Altera_Forum
Honored Contributor
13 years agoVHDL Loop Statement error...loop must terminate within 10,000 iterations
I have this module of source code:
procedure init_mem_data (signal mem : out mem_ty)is variable buf : line; file infile : text ; -- s in "data.txt" ; variable word : std_logic_vector(7 downto 0); variable i : integer; variable good : boolean; begin FILE_OPEN(infile,"mycmd_single.txt",READ_MODE); i := 0; while not ( endfile(infile) or (i >= mem_depth ) ) loop readline(infile, buf); hread(buf,word); mem(i) <= word ; i := i + 1; end loop; FILE_CLOSE(infile); end init_mem_data; but i am having error that, Error (10536): VHDL Loop Statement error at mem.vhd(38): loop must terminate within 10,000 iterations what should i do?