Docsity

Introduction - Digital Systems - Lecture Slides, Slides of Digital Systems Design

Partial preview of the text

Download Introduction - Digital Systems - Lecture Slides and more Slides Digital Systems Design in PDF only on Docsity!

Introduction to CPLDs and FPGAs

CPLD Families

CPLD Function Block

Literal inputs (e.g., a, b, c)^ PLA-like AND array

Extra function (e.g., g, h) i/ps for OR term

Example function f= ab+bc’+g+h D-FF

2:1 Mux

Field Programmable Gate Arrays (FPGAs)

FPGA Families

PSM: Programmable Switch Matrix (for making connections between interconnects of different channels). The structure shown only allows i-to-i connections

CLB: Configuration Logic Block (programmable logic cell)

Horizontal routing (interconnect) channel

Vertical routing channels

SRAM-type FPGA Interconnect Architecture

Diamondswitch

Configuration Logic Block (CLB)

  • 5-i/p function implemented using G, F and H LUTs (Look Up Tables) using Shannon’s Expansion : p(a,b,c,d,e) = a p(1, b, c, d, e) + a’ p(0, b, c, d, e) = a q(b,c,d,e) + a’r(b,c,d,e). q( ) impl. using LUT G, r impl. using LUT F and p=ag + a’h impl. using LUT H
  • The LUT o/ps can go through a FF (for seq. ckt design) or bypass it for a combinational o/p
  • This is called technology mapping : mapping the logic to CLB logic components Docsity.com

Technology Mapping

Components of Modern FPGAs

Simplified FPGA Logic Element

Look-Up Table (LUT)

State

Out

Inputs

Clock

Enable

High-level Compilers & FPGAs

  • Difficult to estimate hardware resources.
  • Some parts of program more appropriate for

processor (hardware/software codesign).

  • Compiler must parallelize computation across

many resources.

  • Engineers like to write in C/VHDL/Verilog rather

than pushing little blocks around.

for (i = 0; i<n, i++) { c[i] = a[i] + b[i] } Some success stories

Circuit Compilation & Implementation: Basic

Steps

  1. Technology Mapping
  2. Placement
  3. Routing
LUT

LUT

Assign a logical LUT to a physical location.

Select wire segments and switches for Interconnection.

  1. Convert all implementation “details” to FPGA programming info (configuration bits): LUT RAM bits, CCM & PSM FF/SRAM bits, etc.
    • Can store config bits on disk or ROM and load into FPGA as needed
    • Can thus use the FPGA to implement multiple digital systems (at different times or sometimes simultaneously in different FPGA partitions)

Technology Mapping: A Simple Example

FA
A B

Co Ci

S

Made of Full Adders A+B = D

Logic synthesis tool reduces circuit to SOP form

Co = ABCi + ABCi + ABC (^) i + ABC (^) i

S = ABCi + ABC (^) i + ABC (^) i + ABC (^) i

C^ LUT^ C^ o i

B
A
C LUT^ S

i

B
A