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

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

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

Setting Up the MAX+PLUS II/Mentor Graphics/Exemplar Logic Working Environment

To use the MAX+PLUS® II software with Mentor Graphics/Exemplar Logic software, you must install the MAX+PLUS II software, then establish an environment that facilitates entering and processing designs. The MAX+PLUS II/Mentor Graphics/Exemplar Logic interface is installed automatically when you install the MAX+PLUS II software on your computer.

Go to MAX+PLUS II Installation in the MAX+PLUS II Getting Started manual for more information on installation and details on the directories that are created during MAX+PLUS II installation. Go to MAX+PLUS II/Mentor Graphics/Exemplar Logic Interface File Organization for information about the MAX+PLUS II/Mentor Graphics directories that are created during MAX+PLUS II installation.

Note: The information presented here assumes that you are using a C shell and that your MAX+PLUS II system directory is /usr/maxplus2. If not, you must use the appropriate syntax and procedures to set environment variables for your shell.

To set up your working environment for the MAX+PLUS II/Mentor Graphics interface, follow these steps:

  1. Ensure that you have correctly installed the MAX+PLUS II and Mentor Graphics software versions described in MAX+PLUS II/Mentor Graphics Software Requirements.
  2. Add the following environment variables to your .cshrc file:
  3. setenv ALT_HOME /usr/maxplus2 Enter
    setenv MGC_WD <user-specified working directory> Enter
    setenv MGC_HOME <Mentor Graphics system directory> Enter
    setenv MAX2_MENTOR /usr/maxplus2/mentor/max2 Enter
    setenv MGC_LOCATION_MAP <user-specified location_map file> Enter
    setenv EXEMPLAR <Galileo or Leonardo system directory> Enter

    Note: Installing the Altera®­provided MAX+PLUS II/Mentor Graphics interface on your computer automatically installs a template for these environment variables in the /usr/maxplus2/mentor/max2/.cshrc file.

  4. Add the $MGC_HOME/bin, $MAX2_MENTOR/bin, $ALT_HOME/bin, $EXEMPLAR/bin/<os>, and $ALT_HOME/bin directories to the PATH environment variable in your .cshrc file, where <os> is the operating system, e.g., SUN4 for SunOS; SUN5 for Solaris.
  5. If you plan to use the Altera Schematic Express (sch_exprss) utility or the Altera VHDL Express (vhd_exprss) utility, add the following environment variable to your .cshrc file:
  6. setenv MAX2_QSIM /usr/maxplus2/simlib/mentor/max2sim Enter

  7. Type source ~/.cshrc at a UNIX prompt to source the .cshrc file and validate the settings in steps 1 through 4.
  8. Add the following lines to your MGC_location_map file:
  9. $MAX2_MENTOR Enter
    /usr/maxplus2/mentor/max2 Enter
    $MGC_GENLIB Enter
    /<user-specified Mentor Graphics GEN_LIB directory> Enter
    $MGC_LSLIB Enter
    /<user-specified Mentor Graphics LS_LIB directory> Enter
    $MAX2_EXAMPLES Enter
    /<user-specified example directory> Enter
    $MAX2_LMCLIB Enter
    /<user-specified Logic Modeling directory> Enter
    $MAX2_GENLIB Enter
    /usr/maxplus2/simlib/mentor/alt_max2 Enter
    $MAX2_QSIM Enter
    /usr/maxplus2/simlib/mentor/max2sim Enter
    $MAX2_FONT Enter
    /usr/maxplus2/mentor/max2/fonts Enter
    $MGC_SYS1076_STD Enter
    /<user-specified MGC_HOME directory>/pkgs/sys_1076_std/ std Enter
    $MGC_SYS1076_ARITHMETIC Enter
    /<user-specified MGC_HOME directory>/pkgs/sys_1076_std/arithmetic Enter
    $MGC_SYS1076_PORTABLE Enter
    /<user-specified MGC_HOME directory>/pkgs/sys_1076_std/mgc_portable Enter
    $MGC_SYS1076_IEEE Enter
    /<user-specified MGC_HOME directory>/pkgs/sys_1076_std/ieee Enter
    $MGC_SYS1076_SRC Enter
    /<user-specified MGC_HOME directory>/pkgs/sys_1076_std/ src Enter
    $MAX2_MFLIB Enter
    /usr/maxplus2/simlib/mentor/alt_mf Enter

    Note: Installing the Altera­provided MAX+PLUS II/Mentor Graphics/Exemplar Logic interface on your computer automatically installs a template for these environment variables in the /usr/maxplus2/mentor/max2/location_map/location_map file.

  10. If you want to use QuickHDL software to simulate VHDL or Verilog HDL designs, add the following line in the [library] section of your quickhdl.ini file: altera = $MAX2_MFLIB.
  11. If you plan to use QuickHDL software to simulate VITAL-compliant VHDL files, add the following lines to your MGC_location_map file:
  12. $MAX2_VTLLIB Enter
    /usr/maxplus2/simlib/mentor/alt_vtl Enter

  13. Copy the /usr/maxplus2/maxplus2.ini file to your $HOME directory:
  14. cp /usr/maxplus2/maxplus2.ini $HOME Enter
    chmod u+w $HOME/maxplus2.ini Enter

    Note: The maxplus2.ini file contains both Altera- and user-specified initialization parameters that control the MAX+PLUS II software, such as Altera­provided logic and symbol library paths and the current project name. The MAX+PLUS II installation procedure creates and copies the maxplus2.ini file to the /usr/maxplus2 directory.

    Normally, you do not have to edit your local copy of maxplus2.ini, because the MAX+PLUS II software updates the file automatically whenever you change any parameters or settings. However, if you move the max2lib and max2inc library subdirectories, you must update the file. Go to "Creating & Using a Local Copy of the maxplus2.ini File" in MAX+PLUS II Help for more information.

Related Links:


Feedback

Did this information help you?

If no, please log onto mySupport to file a technical request or enhancement.


Altera does not warrant that this solution will work for the customer's intended purpose and disclaims all liability for use of or reliance on the solution.

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