Forum Discussion
Altera_Forum
Honored Contributor
16 years agoHow read data file in a testbench
Hi all: Im trying to do my testbench, i want read the inputs from a .txt file and write the outputs to a .txt file library IEEE; use ieee.std_logic_1164.all; use ieee.std_logic_textio...
Altera_Forum
Honored Contributor
16 years agoyou need to include the library std.textio.all aswell. std_logic_textio is just to get the std_logic/std_logic_vector write functions. functions for string, integer, bit (ie all the base types) are in the std.textio package. It also contains the text file type.