VHDL file I/O
library Use std.textio.all; routines read( ) readline( ) write( ) writeline( ) examples read_ex : process file my_file : text is in "./reading.txt"; variable text_line : line; variable tmp : bit_vector(15 downto 0); begin while not endfile(my_file) loop readline(my_file, text_line); read(text_line, tmp); wait until clk = '0'; end loop; end process; read_ex2 : process(clk) file my_life : text is ..
DigitalFactory
2009. 12. 17. 20:07