Select ModelSim, ModelSim-Altera, Active-HDL, NCSim, VCS, or VCS MX in the Tool name list.
If you selected ModelSim, ModelSim-Altera, Active-HDL, 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.
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 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 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, and devoe signals 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 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.
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.
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 theCompile test benchlist, 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.