I have a design with a number of IP blocks including an NCO core (sin/cos generator).
First, it was a complete failure to try and run ModelSim using the Tools->Run RTL Simulation. Quartus seems totally unable to package up a functioning design and hand it to modelsim for simulation. Am I missing something or does Intel not even really try to make this work (I'm a long time Xilinx user and am accustomed to simulations just working)?
I gave up and have been reconstructing the project from scratch piece by piece, adding lines to my own do file etc for 2 days.
So now my simple question. I have the NCO simulating but I have to manually copy two ".hex" files to the simulation working directory otherwise modelsim throws errors that it can't find them.
How do I add the hex files to my project, add the hex files to a library or add their location to a search path or whatever to get modelsim to find them where they are?
I had a similar problem and was able to solve it.
(I needed to initialize a dual port ram block with a hex file.)
What worked was to put my IP instantiation and my .HEX file both in the main quartus project directory and then add the .vhd and the .hex (both as a reference) to my modelsim project. If the files were in different directories, quartus did ok but modelsim was unable to compile the .hex.
If I use modelsim I usually make a new project in modelsim by hand and add the files by hand. Doing it step by step can be more reliable than the "big bang approach".