When using the Altera device for design and Modelsim for post-simulation, you must first set the tool in Quartus, setting -- edatool -- Simulation-Tool Name --- Modelsim (OpenGL );
Then perform full compilation. The simulation folder is generated under the project directory. The internal Modelsim folder contains three files *. the VO file is the simulation model file after layout and wiring ,*. SDO files are standard delayed files.
Add *. Vo and testbench files to the project in Modelsim for compilation. Before that, you need to compile the library files related to the device, which are in the installation directory EDA/sim_lib of Quartus.
After compilation is complete, the next step is to load the design. when loading the design, You must select to load the SDF file and scope (in the scope, you must specify the path of the top-level RTL design module in testbench ).