Forum Discussion
Altera_Forum
Honored Contributor
16 years agoThanks for the response thepancake.
First I changed the Settings => EDA Simulation => Test Bench name to match my test bench's name. I get the same exact results as before, the gate level sim runs fine and the results from ModelSim follow what was obtained from the Quartus simulator. With the previous change in place, I changed the instantiation of dsp1_if_block dsp1_inst() to dsp1_if dsp1_inst(). Your are absolutely right that ModelSim does complain about the missing ports. However, I don't think this is what I am after. If you look under the project directory you should find an HDL file, dsp1_if_block.v. This file was created from the dsp1_if_block.bdf, containing the dsp1_if module and a DPRAM. In the dsp1_if_block.v file there are instanses of both the dsp1_if module and the DPRAM. That is why I am using the dsp1_if_block dsp1_inst() instantiation in the test bench. I'm just not sure why the gate level sim will work and not the rtl.