1 EECS 150 - Components and Design Techniques for Digital Systems Lec 03 – Field Programmable Gate Arrays (an overview) 9-7-04 David Culler Electrical.

Slides:



Advertisements
Similar presentations
FPGA (Field Programmable Gate Array)
Advertisements

Introduction to Programmable Logic John Coughlan RAL Technology Department Electronics Division.
컴퓨터구조론 교수 채수환. 교재 Computer Systems Organization & Architecture John D. Carpinelli, 2001, Addison Wesley.
Lecture 15 Finite State Machine Implementation
EELE 367 – Logic Design Module 2 – Modern Digital Design Flow Agenda 1.History of Digital Design Approach 2.HDLs 3.Design Abstraction 4.Modern Design Steps.
CPT 310 Logic and Computer Design Instructor: David LublinerPhone Engineering Technology Dept.Cell
Programmable Logic Devices
Spartan II Features  Plentiful logic and memory resources –15K to 200K system gates (up to 5,292 logic cells) –Up to 57 Kb block RAM storage  Flexible.
Implementing Logic Gates and Circuits Discussion D5.1.
Implementing Logic Gates and Circuits Discussion D5.3 Section 11-2.
Fall 2002EECS150 - Lec02-CMOS Page 1 EECS150 - Digital Design Lecture 2 - CMOS August 27, 2003 by Mustafa Ergen Lecture Notes: John Wawrzynek.
Spring 2005EECS150 - Lec03-FPGA Page 1 EECS150 - Digital Design Lecture 3 - Field Programmable Gate Arrays (FPGAs) January 25, 2005 John Wawrzynek.
ENGIN112 L38: Programmable Logic December 5, 2003 ENGIN 112 Intro to Electrical and Computer Engineering Lecture 38 Programmable Logic.
02/02/20091 Logic devices can be classified into two broad categories Fixed Programmable Programmable Logic Device Introduction Lecture Notes – Lab 2.
The Spartan 3e FPGA. CS/EE 3710 The Spartan 3e FPGA  What’s inside the chip? How does it implement random logic? What other features can you use?  What.
Spring 2002EECS150 - Lec02-CMOS Page 1 EECS150 - Digital Design Lecture 2 - CMOS January 24, 2002 John Wawrzynek.
Evolution of implementation technologies
Programmable logic and FPGA
1/31/20081 Logic devices can be classified into two broad categories Fixed Programmable Programmable Logic Device Introduction Lecture Notes – Lab 2.
Introduction to Field Programmable Gate Arrays (FPGAs) COE 203 Digital Logic Laboratory Dr. Aiman El-Maleh College of Computer Sciences and Engineering.
Multiplexers, Decoders, and Programmable Logic Devices
February 4, 2002 John Wawrzynek
Lecture 3 1 ECE 412: Microcomputer Laboratory Lecture 3: Introduction to FPGAs.
CS 151 Digital Systems Design Lecture 38 Programmable Logic.
General FPGA Architecture Field Programmable Gate Array.
EE 261 – Introduction to Logic Circuits Module #8 Page 1 EE 261 – Introduction to Logic Circuits Module #8 – Programmable Logic & Memory Topics A.Programmable.
EKT303/4 PRINCIPLES OF PRINCIPLES OF COMPUTER ARCHITECTURE (PoCA)
EE4OI4 Engineering Design Programmable Logic Technology.
Unit 9 Multiplexers, Decoders, and Programmable Logic Devices
System Arch 2008 (Fire Tom Wada) /10/9 Field Programmable Gate Array.
J. Christiansen, CERN - EP/MIC
CS 152 L03 FPGA (1)Patterson Fall 2003 © UCB Dave Patterson ( www-inst.eecs.berkeley.edu/~cs152/ CS152 – Computer.
FPGA (Field Programmable Gate Array): CLBs, Slices, and LUTs Each configurable logic block (CLB) in Spartan-6 FPGAs consists of two slices, arranged side-by-side.
Programmable Logic Devices
SEQUENTIAL CIRCUITS Component Design and Use. Register with Parallel Load  Register: Group of Flip-Flops  Ex: D Flip-Flops  Holds a Word of Data 
Introduction to FPGA Created & Presented By Ali Masoudi For Advanced Digital Communication Lab (ADC-Lab) At Isfahan University Of technology (IUT) Department.
Field Programmable Gate Arrays (FPGAs) An Enabling Technology.
Basic Sequential Components CT101 – Computing Systems Organization.
Lecture #3 Page 1 ECE 4110–5110 Digital System Design Lecture #3 Agenda 1.FPGA's 2.Lab Setup Announcements 1.HW#2 assigned Due.
EE3A1 Computer Hardware and Digital Design
Registers Page 1. Page 2 What is a Register?  A Register is a collection of flip-flops with some common function or characteristic  Control signals.
EKT303/4 PRINCIPLES OF PRINCIPLES OF COMPUTER ARCHITECTURE (PoCA)
M.Mohajjel. Why? TTM (Time-to-market) Prototyping Reconfigurable and Custom Computing 2Digital System Design.
ESS | FPGA for Dummies | | Maurizio Donna FPGA for Dummies Basic FPGA architecture.
Henry Selvaraj 1 Henry Selvaraj; Henry Selvaraj; Henry Selvaraj; Logic Synthesis EEG 707 Dr Henry Selvaraj Department of Electrical and Computer Engineering.
FPGA-Based System Design: Chapter 1 Copyright  2004 Prentice Hall PTR Moore’s Law n Gordon Moore: co-founder of Intel. n Predicted that number of transistors.
Introduction to Field Programmable Gate Arrays Lecture 1/3 CERN Accelerator School on Digital Signal Processing Sigtuna, Sweden, 31 May – 9 June 2007 Javier.
Digital Logic Design Basics Combinational Circuits Sequential Circuits Pu-Jen Cheng Adapted from the slides prepared by S. Dandamudi for the book, Fundamentals.
Delivered by.. Love Jain p08ec907. Design Styles  Full-custom  Cell-based  Gate array  Programmable logic Field programmable gate array (FPGA)
Introduction to Field Programmable Gate Arrays (FPGAs) EDL Spring 2016 Johns Hopkins University Electrical and Computer Engineering March 2, 2016.
FPGA Technology Overview Carl Lebsack * Some slides are from the “Programmable Logic” lecture slides by Dr. Morris Chang.
Programmable Logic Devices
Introduction to the FPGA and Labs
Introduction to ASICs ASIC - Application Specific Integrated Circuit
Programmable Logic Devices
Sequential Programmable Devices
Sequential Logic Design
Topics SRAM-based FPGA fabrics: Xilinx. Altera..
Electronics for Physicists
Programmable Logic Devices: CPLDs and FPGAs with VHDL Design
EECS Components and Design Techniques for Digital Systems Lec 03 – Field Programmable Gate Arrays David Culler Electrical Engineering and.
Field Programmable Gate Array
Field Programmable Gate Array
Field Programmable Gate Array
The Xilinx Virtex Series FPGA
The Xilinx Virtex Series FPGA
Electronics for Physicists
Digital Circuits and Logic
Implementing Logic Gates and Circuits
Programmable logic and FPGA
Presentation transcript:

1 EECS Components and Design Techniques for Digital Systems Lec 03 – Field Programmable Gate Arrays (an overview) David Culler Electrical Engineering and Computer Sciences University of California, Berkeley

2 Review Building blocks of computer systems –ICs (Chips), PCBs, Chassis, Cables & Connectors CMOS Transistors –Voltage controlled switches –Complementary forms (nmos, pmos) Logic gates from CMOS transistors –Logic gates implement particular boolean functions »N inputs, 1 output –Serial and parallel switches –Dual structure –P-type “pull up” transmit 1 –N-type Complex gates: mux Synchronous Sequential Elements –D FlipFlops

3 D-type edge-triggered flip-flop The edge of the clock is used to sample the "D" input & send it to "Q” (positive edge triggering). –At all other times the output Q is independent of the input D (just stores previously sampled value). –The input must be stable for a short time before the clock edge.

4 Parallel to Serial Converter Example 4-bit version: Operation: –cycle 1: load x, output x 0 –cycle i: output x i if LD=1 load FF from x i else from previous stage. Each stage: LD=1 x3x2x1x0 LD=0 ??x3x2x1?? x3x2?? x3

5 Parallel to Serial Converter Example timing:

6 Transistor-level Logic Circuits - Latch Positive Level-sensitive latch Transistor Level Positive Edge-triggered flip-flop built from two level-sensitive latches: clk’ clk clk’ D FlipFlop

7 Positive Edge-triggered Flip-flop Flip-flop built from two latches: When clk low, left latch acts as feedthrough, and Q is stored value of right latch. When clk high left latch stores values and right latch acts as feedthrough.

8 Outline Review What are FPGAs? Why use FPGAs (a short history lesson). FPGA variations Internal logic blocks. Designing with FPGAs. Specifics of Xilinx Virtex-E series. Today’s reading Katz: 9.4 pp (especially 9.4.4) XILINX Virtex-E FPGA data sheet (first 10 pages)

9 FPGA Overview Basic idea: two-dimensional array of logic blocks and flip- flops with a means for the user to configure: 1. the interconnection between the logic blocks, 2. the function of each block. Simplified version of FPGA internal architecture:

10 Why FPGAs? By the early 1980’s most of the logic circuits in typical systems where absorbed by a handful of standard large scale integrated circuits (LSI). –Microprocessors, bus/IO controllers, system timers,... Every system still had the need for random “glue logic” to help connect the large ICs: –generating global control signals (for resets etc.) –data formatting (serial to parallel, multiplexing, etc.) Systems had a few LSI components and lots of small low density SSI (small scale IC) and MSI (medium scale IC) components.

11 Why FPGAs? Custom ICs sometimes designed to replace the large amount of glue logic: –reduced system complexity and manufacturing cost, improved performance. –However, custom ICs are relatively very expensive to develop, and delay introduction of product to market (time to market) because of increased design time. Note: need to worry about two kinds of costs: 1. cost of development, sometimes called non-recurring engineering (NRE) 2. cost of manufacture –A tradeoff usually exists between NRE cost and manufacturing costs

12 Why FPGAs? Custom IC approach only viable for products –very high volume (where NRE could be amortized), –not time to market sensitive. FPGAs introduced as an alternative to custom ICs for implementing glue logic: –improved density relative to discrete SSI/MSI components (within around 10x of custom ICs) –with the aid of computer aided design (CAD) tools circuits could be implemented in a short amount of time (no physical layout process, no mask making, no IC manufacturing), relative to ASICs. »lowers NREs »shortens TTM Because of Moore’s law the density (gates/area) of FPGAs continued to grow through the 80’s and 90’s to the point where major data processing functions can be implemented on a single FPGA.

13 Why FPGAs? FPGAs continue to compete with custom ICs for special processing functions (and glue logic) but now also compete with microprocessors in dedicated and embedded applications. –Performance advantage over microprocessors because circuits can be customized for the task at hand. Microprocessors must provide special functions in software (many cycles). Summary: ASIC = custom IC, MICRO = microprocessor

14 FPGA Variations Families of FPGA’s differ in: –physical means of implementing user programmability, –arrangement of interconnection wires, and –the basic functionality of the logic blocks. Most significant difference is in the method for providing flexible blocks and connections: Anti-fuse based (ex: Actel) +Non-volatile, relatively small –fixed (non-reprogrammable)

15 User Programmability Latches are used to: 1. make or break cross-point connections in the interconnect 2. define the function of the logic blocks 3. set user options: »within the logic blocks »in the input/output blocks »global reset/clock “Configuration bit stream” can be loaded under user control: –All latches are strung together in a shift chain: Latch-based (Xilinx, Altera, …) +reconfigurable –volatile –relatively large.

16 Idealized FPGA Logic Block 4-input look up table (LUT) –implements combinational logic functions Register –optionally stores output of LUT

17 Announcements Homework #1 due Friday 2pm. (#2 out thurs) Please do the reading (the earlier the better). Attend discussions! Homework is an important part of the class: –It goes beyond what is covered in class. –High correlation to exam questions. –Work on it seriously. –We’ll try to post it early. –Discussion is a good place to get hints about homework. Unlike some of our lower division classes we will not necessarily tell you everything you need to know. Some of it will come from readings and homework.

18 LUT as general logic gate An n-lut as a direct implementation of a function truth-table. Each latch location holds the value of the function corresponding to one input combination. Example: 4-lut Example: 2-lut Implements any function of 2 inputs. How many of these are there? How many functions of n inputs?

19 Boolean Functions: 1 variable What are the possible boolean functions of two variable? AFalseAATrue AFalse0 10A01A AA0110AA0110 ATRUE 011

20 Interactive Quiz: Boolean Functions of 2 variables? What are the possible boolean functions of 3, 4 variables? A BFalse ??ABATrue … … … … 1

21 How could you build a generic boolean logic circuit? 1-bit memory to hold boolean value Address is vector of boolean input values Contents encode a boolean function Read out logical value (col) for associated row memory N-bit address word 2 N words

22 4-LUT Implementation n-bit LUT is implemented as a 2 n x 1 memory: –inputs choose one of 2 n memory locations. –memory locations (latches) are normally loaded with values from user’s configuration bit stream. –Inputs to mux control are the CLB inputs. Result is a general purpose “logic gate”. –n-LUT can implement any function of n inputs!

23 FPGA Generic Design Flow Design Entry: –Create your design files using: » schematic editor or »hardware description language (Verilog, VHDL) Design “implementation” on FPGA: –Partition, place, and route to create bit-stream file Design verification: –Use Simulator to check function, –other software determines max clock frequency. –Load onto FPGA device (cable connects PC to development board) »check operation at full speed in real environment.

24 Example Partition, Placement, and Route Example Circuit: –collection of gates and flip-flops Idealized FPGA structure: Circuit combinational logic must be “covered” by 4-input 1-output “gates”. Flip-flops from circuit must map to FPGA flip-flops. (Best to preserve “closeness” to CL to minimize wiring.) Placement in general attempts to minimize wiring.

25 Xilinx Virtex-E Floorplan Block RAM 4096 bits each every 12 CLB columns Input/Output Blocks combinational, latch, and flipflop output sampled inputs Configurable Logic Blocks 4-input function gens buffers flipflop

26 Virtex-E Configurable Logic Block (CLB) CLB = 4 logic cells (LC) in two slices LC: 4-input function generator, carry logic, storage ele’t 80 x 120 CLB array on 2000E 16x1 synchronous RAM FF or latch

27 Details of Virtex-E Slice LUT 4-input fun 16x1 sram 32x1 or 16x2 in slice 16 bit shift register Storage element D flipflip latch Combinational outputs 5 and 6 input functions Carry chain arithmetic along row or col

28 Xilinx FPGAs (interconnect detail)

29 Virtex-E Input/Output block (IOB) detail Many I/O signaling stds D FF or latch 3-state output buf

30 Virtex-E Family of Parts

31 Xilinx FPGAs How they differ from idealized array: –In addition to their use as general logic “gates”, LUTs can alternatively be used as general purpose RAM. »Each 4-lut can become a 16x1-bit RAM array. –Special circuitry to speed up “ripple carry” in adders and counters. »Therefore adders assembled by the CAD tools operate much faster than adders built from gates and luts alone. –Many more wires, including tri-state capabilities.

32 Summary Logic design process influenced by available technology AND economic drivers –Volume, Time to Market, Costs, Power Fundamental understanding of digital design techniques carry over –Specifics on design trade-offs and implementation differ FPGA offer a valuable new sweet spot –Low TTM, medium cost, tremendous flexibility Fundamentally tied to powerful CAD tools Build everything (simple or complex) from one set of building blocks –LUTs + FF + routing + storage + IOs