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 Functional Simulation with the VCS Software

To prepare for a functional simulation of a Verilog HDL design with the Synopsys VCS software, you can type a command that compiles the design and generates a simv.exe file that you can use to simulate the design. Alternatively, you can type a command that compiles and simulates the design automatically.

To perform a functional simulation of a Verilog HDL design with the VCS software from the command line:

  1. If you have not already done so, set up the VCS working environment.

  2. If the Verilog HDL design uses memory initialization data in a Hexadecimal (Intel-Format) File (.hex) or a Memory Initialization File (.mif) for the INIT_FILE parameter, to convert the initial memory contents for use with the VCS software:

    1. Export the Hexadecimal (Intel-Format) File or Memory Initialization File as a RAM Initialization File (.rif).

    2. Add parameter lpm_file = "<Ram Initialization File name>"; to the Verilog design file or test bench file.

  3. Refer to the following table and type the appropriate command at the command prompt.
     

  4. Design Type

    Commands for Compiling the Design and Generating a simv.exe File

    Commands for Compiling and then Automatically Simulating the Design

    Verilog design without HEX File

    vcs <design name>.v [<test bench>.v] -v <library file>.v Enter

    vcs -R <design name>.v [<test bench>.v] -v
    <library file>
    .v Enter

    Verilog design with HEX File

    vcs -v \quartus\eda\sim_lib\nopli.v <library file>.v <design name>.v [<test bench>.v]Enter

    vcs -R -v \quartus\eda\sim_lib\nopli.v <library file>.v <design name>.v [<test bench>.v]Enter

     

    1. You must type the above commands for each source file in the design, where the <design name>.v and <test bench>.v variables may each represent one or more of the source files of the design.

    2. The <library file>.v variable may represent one or more of the functional simulation libraries.

    3. Refer to the VCS User Guide for more information on the required and optional environment variables.

  5.  
  6. Note:

    • If your design contains the altgxb megafunction, you must set the value of the pll_areset signal to start high in the test bench or waveform file for the design. If the megafunction does not instantiate a GXB transmitter PLL, you must set the values of the rxanalogreset and rxdigitalreset signals to start high.

    • If your design contains the alt2gxb megafunction, Altera recommends that you set the value of the gxb_powerdown signal to start high in the test bench or waveform file for the design. If the instantiated alt2gxb megafunction does not use gxb_powerdown signal, Altera requires that you set the values of the txdigitalreset, rxanalogreset, and rxdigitalreset signals to start high. Assert txdigitalreset long enough so that it can be registered by tx_clkout and assert rxdigitalreset a few clock cycles longer than rxanalogreset so that it can be registered by rx_clkout. Altera requires that you apply the same reset sequence mentioned above after dynamic channel reconfiguration.

     
  1. To continue with the VCS simulation flow, proceed to Performing a Timing Simulation with the VCS Software.

 

 

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