file read in Virtex II board

Joined
Mar 20, 2007
Messages
2
Reaction score
0
i wrote a vhdl prog for file reading and it worked without any prob in ModelSim. My next step is doing the same in Xilinx VirtexII Pro board and observing the output.. however, the file reading feature is not working properly..

this is my code segment:
subtype word is std_logic_vector(15 downto 0);
type initz is file of word;
begin

P: process (reset)
file datain : initz open read_mode is "init.txt";
variable L : Line;
begin
if (reset='1') then
while not(endfile(datain)) loop
readline(datain, L); -->shows error here
read(L,val);
end loop;

error:readline should not contain these operands in this context

wat is wrong wit my code?? how do i make it work fr the FPGA board??
 

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

Members online

Forum statistics

Threads
473,994
Messages
2,570,222
Members
46,810
Latest member
Kassie0918

Latest Threads

Top