I have created an mif file in Quartus and I am working with cyclone 2 Altera. My query is "How can I use this mif file to initialize a variable in my top level design architecture"? Let me elaborate. My aim is to produce a sine wave using FPGA storing the values in look up tables and accessing it from a VHDL program. I calculated the look up table values myself using MATLAB. I have put them in a mif file. Now I think I should write a program that takes in these LUT values and feed it to the DAC.
For this I am trying to write a vhdl program with a variable that is initialised with my LUT values. I will then assign the values to an output vector variable(should it be a two dimensional array?) and then use the DAC.
I heard there are no direct DACs in cyclone 2?