CH 04
CH 04
1
Objectives
2
Objectives
(Continued)
Explain how a graphic editor and a VHDL
text editor are used to define logic to a PLD.
Interpret the output of a simulation file to
describe logic operations.
Interpret VHDL code for the basic logic
gates.
3
PLD Design Flow
4
PLD Design Flow
Computer-aided design (CAD) is used to draw
the schematic.
Schematic Capture converts to a binary file.
Program uses the file to alter PLD internal
connections, implementing the desired function.
VHDL - VHSIC Hardware Description
Language
VHSIC - Very High Speed Integrated Circuit
5
PLD Design Flow
Define the problem
Develop the equations
Enter the design
Simulate the input/output
conditions
Program the PLD
Test the final programmed
PLD
6
PLD Design Flow
7
PLD Design Flow
7
PLD Architecture
SPLD (Simple Programmable Logic Device)
Four basic types: SPLDs, CPLDs, FPGAs, and
ASICs
Most basic and least expensive
Configurable logic gates
Programmable interconnection points
Memory flip-flops
Typically 16 inputs plus complements and10 outputs
AND gate outputs called product terms
9
PLD Architecture
PAL (Programmable Array Logic)
Gives sum-of-products form
Uses fixed-input OR gates
10
PLD Architecture
PAL16L8 is a typical PAL device
The number 16 means 16 inputs
11
PLD Architecture
CPLD (Complex Programmable Logic
Device)
Combines several PAL-type SPLDs into a single
package
Nonvolatile – memory is not lost when power is
removed
Can be repeatedly programmed to implement
different functions
11
PLD Architecture
FPGA (Field-Programmable Gate Array)
Uses a look-up table (LUT) – a truth table listing
all possible input/output combinations.
More dense and faster than CPLDs
12
PLD Architecture
ASIC stands for application-specific integrated
circuit.
Used for large quantity demand
After testing on FPGA design is transferred to
ASIC.
Nonvolatile so programming not lost when power
is removed.
Can be pin compatible with FPGA
12
Using PLDs to Solve Basic Logic
Designs
Schematic editor
Connect pre-defined logic symbols
VHDL editor
Define the logic
Compiler
Language and symbol translation program
Waveform simulator
To check the logic operation
13
Using PLDs to Solve Basic Logic
Designs
Flow of operations
to design, simulate,
and program an
FPGA.
14
Using PLDs to Solve Basic Logic
Designs
Screen display of a block editor file generated by
Quartus II software for a two-input AND gate.
Inputs, outputs, and circuit logic are defined simply by
drawing the diagram
15
Using PLDs to Solve Basic Logic
Designs
Screen display of a VHDL text editor file for a
two-input AND gate.
Divided into library declaration, entity declaration,
and architecture body.
16
Using PLDs to Solve Basic Logic
Designs
Screen display of a Quartus II simulation
waveform file for a two-input AND gate.
17
Altera’s Quartus II Tutorial
Start the Quartus II software and prepare to
implement the Boolean equation X = AB +CD.
Altera’s Quartus II Tutorial
Create a new project
20
Summary
The two most common methods of PLD
design entry are schematic entry and VHDL
entry. To use schematic entry the designer
uses CAD tools to draw the logic that needs to
be implemented. To use VHDL entry the
designer uses a text editor to write program
descriptions defining the logic to be
implemented.
21
Summary
PLD design software usually includes a logic
simulator. This feature allows the user to
simulate levels to be input to the PLD and shows
the output simulation to those input conditions.
Most PLDs are erasable and reprogrammable.
This allows the user to test many versions of their
logic design without ever changing ICs.
22
Summary
Basically there are four types of PLDs:
SPLDs, CPLDs, FPGAs, and ASICs.
SPLDs use the PAL or PLA architecture.
They consist of several multi-input AND
gates whose inputs feed the inputs to OR
gates and memory flip-flops.
23
Summary
The CPLD consists of several
interconnected SPLDs.
The FPGA is the most dense form of
PLD. It uses a look-up table to determine
the desired output.
ASICs are equivalent to FPGAs but their
logic is hard-coded.
23