Professional Documents
Culture Documents
23EC1202
DIGITAL DESIGN & COMPUTER ARCHITECTURE
Session – 09 & 10
To familiarize students with the basic concept of CPLD & FPGA design.
INSTRUCTIONAL OBJECTIVES
LEARNING OUTCOMES
• Complex Programmable Logic Device (CPLD) and Field Programmable Gate Array (FPGA)
are programmable logic devices used to build digital circuits.
• CPLDs are often chosen for applications with moderate logic complexity, while FPGAs
are preferred for applications requiring high customization and parallel processing
capabilities.
BLOCK DIAGRAM OF CPLD
4
INTERNAL STRUCTURE OF A MACRO CELL
5
INTERNAL STRUCTURE OF A PAL BLOCK (MACRO CELL)
• The PAL block consists of macro cells.
• Macro cells are defined as functional blocks responsible for performing sequential or
combinational logic.
• The macro cell consists of AND/OR array, XOR gate, Flip-flop, and Multiplexer.
• AND/OR arrays are completely reprogrammable and responsible for performing various logic
functions.
• The flip-flop is used to store the output value produced by the XOR gate.
➢ CLB (Configurable Logic Block) contains MUX, D flip flop and LUT which implements the user logic.
➢ LUT (Look-Up Table) is useful for combinational logical function implementation; the MUX is used
for selection logic, and D flip flop stores the output of the LUT.
10
CONFIGURABLE LOGIC BLOCK (CLB)
LOOK-UP TABLE (LUT)
• CPLDs have a simpler architecture with a set connecting structure, which can result in
quicker design times and reduced costs. They also consume less electricity and are better
suited for low-volume production runs.
• FPGAs contain a far higher number of logic cells and a more flexible connection topology,
making them better suited for larger, more complicated designs.
• FPGAs provide greater reconfigurability and can serve a broader range of applications. Their
more complex architecture can result in longer design times, higher prices, and higher
power consumption.
SELF-ASSESSMENT QUESTIONS
1. The complex programmable logic device contains several PLD blocks and __________
a) A language compiler
b) AND/OR arrays
c) Global interconnection matrix
d) Field-programmable switches
a) SLD
b) SROM
c) EPROM
d) PLD
SELF-ASSESSMENT QUESTIONS
a) A line
b) A channel
c) A strobe
d) A flip-flop
a) PAL
b) PLD
c) EPROM
d) SRAM
TERMINAL QUESTIONS
Short answer questions:
1. Present the abbreviations of CPLD & FPGA in digital circuits.
2. Explore the applications of CPLD in the circuit design.
3. What is the purpose of CLB and LUT in the context of FPGAs.
Long answer questions:
1. Elaborate on the architecture of a CPLD, emphasizing the role of Macrocells in providing flexibility with
internal diagram.
2. Draw & present insights of FPGA architecture, focusing on Configurable Logic Blocks (CLB) and Look-Up
Tables (LUT).
3. Design the function F = x1 x3 x6’+ x1 x4 x5 x6’ + x2 x3 x7 + x2 x4 x5 x7 using CPLD and flip-flops.
4. Compare and contrast CPLDs (Complex Programmable Logic Devices) and FPGAs (Field-Programmable Gate
Arrays) highlighting key differences.
REFERENCES FOR FURTHER LEARNING
Reference Books:
1. Computer System Architecture by M. Moris Mano
2. Fundamentals of Digital Logic with Verilog HDL by Stephen Brown and ZvonkoVranesic