CREATING DESIGNS FOR ALTERA PLDs

Altera EPLDs can be designed with a hardware description language (VHDL, Verilog, AHDL) or by creating a schematic drawing and then compiled into a pattern that can be programmed into an EPLD device. The basic design flow is as follows.
  1. Create a schematic drawing in Mentor Graphics Design Architect.
  2. Simulate the design with Mentor Graphics Quicksim II to verify its functionality.
  3. Generate an EDIF netlist from the schematic with Mentor Graphics EDIF Netlist Writer.
  4. Read the netlist into Altera's MAX+PLUS II compiler.
  5. Select device and output options in MAX+PLUS II.
  6. Compile the design, generating a JEDEC file and an EDIF output file.
  7. Read the EDIF output file with Mentor Graphics EDIF Netlist Reader, create a simulation viewpoint, and resimulate to verify the design.
  8. Load the JEDEC file into a programmer and program the EPLD.
Refer to the Design Architect and Quicksim references for details on schematic drawing and simulation.

Creating a Schematic for an Altera EPLD Design

Create a schematic with parts from ALTERA libraries, using the normal procedures outlined in the Design Architect User Guide, with the following exceptions:

Perform Functional Simulation to Verify the Design Functionality

Simulation should be used at two points in the design process. Simulation with the initial schematic or VHDL model should be used to verify the functionality of a design before implementing it in a PLD. After the design has been realized with a specific PLD, it should be resimulated to reverify functionality and to examine timing characteristics.

Mentor Graphics Quicksim II is used to perform both simulations by invoking it on different "viewpoints" of the design: one of the initial functional model and one of the PLD implementation. Mentor Graphics Design Viewpoint Editor (DVE) is used to create these viewpoints before and after compilation of the design into a specific PLD. Before compilation, the viewpoint represents only the functionality. After compilation, the viewpoint contains accurate timing information for the actual implementation in the selected PLD.

Creating the Functional Simulation Design Viewpoint:

Performing the Functional Simulation:

Invoking Quicksim II from a UNIX command line:

Convert the Schematic to EDIF Format to Import it into MAX+PLUS II

Designs are exchanged between the Mentor Graphics and Altera design environments via EDIF netlist files (Electronic Design Interchange Format - an industry standard). An EDIF netlist representation of a Design Architect schematic is generated with the Mentor Graphics EDIF Netlist Writer (ENWrite).

Conversion procedure:

Note that the MAX+PLUS II compiler can also read and process design models written in VHDL, Verilog, or AHDL (Altera Hardware Description Languate).

Compile the Design with Altera's MAX+PLUS II Compiler

The MAX+PLUS II compiler will import design file(s), synthesize a circuit, map the circuit onto one or more EPLDs, and generate a programming file that can be transferred to a programmer to program the EPLDs. All options and operations in MAX+PLUS II are selected using the pulldown menus. The following procedure assumes that EDIF netlist file /home/myname/project/counter/max2/counter.edf has been created as described above.

Invoking MAX_PLUS II from a UNIX shell:

Compiling the design for a specific device:

Performing Timing Simulation

Timing simulation can be done on the compiled design to analyze the timing parameters that would be achieved in the actual part. To do this, a new simulation viewpoint must be created for the compiled part from the EDIF output file /home/myname/project/ counter.edo generated by MAX+PLUS II as described above.

Import counter.edo into the Mentor environment with the EDIF Netlist Reader (ENRead)

Create a simulation viewpoint for the new component with the Design Viewpoint Editor (DVE)

Performing the Timing Simulation:

Program the EPLD

Logical Devices ALLPRO-88 Programmer(EP900, EP1800, MAX5128)

Altera Programmer (EPS464, MAX7032, MAX7096