Docsity

Programmable Logic: Customizing Chips with FPGAs and PAL, Study notes of Engineering

Partial preview of the text

Download Programmable Logic: Customizing Chips with FPGAs and PAL and more Study notes Engineering in PDF only on Docsity!

ENGIN 112

Intro to Electrical and Computer Engineering

Lecture 38

Programmable Logic

Overview

° Programmable logic offers designers opportunity to customize chips

° Programmable logic devices have a fixed logic structure

° Programmable array logic contain AND-OR circuits

  • First introduced in early 1980’s

° Field programmable gate arrays (FPGAs) contain small blocks that implement truth tables

  • First introduced in 1985 (Xilinx Corporation)

° Software used to convert user designs to programming information

Programmable Logic Design

° “Generic” chip created and then customized by designer

° Programming information used

  • Like a ROM

° Analogy – sign making

  • Custom sign – more expensive, customized by manufacturer, difficult to change
  • Sign built by consumer from individual letters – less expensive, not quite as nice, easier to change (remix letters)

E

Z

R

V

N

M

N G^ I^ N^1 1 2

Programmable Array Logic

  • Implements sum-of-products expressions
  • Four external inputs (and complements)
  • Feedback path from output F 1
  • Product term connections made via switches (^) x

x

Reconfigurable Hardware

  • Each logic element operates on four one-bit inputs.
  • Output is one data bit.
  • Can perform any Boolean function of four inputs

24 = 64K functions!

Logic Element

A B C D

Out

A. B. C. D = out

AND

Field-Programmable Gate Array

  • Each logic element outputs one data bit.
  • Interconnect programmable between elements.
  • Interconnect tracks grouped into channels.

LE LE

LE LE

LE LE LE LE

LE LE

LE LE

Logic Element Tracks

Translating a Design to an FPGA

  • CAD to translate circuit from text description to physical implementation well understood.
  • CAD to translate from C program to circuit not well understood.
  • Very difficult for application designers to successfully write high- performance applications

C program

C = A+B

Circuit

A

B

+ C

Array

Need for design automation!

Circuit Compilation

  1. Technology Mapping
  2. Placement
  3. Routing

LUT

LUT

Assign a logical LUT to a physical location.

Select wire segments And switches for Interconnection.

Dynamic Reconfiguration

  • What if I want to exchange part of the design in the device with another piece?
  • Need to create architectures and software to incrementally change designs.
  • Effectively a “configuration cache”

L L

L L

ENGIN112 L38: Programmable Logic December 5, 2003

Xilinx XC4000 Cell

24

Summary

° Programmable logic allows for designers to easily create custom designs

° Programmable array logic contains AND-OR structures to implement SOP equations

° FPGAs contain small memories and numerous wires for routing

° Designers create designs in Verilog

  • Design translated to the chip via software

° Hands on experience in ECE353, ECE