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 MX Software

btnshowall.gif

You can use the Synopsys VCS MX software to perform an RTL-level functional simulation of a Verilog HDL or VHDL design that contains Altera-specific components:

click to expandTo perform a functional simulation of a Verilog HDL design:

    1. If you have not already done so, perform Setting Up the VCS MX Working Environment.

    2. Create a .synopsys_vss.setup file to include the mapping information for the work library, and to direct the VCS MX software to use the functional simulation libraries during simulation:

      WORK ><work library>
      220model >
      <work library>
      altera_mf >
      <work library>
      sgate >
      <work library>
      altgxb >
      <work library>
      <work library>
      : <physical path to work library>

    3. In the VCS MX shell, point the environment variable SYNOPSYS_SIM_SETUP to the .synopsys_vss.setup file.

    4. To create a work library in the project directory, type the following command at a command prompt: 

    5. mkdir<work library> Enter
       

    6. Note: Altera recommends using the Synopsys VCS MX default library names when you create a library. You should name the VCS MX software libraries as follows:

      • When you run the VCS MX software independently from the Quartus II software, you should name your library work.

      • When you run the VCS MX software automatically from the Quartus II software, the work library is named rtl_work for a RTL simulation or gate_work for a Gate-Level simulation. The library work is mapped to either rtl_work or gate_work.

       

    1. To compile the Verilog Design Files (.v), test bench file (if you are using one) and Altera prerouting simulation libraries, type the following commands at a command prompt:

    2.  

      Note:

      • If the 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 rx_analogreset and rx_digitalreset 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 tx_digitalreset, rx_analogreset, and rx_digitalreset signals to start high. Assert tx_digitalreset long enough so that it can be registered by tx_clkout and assert rx_digitalreset a few clock cycles longer than rx_analogreset so that it can be registered by rx_clkout. Altera requires that you apply the same reset sequence mentioned above after dynamic channel reconfiguration.

       

      vlogan/usr/quartus/eda/sim_lib/220model.v Enter
      vlogan /usr/quartus/eda/sim_lib/altera_mf.v Enter
      vlogan <design name>.v Enter
      vlogan <test bench file>.v Enter

      If your design contains the altgxb megafunction, type the following commands to compile the appropriate libraries:

      vlogan/usr/quartus/eda/sim_lib/sgate.v Enter
      vlogan
      /usr/quartus/eda/sim_lib/stratixgx_mf.v Enter

    1. To start a simulation session by elaborating and compiling and to create the simv executable to simulate the design, type the following command at the command prompt:

      v<top-level entity> Enter

    2. To simulate the design, type the following command at a command prompt:

    3. simvEnter

    1. To perform the simulation interactively, type simv -i Enter at the command prompt.

click to expandTo perform a functional simulation of a VHDL design:

    1. If you have not already done so, perform Setting Up the VCS MX Working Environment.

    2. Create a .synopsys_vss.setup file to include the mapping information for the work library, and to direct the VCS MX software to use the functional simulation libraries during simulation:

      WORK ><work library>
      220model >
      <work library>
      altera_mf >
      <work library>
      sgate >
      <work library>
      altgxb >
      <work library>
      <work library>
      : <physical path to work library>

    3. In the VCS MX shell, point the environment variable SYNOPSYS_SIM_SETUP to the .synopsys_vss.setup file.

    4. To create a work library in the project directory, type the following command at a command prompt: 

    5. mkdir<work library> Enter
       

    6. Note: Altera recommends using the Synopsys VCS MX default library names when you create a library. You should name the VCS MX software libraries as follows:

      • When you run the VCS MX software independently from the Quartus II software, you should name your library work.

      • When you run the VCS MX software automatically from the Quartus II software, the work library is named rtl_work for a RTL simulation or gate_work for a Gate-Level simulation. The library work is mapped to either rtl_work or gate_work.

    7.  

    1. To compile the VHDL Design File (.vhd), test bench file (if you are using one) and Altera prerouting simulation libraries, type the following commands at a command prompt:

    2.  

      Note:

      • If the 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 rx_analogreset and rx_digitalreset 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 tx_digitalreset, rx_analogreset, and rx_digitalreset signals to start high. Assert tx_digitalreset long enough so that it can be registered by tx_clkout and assert rx_digitalreset a few clock cycles longer than rx_analogreset so that it can be registered by rx_clkout. Altera requires that you apply the same reset sequence mentioned above after dynamic channel reconfiguration.

       

      vhdlan/usr/quartus/eda/sim_lib/220pack.vhd Enter
      vhdlan
      /usr/quartus/eda/sim_lib/220model.vhd Enter
      vhdlan /usr/quartus/eda/sim_lib/altera_mf.vhd Enter
      vhdlan /usr/quartus/eda/sim_lib/altera_mf_components.vhd Enter
      vhdlan <design name>
      .vhd Enter
      vhdlan <test bench file>.vhd Enter

      If your design contains the altgxb megafunction, type the following commands to compile the appropriate libraries:

      vhdlan/usr/quartus/eda/sim_lib/sgate_pack.vhd Enter
      vhdlan
      /usr/quartus/eda/sim_lib/sgate.vhd Enter
      vhdlan
      /usr/quartus/eda/sim_lib/stratixgx_mf.vhd Enter
      vhdlan
      /usr/quartus/eda/sim_lib/stratixgx_mf_components.vhd Enter

       

      Note: For VHDL 87-compliant designs, type the following commands to compile the VHDL-87 compliant simulation model libraries:

      vhdlan -vhdl87 /usr/quartus/eda/sim_lib/220model_87.vhd Enter
      vhdlan
      -vhdl87 /usr/quartus/eda/sim_lib/altera_mf_87.vhd Enter

       

    1. To start a simulation session by elaborating and compiling and to create the scsim executable to simulate the design, type the following command at the command prompt:

      scs<top-level entity> Enter

    2. To simulate the design, type the following command at a command prompt:

    3. scsim -xlrm<work library>.<top-level entity> Enter

    1. To perform the simulation interactively, type scsim -i Enter at the command prompt.

 

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