Altera Home Page
Literature Licensing
Buy On-Line Download

  Home   |   Products   |   Support   |   End Markets   |   Technology Center   |   Education & Events   |   Corporate   |   Buy On-Line  
  Knowledge Database   |   Devices   |   Design Software   |   Intellectual Property   |   Reference Designs   |   Design Examples   |   mySupport  

 Products
   Quartus II
      SOPC Builder
      MAX+PLUS II
      ModelSim-Altera
  
 Resource Centers
      Overview
      Installation & Licensing
      Scripting
      Board Design & I/O
      Design Entry & Planning
      Synthesis & Netlist Viewers
      Incremental Compilation
      Optimization
      Power Management
   TimeQuest Timing Analyzer
      Classic Timing Analyzer
      Simulation & Verification
      On-Chip Debugging
      HardCopy Design
  
 Software Resources
      OS Support
      Driver Installation
  
 Download & Licensing
      Download
   Licensing
  
 Quartus II EDA Support
      Quartus II Interface
   Synthesis Tools
   Simulation Tools
   Formal Verification Tools
   Timing Analysis Tools
   Physical Synthesis Tools
   Board Level Tools
  
 Legacy Sw. EDA Support
      View by Vendor
      View by Tool
      View by Function
  

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.

  Please Give Us Feedback