Altera Home Page
文档资料 许可
在线购买 下载

  主页   |   产品   |   支持   |   最终市场   |   技术中心   |   教育与活动   |   公司介绍   |   在线购买  
  mySupport   |   器件   |   软件   |   IP   |   设计范例   |   参考设计  

 产品
   Quartus II
      SOPC Builder
      MAX+PLUS II
      ModelSim-Altera
  
 资源中心
      简介
      安装&许可
      脚本
       电路板设计& I/O
      网表阅读器 & 综合
      编译增强特性
      优化
      功耗管理
   TimeQuest时序分析器
      标准时序分析器
      仿真 & 确认
      片内调试
      HardCopy设计
  
 软件资源
      操作系统支持
      驱动安装
  
 下载与许可
      下载
   许可
  
 Quartus II EDA 支持
      Quartus II 接口
   综合工具
   仿真工具
   验证工具
   时序分析工具
   再综合工具
   电路板级工具
  
 老版软件EDA支持
      供应商类
      工具类
      功能类
  

Specifying Options for Running Simulation Software with a Test Bench

To specify options for simulating with a test bench in ModelSim, ModelSim-Altera, Active-HDL, NCSim (NC-Verilog or NC-VHDL), VCS, or VCS MX:

  1. On the Assignments menu, click Settings.

  2. In the Category list, select Simulation under EDA Tool Settings.

  3. Select ModelSim, ModelSim-Altera, Active-HDL, NCSim, VCS, or VCS MX in the Tool name list.

  4. If you selected ModelSim, ModelSim-Altera, Active-HDL, or NCSim, you have the option to turn on Run gate-level simulation automatically after compilation.

  5. In the Format for output netlist list, select either VHDL or Verilog.

  6. In the Output directory box, type or browse to the location where you want output files saved.

  7. If you want to map illegal HDL characters, turn on Map illegal HDL characters.

  8. 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.

  9. To specify options for creating a script to generate a Value Change Dump File (.vcd) file with an EDA simulation tool:

    1. Turn on Generate Value Change Dump (VCD) file script.

    2. 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.

    3. 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.

  10. Click the More Settings button to choose from a list of other options:

    1. 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.

    2. 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.

    3. 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

    4. 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.

    5. If you want to flatten all buses when creating the Verilog Output File or VHDL Output File, turn on Flatten buses into individual nodes.

    6. 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.

    7. If you want to maintain the original design hierarchy in the Verilog Output File or VHDL Output File, turn on Maintain hierarchy.

    8. If you want to truncate hierarchical node names to 80 characters or more, turn on Truncate long hierarchy paths.

    9. Click OK.

  11. Turn on Compile test bench.

  12. If you have not already created test benches, click the Test Benches button.

  13. In the Test Benches dialog box, click the New button.

  14. Create one or more new test benches in the New Test Bench Settings dialog box:

    1. In the Test bench name box, type the name of the test bench you want to create.

    2. 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.

    3. In the Instance box, type the name of the instance. This entity name can be different than the test bench name.

    4. In the Run for box, type the simulation time and select the time units.

    5. 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.

    1. Click Up or Down to arrange the files in order of dependency.

    2. Click OK.

  1. In the Compile test bench list, select the test bench you want to compile.

  2. To use a script to set up the simulation:

    1. Turn on Use script to setup simulation

    2. 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>.

    1. Click OK.

  1. If you are using the ModelSim or ModelSim-Altera simulation software and want to use a script to compile a test bench:

    1. Select Script to compile test bench:

    2. Type or browse to the location of the Mentor Graphics ModelSim Macro File, Tcl Script File, or batch file that contains the script.

 

 

  请填写反馈意见
  注册索取最新邮件通知