UNIT One FPGA
UNIT One FPGA
Introduction
Simple PLDs, CPLDs, FPGAs
Organization of FPGAs
FPGA Programming Technologies
Programmable Logic Block Architectures Programmable
Interconnects,
Programmable I/O blocks in FPGAs
A routing tool creates the masks for the routing layers and
"customizes" the pre-created gate array for the user's design
Logic gates
Inputs and Outputs
(logic variables) programmable (logic
switche
functions)
s
Use to implement
circuits in SOP form
Input
buffers
and
The connections in the AND inverters
plane are programmable
x1 x1 xn xn
P1
The connections in the OR
plane are programmable AND plane OR plane
Pk
DrKrishna
N Babu Illuri
Engineering
Vardhaman
Prakash, Amrita School ofCollege of
Engineering
f1 fm
Gate Level Version of PLA
x1 x2
x3
Programmab
le
connections
f1 = OR
P1 plane
x1x2+x1x3'+x1'x2'x3
f2 =
P2
x1x2+x1'x2'x3+x1x3
P3
P4
AND
plane
Dr Babu Illuri Vardhaman College of
Engineering f1 f2
Customary Schematic of a PLA
x1 x2
x3
OR
f1 = plane
x1x2+x1x3'+x1'x2'x3 P1
f2 =
P2
x1x2+x1'x2'x3+x1x3
P
x marks the connections left in AND
place after programming plane
Dr Babu Illuri Vardhaman College of
Engineering f1 f2
Limitations of PLAs
Typical size is 16 inputs, 32 product terms, 8 outputs
Each AND gate has large fan-in - this limits the number of
inputs that can be provided in a PLA
16 inputs 216 = possible input combinations; only 32
permitted (since 32 AND gates) in a typical PLA
32 AND terms permitted large fan-in for OR gates as well
N 2Nx M
input M output
ROM
The input bits decide the particular word that becomes available
on output lines
Sum of minterms
Dr Babu Illuri Vardhaman College of
Engineering
Combinational Circuit Implementation using
PROM
I0 I1 I2 F0 F1
F2
0 0 0 1 0 0
0 0 1 0 1 0
0 1 0 0 1 1
0 1 1 1 0 0
1 0 0 0 1 0
1 0 1 0 0 1
1 1 0 1 0 0
1 1 1 0 1 0 F0 F1
F2
Dr Babu Illuri Vardhaman College of
Engineering
PROM Types
Programmable PROM
Break links through current pulses
Write once, Read multiple times
Erasable PROM (EPROM)
Program with ultraviolet light
Write multiple times, Read multiple times
Electrically Erasable PROM (EEPROM)/ Flash
Memory
Program with electrical signal
Write multiple times, Read multiple times
Also used to implement
circuits in SOP form
Input
buffers
and
The connections in inverters
fixed
connections
the AND plane are x1 x1 xn xn
programmable
P1
The connections in
the OR plane are AND plane OR plane
Pk
NOT programmable
f1 fm
Dr Babu Illuri Vardhaman College of
Engineering
Example Schematic of a PAL
x1 x2
x3
f1 =
x1x2x3'+x1'x2x3 P1
f2 = f1
x1'x2'+x1x2x3 P2
P3
f2
P4
AND
Dr Babu Illuri Vardhaman College of
Engineeringplane
Comparing PALs and PLAs
D Q
Flip-flop
Cloc
k
back to AND
plane
D
Q
Enable = Select = 1 allows Clock
the PAL to synchronize the
output changes with a clock
back to AND plane
pulse
D
Q Sel =
Cloc En =
0
k 0 1
g
1
D
Q Selec
Cloc t
k 0
f
1
Q
Dr Babu Illuri Vardhaman College of
Engineering Clock
Complex Programmable Logic Devices (CPLDs):
Microprocessor is a stored-program
computer
1,000,000
900,000
800,000
700,000
600,000
500,000
mask cost ($)
400,000
300,000
200,000
100,000
0
.25 micron .18 micron .13 micron .09 micron
Power consumption
2. PAL Implementation:
1. Write the simplified logic equation in terms of AND-OR gates.
2. Configure the PAL to implement this logic.
Diagram: Use a PAL with 3 inputs, a programmable AND array, and a fixed OR array.