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支持
      供应商类
      工具类
      功能类
  

Compiling Libraries and Design Files with the ModelSim Software

btnshowall.gif

To compile the atom simulation model libraries, Verilog Output File (.vo) or VHDL Output File (.vho), and test bench files in the Mentor Graphics ModelSim PE or SE software:

 

click to expandTo compile libraries and design files with the ModelSim interface:

  1. If you have not already done so, set up a project with the ModelSim software.

  2. On the Compile menu click Compile.

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

  4. In the Files of Type list, select All Files (*.*), and in the Look in list, select the appropriate simulation model library.

Note: For VHDL-93 compliant designs, turn on Use 1993 Language Syntax under Default Options.

  1. Click Compile.

  2. Repeat steps 2 to 4 for the Verilog or VHDL Output File and the test bench file (if you are using one) that instantiates the Verilog or VHDL Output File.

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. Click Done.

click to expandTo compile libraries and design files for a ModelSim project with command-line commands:

  1. If you have not already done so, perform set up a ModelSim project with command-line commands.

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. Enter the following commands to direct the ModelSim software to compile the appropriate libraries and design files for VHDL designs.

If your design contains the altgxb megafunction, type the following commands at the ModelSim prompt:

vlib lpm
vlib altera

vlib sgate

vmap lpm work

vmap altera work

vmap sgate work

vlib lpm
<path to library>\220pack.vhd 
vmap lpm lpm
<path to library>\220model.vhd 
vcom -work sgate <path to library>
\sgate_pack.vhd 
vcom -work sgate<path to library>\sgate.vhd 
vcom -work stratixgx_gxb
<path to library>\stratixgx_hssi_atoms.vhd.vhd 
vcom -work stratixgx_gxb
<path to library>\stratixgx_hssi_components.vhd 

To compile the device-specific simulation models, VHDL Output File, and test bench file (if you are using one), type the following commands at the ModelSim prompt:

vcom -work work<path to library>\altera_primitves.vhd (If your design targets a Stratix III or Cyclone III device.)
vcom -work work<path to library>\altera_primitves_components.vhd (If your design targets a Stratix III or Cyclone III device.)
vcom -work work<path to library>\<device family>_components.vhd 
vcom -work work<path to library>\<device family>_atoms.vhd 
vcom -work work<design name>.vho 
vcom -work work<test bench>.vhd 

 

Note: For VHDL 93-compliant designs for APEX 20KE devices, type the following command to compile the simulation model:

vcom -93 -work work<path to library>\apex20ke_atoms.vhd 

 

  1. Enter the following commands to direct the ModelSim software to compile the appropriate libraries and design files for Verilog designs.

If your design contains the altgxb megafunction, type the following commands at the ModelSim prompt:

vlog -work work<path to library>\220model.v 
vlog -work work
<path to library>\sgate.v 

To compile the device-specific simulation models, Verilog Output File, and test bench file (if you are using one), type the following commands at the ModelSim prompt:

vlog -work work<path to library>/altera_primitives.v (If your design targets a Stratix III or Cyclone III device.)
vlog -work work
<path to library>/<device family>_atoms.v 
vlog -work work<design name>
.vo 
vlog -work work<test bench>.v 

 

To continue with the ModelSim simulation flow, perform a timing simulation with the ModelSim software.

 

 

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