Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
15 years ago

File IO Read

I have a text file to read. I manage to read it. i intends to have zero value of fixed point(a variable) after end reading. However, i fail to do it. It keeps to take the last value in the text file. I have no idea why i cant. I have attached a simple testbench and a file to be read. Pls suggest some solution to me.

thanks a lot.

1 Reply

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    I am Sorry. It is just syntax error. After removing the ";" on the always @(posedge clk_100M); , it works fine d.

    thanks