You can use the NativeLink feature in Quartus® II software to facilitate the seamless transfer of information between Quartus II software and third-party simulators. This design example shows how to use the NativeLink feature in Quartus II software to perform functional or gate-level timing simulation of your design with third-party simulators. The Quartus II NativeLink feature allows you to launch your third-party simulator from within the Quartus II software and run the simulation with just a few clicks of your mouse. All the library preparation and run commands are generated automatically by Quartus II software without requiring your input. All these actions are also stored in a script. The Quartus II NativeLink feature is supported by all the popular third-party simulators. This example demonstrates the use of the Quartus II NativeLink feature for the ModelSim®-Altera® simulator. In this example, you will:
- Load an existing project in Quartus II software
- Set up the Quartus II project for the NativeLink feature and ModelSim-Altera tools
- Perform the functional (RTL) and gate-level timing simulations using the NativeLink feature
Note: This example was developed in Verilog HDL using Quartus II software version 9.0 and
ModelSim-Altera software version 6.4a running on a host with Windows XP SP2.
Using the Design Example
- Download this NativeLink.qar file to your desired location.
- Invoke the Quartus II software, or you just double click on the NativeLink.qar file, and the Quartus II software will open.
- Go to Project, select Restore Archived Project.
- In the Archive name box, type the file name of the NativeLink.qar file or click Browse to select the above .qar file.
- In the Destination folder box, specify the directory path in which you will restore the contents of the file, or browse to a directory that you wish to save. Then click OK.
- On the Assignments menu, click EDA Tool Settings to open the Settings dialog box and then click Simulation. Verify that ModelSim-Altera is selected in the Tool name field and click OK.
- To use the Quartus II NativeLink feature, you must also provide the absolute path for the ModelSim-Altera software:
- On the Tools menu, click Options, then General, then EDA Tool Options.
- In the EDA Tool Options pane specify the path to the ModelSim-Altera executable (for example, c:\altera\90\modelsim_ae\win32aloem).
- Set up NativeLink for your testbench:
- On the Assignments menu, click EDA Tool Settings, and then select Simulation.
- In the Simulation settings dialog box, under NativeLink settings, select Compile test bench, then click Test Benches. The Test Bench dialog box appears.
- Select the testbench TB1 and click Edit. (The settings shown are similar to the ones shown in Figure 1.) Click OK.
- Start RTL simulation:
- From the Processing menu, select Start and then click Start Analysis and Elaboration.
- From the Tools menu, select EDA Simulation Tool and then click Run EDA RTL Simulation.
- Start post-fit gate-level timing simulation:
- Compile your project by clicking Compile in the Quartus II toolbar.
- From the Tools menu, select EDA Simulation Tool and click Run EDA Gate Level Simulation.
Figure 1. Test Bench Dialog Box

Related Links
Design Examples Disclaimer
These design examples may only be used within Altera Corporation devices and remain the property of Altera. They are being provided on an “as-is” basis and as an accommodation; therefore, all warranties, representations, or guarantees of any kind (whether express, implied, or statutory) including, without limitation, warranties of merchantability, non-infringement, or fitness for a particular purpose, are specifically disclaimed. Altera expressly does not recommend, suggest, or require that these examples be used in combination with any other product not provided by Altera.
