Forum Discussion

ThomasKendall82's avatar
ThomasKendall82
Icon for New Contributor rankNew Contributor
5 years ago
Solved

Specify init file to inferred BRAM

Hello I've been trying to write an inferred memory with init file, but i can't manage to cause Quartus to initilize it. First, I tried to use TEXTIO to configure initial value. I've read that Qua...
  • ThomasKendall82's avatar
    5 years ago

    Hello,

    I'm sorry for the late response - I've been busy for the last few days.

    I tried to create a simplified example of the problem (as some of you requested) -I re-wrote it based on quartus code templates and the mif file was used correctly.

    After further inspection - I've noticed that my TextIO based initialization function, which should have been for simulation purpose only, did reset the memory to zero even when the TextIO part was not working.

    I overlooked that part untill now because it was supposed to be for simulation only and I was sure it didn't had any effect.

    I think that attribute didn't work because the function already declaired an initial value. (quartus did create a mif file for the zeros the function set to the memory)

    After I've changed that part in the function the attribute worked and all was well.

    Thank you all for your help and advice.