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

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

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

Performing a Timing Simulation with the ModelSim-Altera Software

btnshowall.gif

You can perform a timing simulation of a Verilog or VHDL design with the Mentor Graphics ModelSim-Altera software, provided with the Quartus II software, from the ModelSim-Altera interface, or with command-line commands.

 

click to expandTo perform a timing simulation of a ModelSim project with the ModelSim-Altera interface:

  1. To compile the Verilog or VHDL Output File and test bench files (if you are using a test bench) into the working directory:

    1. On the Compile menu, click Compile .

    2. In the Library list of the Compile HDL Source Files dialog box, select the work library.

    3. In the Files of Type list, select All Files (*.*), and in the Look in list, select the name of the Verilog or VHDL Output File.

    4. Click Compile.

    5. Repeat steps 1b to 1d for the test bench file (if you are using one) that instantiates the Verilog or VHDL Output File.

    6. Click Done.

  1. If your design contains device-wide reset or device power up signals, and if you have not already done so, set up the signals in the Verilog Output File or set up the signals in the VHDL Output File.

  2. On the Simulate menu, click Simulate. The Simulate dialog box appears.

  3. If you are simulating a Verilog design, click the Verilog tab. Under Pulse Options, type 0 in the Error Limit and Rejection Limit boxes.

  4. If you are simulating a VHDL design, to specify the Standard Delay Format Output File (.sdo):

    1. Click the SDF tab.
    2. Click Add.

    3. In the Add SDF Entry dialog box, click Browse. The Select SDF File dialog box appears.

    4. In the Files of type list, select All Files (*.*).

    5. Select the Standard Delay Format Output File.

    6. Click Open.

    7. Click OK.

  1. Note: If you are using a test bench file to provide simulation stimuli to your design, in the Apply to region box, specify the path to the design instance in the test bench, starting from the top-level design file.

     

  1. If you are simulating a Verilog design, to specify the ModelSim precompiled libraries:

    1. Click the Libraries tab.

    2. In the Search Libraries (-L) box, click Add.

    3. Specify the \<ModelSim-Altera install directory>\altera\verilog\<device family>\ directory.

    4. Click OK.

  2. Click the Design tab.

  3. In the Name list, click the + icon to expand the work directory and select the design entity that corresponds to the Standard Delay Format Output File.

  4. Click Add.

  5. Select the top-level design file or test bench.

  6. Click Add.

  7. If you are simulating high-speed circuits (including designs that use HSSI, LVDS, or PLLs):

    1. Click the Other tab.

    2. In the Other options box type +transport_int_delays and +transport_path_delays.

    3. Click OK.

  8. Click Load.

  9. To direct the ModelSim-Altera software to generate a Value Change Dump File (.vcd) that you can then use to perform power analysis in the Quartus II PowerPlay Power Analyzer, type the following command at the ModelSim prompt:

source<test bench or design instance name>_dump_all_vcd_nodes.tcl

  1. The Tcl Script File directs the ModelSim-Altera software to monitor and write the output signals contained in the Tcl Script File to a Value Change Dump File during simulation.

  2. Perform the timing simulation in the ModelSim-Altera software.

click to expandTo perform a timing simulation of a ModelSim project with command-line commands:

Note: You can use batch files to set up and compile each of the libraries automatically. Place all the commands displayed in the ModelSim-Altera or ModelSim PE or SE main window into a text file and name the file with a .do extension (that is, <file name>.do). Use this script to recompile the libraries if you update them.

To run a macro script:

  1. From the Mentor Graphics ModelSim main window, chose Execute Macro.

  2. In the Execute Do File dialog box, locate your ModelSim macro file (.do).

  3. Click Open.

  1. If you have not already done so, map tolibraries and compil design files with the ModelSim-Altera software.

  2. If your design contains device-wide reset or device power up signals, and if you have not already done so, set up the signals in the Verilog Output File or set up the signals in the VHDL Output File.

  3. Type the following commands at the ModelSim prompt to load the design with minimum, typical, or maximum timing values.

    For VHDL designs:

    vsim -sdf(min | typ | max) +transport_int_delays +transport_path_delays /=<design name>.sdo work.<top-level design entity> 

    For Verilog designs:

    vsim +transport_int_delays +transport_path_delays -L \<ModelSim-Altera install directory>\altera\verilog\lpm\ <Modelsim-Altera install directory>\altra\verilog\<<device family>>\ -sdf(min | typ | max) work.<top-level design entity> 

  1. To direct the ModelSim-Altera software to generate a Value Change Dump File (.vcd) that you can then use to perform power analysis in the Quartus II PowerPlay Power Analyzer, type the following command at the ModelSim prompt:

    source<test bench or design instance name>_dump_all_vcd_nodes.tcl

    The Tcl Script File directs the ModelSim-Altera software to monitor and write the output signals contained in the Tcl Script File to a Value Change Dump File during simulation.

  2. Perform the timing simulation in the ModelSim-Altera software.

  1. Note: Refer to ModelSim software documentation to view and the interpret results of your simulation.

 

Important: Altera recommends that you set Time scale settings to picoseconds (ps) in the interface or with command-line commands when performing timing simulations of designs with RAM.

 

If you want to perform power analysis, proceed to perform power analysis with the PowerPlay Power Analyzer.

 

 

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