To specify options for simulating with a test bench in ModelSim, ModelSim-Altera, Active-HDL, Riviera-PRO, NCSim (NC-Verilog or NC-VHDL), VCS, or VCS MX:
-
On the Assignments menu, click Settings.
-
In the Category list, select Simulation under EDA Tool Settings.
-
Select ModelSim, ModelSim-Altera, Active-HDL, Riviera-PRO, NCSim, VCS, or VCS MX in the Tool name list.
-
If you selected ModelSim, ModelSim-Altera, Active-HDL, Riviera-PRO, or NCSim, you have the option to turn on Run gate-level simulation automatically after compilation.
-
In the Format for output netlist list, select either VHDL or Verilog HDL.
-
In the Output directory box, type or browse to the location where you want output files saved.
-
If you want to map illegal HDL characters, turn on Map illegal HDL characters.
-
To filter glitches in Verilog Output Files (.vo) and VHDL Output Files (.vho), and the corresponding Standard Delay Format Output File (.sdo), turn on Enable glitch filtering.
-
To specify options for creating a script to generate a Value Change Dump File (.vcd) file with an EDA simulation tool:
-
Turn on Generate Value Change Dump (VCD) file script.
-
Under Script settings, specify the type of output signals to include in the Value Change Dump File generation script and the name of the test bench instance for which you are performing the simulation.
-
If you are running your simulation with a test bench selected under NativeLink settings, the design instance name must be identical to what you specify for the test bench; otherwise NativeLink simulation does not generate a Value Change Dump file.
-
-
Click the More EDA Netlist Writer Settings button to choose from a list of other options:
-
-
Type the name you want to direct the EDA Netlist Writer to use for the Architecture name in the VHDL output netlist in the Setting box.
-
If you want to add the
devpor,devclrn, anddevoesignals as input ports in the top-level design hierarchy in the Verilog Output File or VHDL Output File, turn on Bring out device-wide set/reset signals as ports. -
If you want to disable setup and hold violation detection in bi-directional pins, turn on Disable detection of setup and hold violations detection in input registers of bi-directional pins
-
If you want to disable writing the entity definition of top-level entity into the VHDL file, turn on Do Not Write Top Level VHDL Entity.
-
If you want to flatten all buses when creating the Verilog Output File or VHDL Output File, turn on Flatten buses into individual nodes.
-
If you want to generate a Verilog Output File or VHDL Output File for a functional simulation, turn on Generate netlist for functional simulation only.
-
If you want to maintain the original design hierarchy in the Verilog Output File or VHDL Output File, turn on Maintain hierarchy.
-
If you want to truncate hierarchical node names to 80 characters or more, turn on Truncate long hierarchy paths.
-
Click OK.
-
-
Click the More NativeLink Settings button to choose from a list of other options:
-
-
Generate third-party EDA tool command scripts without running the EDA tool.
-
Launch third-party EDA tool in command-line mode.
-
Location of user compiled simulation library. Do not use this option to specify the directory for ModelSim-Altera software precompiled libraries or Active-HDL precompiled libraries.
-
Click OK.
-
-
Turn on Compile test bench.
-
If you have not already created test benches, click the Test Benches button.
-
In the Test Benches dialog box, click the New button.
-
Create one or more new test benches in the New Test Bench Settings dialog box:
-
-
In the Test bench name box, type the name of the test bench you want to create.
-
In the Test bench entity box, type the name of the test bench entity. This instance name can be different than the test bench name.
-
In the Instance box, type the name of the instance. This entity name can be different than the test bench name.
-
In the Run for box, type the simulation time and select the time units.
-
Type or browse in the File name box to select files that are included in the test bench. The file types supported include Verilog Design File (.v), VHDL Design File (.vhd), Verilog Test Bench File (.vt), or VHDL Test Bench File (.vht).
-
|
|
Note: Verilog Test Bench Files and VHDL Test Bench Files are essentially Verilog Design Files and VHDL Design Files, respectively, with different extensions to indicate that they are test bench files. |
-
-
Click Up or Down to arrange the files in order of dependency.
-
Click OK.
-
-
In the Compile test bench list, select the test bench you want to compile.
-
To use a script to set up the simulation:
-
Turn on Use script to setup simulation
-
Type or browse to the location of the Mentor Graphics ModelSim Macro File (.do), Tcl Script File (.tcl), or batch file that contains the simulation commands.
-
|
|
Note: The file that you specify under Use script to setup simulation is run from within the directory you selected for the Output directory. The default value is \<project directory>\simulation\<simulation tool>. |
-
-
Click OK.
-
-
If you are using the ModelSim or ModelSim-Altera simulation software and want to use a script to compile a test bench:
-
-
Select Script to compile test bench:
-
Type or browse to the location of the Mentor Graphics ModelSim Macro File, Tcl Script File, or batch file that contains the script.
-

