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

Setting Up a Project with the ModelSim Software

btnshowall.gif

You can run the Mentor Graphics ModelSim PE or SE software from the ModelSim interface or with command-line commands.

 

click to expandTo set up a ModelSim project with the ModelSim interface:

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

  2. If you are performing a timing simulation, to generate the Verilog Output File (.vo) or VHDL Output File (.vho):

    1. Specify EDA tool settings in the Quartus II software.

    2. Compile the design with the Quartus II software. 

Note: If you have already compiled the design, and want to specify different EDA tools settings and generate a Verilog Output File (.vo), VHDL Output File (.vho), and Standard Delay Format Output File (.sdo) without recompiling the design, you can use the Start EDA Netlist Writer command.

You can also use the Start EDA Netlist Writer command to generate the following types of files:

  1. Start the ModelSim software.

  2. To specify the project directory:

    1. On the File menu, click Change Directory.

    2. In the Choose a Directory dialog box, type the path to the project directory in the Directory Name box.

      or

      In the Look in list, select the project directory.

    3. Click Open.

     

    Note: If you are performing a functional simulation, the project is the directory that contains your design files. If you are performing a timing simulation, the project directory is the <project directory>\simulation\modelsim directory or the location you specified in the Output directory box of the Simulation in the Settings dialog box.

  1. To create a new work library:

    1. On the File menu, point to New, and then click Library. The Create a New Library dialog box appears.

    2. Under Create, select a new library and a logical mapping to it.

    3. In the Library Name box, type the library name.

    4. In the Library Maps to list select the work library.

     

    Note: When you run the ModelSim software independently from the Quartus II software, you should name your library work. When you run the ModelSim software automatically from the Quartus II software, your library is named ModelSim_work automatically and located in the current Quartus II project directory.

click to expandTo set up a ModelSim project with command-line commands:

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

  2. If you are performing a timing simulation, to generate the Verilog Output File (.vo) or VHDL Output File (.vho):

    1. Specify EDA tool settings in the Quartus II software.

    2. Compile the design with the Quartus II software.

Note: If you have already compiled the design, and want to specify different EDA tools settings and generate a Verilog Output File (.vo), VHDL Output File (.vho), and Standard Delay Format Output File (.sdo) without recompiling the design, you can use the Start EDA Netlist Writer command.

You can also use the Start EDA Netlist Writer command to generate the following types of files:

  1. Start the ModelSim software.

  2. Change to the directory where the ModelSim libraries are located after they are compiled.

  3. To create a new work library, type the following command at the ModelSim prompt:

    vlib work Enter

    ModelSim compiles the design files to library work by default.

  4. To change the default library type the following commands at the ModelSim prompt:

    vlib <user defined library> Enter

    vmap work<user defined library>Enter

Note: When you run the ModelSim software automatically from the Quartus II software, your work library is automatically mapped to rtl_work for RTL simulation and gate_work for gate level simulation. The libraries are created in the <project directory>\simulation\modelsim directory or the location you specified in the Output directory box of the Simulation page in the Settings dialog box.

 

If you are performing a functional simulation, perform a functional simulation with the ModelSim software.

If you are performing a timing simulation, compile libraries and design files with the ModelSim software.

 

 

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