## Setting Up the MAX+PLUS II/Cadence Working Environment

To use MAX+PLUS® II software with Cadence software, you must first install the MAX+PLUS II software, then establish an environment that facilitates entering and processing designs. The MAX+PLUS II/Cadence 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/Cadence Interface File Organization for information about the MAX+PLUS II/Cadence directories that are created during MAX+PLUS II installation.

| The information presented here assumes that you are using the 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/Cadence interface, follow these steps:

1. Ensure that you have correctly installed the MAX+PLUS II and Cadence software versions described in the MAX+PLUS II/Cadence Software Requirements.

2. Add the following environment variables to your .cshrc file:

   `setenv ALT_HOME /usr/maxplus2`

   `setenv CDS_INST_DIR` <Cadence system directory path>

3. Add the $ALT_HOME/cadence/bin and $CDS_INST_DIR/tools/bin directories to the `PATH` environment variable in your .cshrc file. Make sure these paths are placed before the Cadence hierarchy path.

4. Add /usr/dt/lib and /usr/ucb/lib to the `LD_LIBRARY_PATH` environment variable in your .cshrc file.

5. Create a new cds.lib file in your working directory or edit an existing one so that it includes all of the following lines that apply to the Cadence tools you have installed:

   `DEFINE alt_syn ${ALT_HOME}/simlib/concept/alt_syn`

   `DEFINE lpm_syn ${ALT_HOME}/simlib/concept/lpm_syn`

   `DEFINE alt_lpm ${ALT_HOME}/simlib/concept/alt_lpm`

   `DEFINE alt_mf ${ALT_HOME}/simlib/concept/alt_mf`

   `DEFINE alt_max2 ${ALT_HOME}/simlib/concept/alt_max2`

   `DEFINE alt_max2 ${ALT_HOME}/simlib/composer/alt_max2/alt_max2`

   `DEFINE alt_vtl $ALT_HOME/simlib/concept/alt_vtl/lib`

   `DEFINE altera $ALT_HOME/simlib/concept/alt_mf/lib`

   `SOFTINCLUDE $CDS_INST_DIR/tools/leapfrog/files/cds.lib`

   `DEFINE` <design name>`.`

6. Copy the /usr/maxplus2/maxplus2.ini file to your $HOME directory:

   `cp /usr/maxplus2/maxplus2.ini $HOME`

   `chmod u+w $HOME/maxplus2.ini`

   | The maxplus2.ini file contains both Altera- and user-specified initialization parameters that control the MAX+PLUS II software, such as MAX+PLUS II symbol and logic function 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.

7. If you are using Concept on a Sun SPARCstation running SunOS, go to Setting Up the MAX+PLUS II/Cadence Concept Work Environment for a Sun SPARCstation Running SunOS Software to install the redifnet EDIF netlist reader utility.

8. If you are using Synergy software, edit the hdl.var file located in your working directory to include the following line:

   `DEFINE work` <design name>

9. Set up an appropriate directory structure for the tool(s) you are using. See the following topics for information:
   - Composer Project File Directory Structure
   - Concept & RapidSIM Local Work Area Directory Structure

| Go to the following topics, which are available on the web, for additional information:

- MAX+PLUS II Getting Started version 8.1 (5.4 MB)
- This manual is also available in 4 parts:
  - Preface & Section 1: MAX+PLUS II Installation
  - Section 2: MAX+PLUS II - A Perspective
  - Section 3: MAX+PLUS II Tutorial
  - Appendices, Glossary & Index

Last Updated: August 28, 2000 for MAX+PLUS II version 10.0 |
| Home | List by Vendor | List by Tool | List by Function | Cadence Topics | Documentation Conventions Copyright © 1995-2000 Altera Corporation, 101 Innovation Drive, San Jose, California 95134, USA. All rights reserved. By accessing any information on this CD-ROM, you agree to be bound by the terms of Altera's Legal Notice.