Problem with I/O files.

Joined
Dec 3, 2006
Messages
3
Reaction score
0
Hi.
I've got problem with writing signal values to file. I just can't write any data to text file. For example I wrote this code:

USE STD.TEXTIO.all;

architecture beh of io is
signal count : integer range 0 to 8 := 0;

begin

process(clk)
file outfile: text;
variable f_status: FILE_OPEN_STATUS;
variable buf: LINE;

begin

IF (CLK'EVENT and CLK = '1') THEN
file_open(f_status, outfile, "myfile.txt", write_mode);
WRITE (buf, integer'(count));
count <= count +1 ;
file_close(outfile);
end if;
end process;

end architecture beh;

I'm using quartus II, maybe I need to change something in my project settings...
Please help.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

problem with VHDL 93 style file_open 0
Array of Modulation BPSK 0
code vhdl 1
Problem With Mealy Sequence Detector 1
erreur VHDL 3
Array VHDL 3
Question on importing text from files 1
reading files help 0

Members online

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,054
Latest member
TrimKetoBoost

Latest Threads

Top