Search Engine

Readline Vhdl

Add Question

Are you looking for?:
vhdl course , ask vhdl , vhdl operations , ethernet vhdl
5 Threads found on Readline Vhdl
As said, do multiple reads per line. readline ( my_file , current_line ) ; read ( current_line , incoming_pixel1 ) ; read ( current_line , incoming_pixel2 ) ; read ( current_line , incoming_pixel3 ) ; You won't need to ask if you reviewed the description of textio package in vhdl LRM.
the readline(file, line) procedure reads an entire line from a text file. You then use read(dest, line) to extract elements from that line. - - - Updated - - - Or, to make our lives a little easier, post the code that doesnt work and ask some good questions.
there is no way to do this easily in vhdl. vhdl is not set up to do File io nicely other than text. What file are you trying to read? For every file you can use the ENDFILE() function to see if you have reached the end of a file: eg. while not ENDFILE(my_file) loop readline(file, inline); ...etc end loop; You could use this lo
Ill assume each value is stored on a seperate line: type some_array_t is array(integer range <>) of integer; signal ar : some_array_t(0 to 99); --could be a varaible --inside a process file f : text open read_mode is "my_file.txt"; variable inline : line; for i in ar'range loop readline(f, inline); read(f, ar(i)); end loop;
i think u have missed the "readline" function before read function... Check the below link