Intel® Quartus® Prime Software
Intel® Quartus® Prime Design Software, Design Entry, Synthesis, Simulation, Verification, Timing Analysis, System Design (Platform Designer, formerly Qsys)
17249 Discussions

Simulating a filter in Modelsim.

Altera_Forum
Honored Contributor II
2,124 Views

Hello, 

 

I hope someone has been down the path I'm on and can shed some light on my problems. 

 

I have been following the instructions found on: performing a functional simulation with the modelsim software.  

(http://www.altera.com/support/software/nativelink/simulation/modelsim/eda_pro_msimfull_func_sim.html

 

I am trying to simulate a firmware design incoporating a filter whose coeffecients are stored in an altsyncram component. I want to simulate my design using the coeffecients stored in my .mif file. Following the instructions cited above, I exported a .rif file. At this point, the instructions I get lost:confused: . My project is written in VHDL. I do not know what is meant by 'add the parameter LPM_FILE = "<memory>.rif" to the top level of your test bench or design file'. I have a number of other issues that take place after this particular hang up, but I don't think they are worth investgating until I know how exactly to make ModelSim know to find my coeffecient.rif file. 

 

Thanks in advance.
0 Kudos
2 Replies
Altera_Forum
Honored Contributor II
1,014 Views

I don't know all possible options with memory initialisation files, I always used *.hex files (also declared with altsyncram instance respectively in Megawizard). The *.hex file had to be placed in ModelSim project top (where modelsim.ini is located). Always exciting, if ModelSim gets it all!

0 Kudos
Altera_Forum
Honored Contributor II
1,014 Views

Thank you for the hint of putting the file in the same directory as the .ini. I will be sure to do that. I am still confused as to the 'parameter LPM_FILE = "yaddayadda.rif"' or similar command that I need to add to my source in order for ModelSim to see it.

0 Kudos
Reply