Top Banner
Introduction to FPGA and DSPs Joe College, Chris Doyle, Ann Marie Rynning
50

Introduction to FPGA and DSPs Joe College, Chris Doyle, Ann Marie Rynning.

Dec 22, 2015

Download

Documents

Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: Introduction to FPGA and DSPs Joe College, Chris Doyle, Ann Marie Rynning.

Introduction to FPGA and DSPs

Joe College, Chris Doyle,

Ann Marie Rynning

Page 2: Introduction to FPGA and DSPs Joe College, Chris Doyle, Ann Marie Rynning.

Field Programmable Gate Arrays

Page 3: Introduction to FPGA and DSPs Joe College, Chris Doyle, Ann Marie Rynning.

3

Architecture

Logic Block

Interconnection

Input/Output

Switch Box

Connect Block

Page 4: Introduction to FPGA and DSPs Joe College, Chris Doyle, Ann Marie Rynning.

4

Architecture

Logic Block

Interconnection

Input/Output

Switch Box

Connect Block

• Logic Block Options– Transistor pairs– Basic small gates (such

as two-input NAND’s or exclusive-OR’ s)

– Multiplexers– Look-up tables (LUT’s)– Wide-fanin AND-OR

structures

• Granularity

Page 5: Introduction to FPGA and DSPs Joe College, Chris Doyle, Ann Marie Rynning.

5

Architecture

Logic Block

Interconnection

Input/Output

Switch Box

Connect Block

Altera’s Stratix II ALM

Page 6: Introduction to FPGA and DSPs Joe College, Chris Doyle, Ann Marie Rynning.

6

Architecture

Logic Block

Interconnection

Input/Output

Switch Box

Connect Block

Xilink’s Virtex 4

Page 7: Introduction to FPGA and DSPs Joe College, Chris Doyle, Ann Marie Rynning.

7

Architecture

• Routing Options– From nearest neighbor

mesh to much more complex, like that in multiplexers

– Wire segments of varying lengths

• Delay Considerations• Density Considerations

Logic Block

Interconnection

Input/Output

Switch Box

Connect Block

Page 8: Introduction to FPGA and DSPs Joe College, Chris Doyle, Ann Marie Rynning.

8

Architecture

Logic Block

Interconnection

Input/Output

Switch Box

Connect Block

• Provide programmable multiplexers signals

• Connect shorter local wires to longer-distance routing resources

Page 9: Introduction to FPGA and DSPs Joe College, Chris Doyle, Ann Marie Rynning.

9

Architecture

Logic Block

Interconnection

Input/Output

Switch Box

Connect Block

• Used to change the direction of a signal

Page 10: Introduction to FPGA and DSPs Joe College, Chris Doyle, Ann Marie Rynning.

10

Programmable Switch Technology

• SRAM

• Antifuse

• EPROMSRAM

CellSRAM

Cell

0 1

MUX0 or 1

Control Pass Gate

Multiplexer

Page 11: Introduction to FPGA and DSPs Joe College, Chris Doyle, Ann Marie Rynning.

11

Programmable Switch Technology

• SRAM

• Antifuse

• EPROM

Disadvantages

Advantages

Volatile

External Permanent Memory Required

Large Area Required

Reprogrammable, easily and quickly

Requires only standard integrated circuit process technology (as opposed to Antifuse)

Page 12: Introduction to FPGA and DSPs Joe College, Chris Doyle, Ann Marie Rynning.

12

Programmable Switch Technology

• SRAM

• Antifuse

• EPROM

0

1

Page 13: Introduction to FPGA and DSPs Joe College, Chris Doyle, Ann Marie Rynning.

13

Programmable Switch Technology

• SRAM

• Antifuse

• EPROM

Disadvantages

Advantages

Not reprogrammable; links made are permanent

Requires extra circuitry to deliverthe high programming voltage

Small size

Relatively low series resistance

Low parasitic capacitance

Page 14: Introduction to FPGA and DSPs Joe College, Chris Doyle, Ann Marie Rynning.

14

Programmable Switch Technology

• SRAM

• Antifuse

• EPROM

Control Gate

Floating Gate

Bit

Line

Word Line

Drain Source

Oxide Layer

Control Gate

Floating Gate

Bit

Line

Word Line

Drain Source

Oxide Layer

1

0

- -

- - - - - - -

Page 15: Introduction to FPGA and DSPs Joe College, Chris Doyle, Ann Marie Rynning.

15

Programmable Switch Technology

• SRAM

• Antifuse

• EPROM

Disadvantages

Advantages

High resistance of EPROM transistors

High static power consumption

UV light exposure needed to reprogram

No external memory required; retains memory even without power

Reprogrammable

Page 16: Introduction to FPGA and DSPs Joe College, Chris Doyle, Ann Marie Rynning.

21

FPGA ProducersMajor Producers

Smaller Producers (specialty)

Page 17: Introduction to FPGA and DSPs Joe College, Chris Doyle, Ann Marie Rynning.

Digital Signal Processors

Page 18: Introduction to FPGA and DSPs Joe College, Chris Doyle, Ann Marie Rynning.

23

Brief History of DSPs

IntelAMI

Bell Labs

NEC and AT&T

TI, Motorola, A

nalog

1978 1979 1980 Today

Page 19: Introduction to FPGA and DSPs Joe College, Chris Doyle, Ann Marie Rynning.

25

Analog Blackfin

• DSP

• RISC MCU

• Dual core

• Clock control

Page 20: Introduction to FPGA and DSPs Joe College, Chris Doyle, Ann Marie Rynning.

26

Analog Blackfin

• Fast MAC• Parallelism• Pipelines• Close/fast

storage• Multiple

memories• High-bandwidth

buses• External

interface

Page 21: Introduction to FPGA and DSPs Joe College, Chris Doyle, Ann Marie Rynning.

27

Analog Blackfin

• Fast MAC• Parallelism• Pipelines• Close/fast

storage• Multiple

memories• High-bandwidth

buses• External

interface

Page 22: Introduction to FPGA and DSPs Joe College, Chris Doyle, Ann Marie Rynning.

28

Analog Blackfin

• Fast MAC• Parallelism• Pipelines• Close/fast

storage• Multiple

memories• High-bandwidth

buses• External

interface

Page 23: Introduction to FPGA and DSPs Joe College, Chris Doyle, Ann Marie Rynning.

29

Analog Blackfin

• Fast MAC• Parallelism• Pipelines• Close/fast

storage• Multiple

memories• High-bandwidth

buses• External

interface

Page 24: Introduction to FPGA and DSPs Joe College, Chris Doyle, Ann Marie Rynning.

30

Analog Blackfin

• Fast MAC• Parallelism• Pipelines• Close/fast

storage• Multiple

memories• High-bandwidth

buses• External

interface

Page 25: Introduction to FPGA and DSPs Joe College, Chris Doyle, Ann Marie Rynning.

31

Analog Blackfin

• Fast MAC• Parallelism• Pipelines• Close/fast

storage• Multiple

memories• High-bandwidth

buses• External

interface

Page 26: Introduction to FPGA and DSPs Joe College, Chris Doyle, Ann Marie Rynning.

32

Analog Blackfin

• Fast MAC• Parallelism• Pipelines• Close/fast

storage• Multiple

memories• High-bandwidth

buses• External

interface

Page 27: Introduction to FPGA and DSPs Joe College, Chris Doyle, Ann Marie Rynning.

33

Analog Blackfin

• Fast MAC• Parallelism• Pipelines• Close/fast

storage• Multiple

memories• High-bandwidth

buses• External

interface

Page 28: Introduction to FPGA and DSPs Joe College, Chris Doyle, Ann Marie Rynning.

34

Analog Blackfin

• DSP

• RISC MCU

• Dual core

• Clock control

Page 29: Introduction to FPGA and DSPs Joe College, Chris Doyle, Ann Marie Rynning.

35

Analog Blackfin

• DSP

• RISC MCU

• Dual core

• Clock control

Page 30: Introduction to FPGA and DSPs Joe College, Chris Doyle, Ann Marie Rynning.

36

Analog Blackfin

Page 31: Introduction to FPGA and DSPs Joe College, Chris Doyle, Ann Marie Rynning.

37

Analog Blackfin

• DSP

• RISC MCU

• Dual core

• Clock control

Page 32: Introduction to FPGA and DSPs Joe College, Chris Doyle, Ann Marie Rynning.

38

Analog Blackfin

Page 33: Introduction to FPGA and DSPs Joe College, Chris Doyle, Ann Marie Rynning.

42

ASIC vs. µP vs. Reconfigurable

• Application Specific Integrated Circuit– Designed to perform a specific computation– Circuit cannot be altered after fabrication

• Software Programmed Microprocessors– Modification with software– Slower than ASICs

• Reconfigurable Computing– FPGAs and DSPs– Easily modifiable– Larger Area

Page 34: Introduction to FPGA and DSPs Joe College, Chris Doyle, Ann Marie Rynning.

43

Comparison

• Virtex-4 FPGA• Xilinx• 500 MHz Processor• 18-Bit MACS• 48-Bit Accumulator• Up to 1392K Bytes of

On-Chip Memory• Brand-New

• Blackfin DSP• Analog Devices• 600 MHz Processor• Two 16-Bit MACS• 40-Bit Accumulator• 308K Bytes of On-

Chip Memory• Somewhat Older

Page 35: Introduction to FPGA and DSPs Joe College, Chris Doyle, Ann Marie Rynning.

44

Comparison Criteria

• Performance – MIPS, MMACS, MHz

• Price

• Development Tools

• Supply Voltage

• Implementation Time

• Flexibility

• Most Importantly: Comfort Level

Page 36: Introduction to FPGA and DSPs Joe College, Chris Doyle, Ann Marie Rynning.

45

FPGA: Virtex-4 DSP Slice

Page 37: Introduction to FPGA and DSPs Joe College, Chris Doyle, Ann Marie Rynning.

46

FPGA: Virtex-4 DSP Slice

Page 38: Introduction to FPGA and DSPs Joe College, Chris Doyle, Ann Marie Rynning.

47

DSP: Blackfin Processor Core

Page 39: Introduction to FPGA and DSPs Joe College, Chris Doyle, Ann Marie Rynning.

48

DSP: Blackfin Processor Core

Page 40: Introduction to FPGA and DSPs Joe College, Chris Doyle, Ann Marie Rynning.

49

DSP: Blackfin Processor Core

Page 41: Introduction to FPGA and DSPs Joe College, Chris Doyle, Ann Marie Rynning.

50

How to Use and Program an FPGA

• Write HDL code

• Generate Netlist

• Place and Route

• Generate Binary File

• Power On FPGA

• Configure FPGA

• Verilog

• VHDL (Very High Speed Integrated Circuit Hardware Description Language)

Page 42: Introduction to FPGA and DSPs Joe College, Chris Doyle, Ann Marie Rynning.

51

How to Use and Program an FPGA

• Write HDL code

• Generate Netlist

• Place and Route

• Generate Binary File

• Power On FPGA

• Configure FPGA

• Lists components that are connected to each other

• Lists connections between components, power, and ground

Page 43: Introduction to FPGA and DSPs Joe College, Chris Doyle, Ann Marie Rynning.

52

How to Use and Program an FPGA

• Write HDL code

• Generate Netlist

• Place and Route

• Generate Binary File

• Power On FPGA

• Configure FPGA

• Often performed by the FPGA company's proprietary software

• Determines which logic blocks to use for each part of the program, to optimize

• User validates

Page 44: Introduction to FPGA and DSPs Joe College, Chris Doyle, Ann Marie Rynning.

53

How to Use and Program an FPGA

• Write HDL code

• Generate Netlist

• Place and Route

• Generate Binary File

• Power On FPGA

• Configure FPGA

• Often performed by the FPGA company's proprietary software

Page 45: Introduction to FPGA and DSPs Joe College, Chris Doyle, Ann Marie Rynning.

54

How to Use and Program an FPGA

• Write HDL code

• Generate Netlist

• Place and Route

• Generate Binary File

• Power On FPGA

• Configure FPGA

• FPGA is initially in configuration mode

Page 46: Introduction to FPGA and DSPs Joe College, Chris Doyle, Ann Marie Rynning.

55

How to Use and Program an FPGA

• Write HDL code

• Generate Netlist

• Place and Route

• Generate Binary File

• Power On FPGA

• Configure FPGA

• Cable from your PC to the FPGA• Use a microcontroller on your board• Use a "boot-PROM" on your board, connected to the FPGA

Page 47: Introduction to FPGA and DSPs Joe College, Chris Doyle, Ann Marie Rynning.

56

Using DSPs

• C/C++/Assembly

• Lots of development environments

• Documentation– Interfacing– Common operations– Porting

Page 48: Introduction to FPGA and DSPs Joe College, Chris Doyle, Ann Marie Rynning.

57

Using DSPs

• C++/Assembly

• Lots of development environments

• Documentation– Interfacing– Common operations– Porting

Page 49: Introduction to FPGA and DSPs Joe College, Chris Doyle, Ann Marie Rynning.

58

Using DSPs

• C++/Assembly

• Lots of development environments

• Documentation– Interfacing– Common operations– Porting

Page 50: Introduction to FPGA and DSPs Joe College, Chris Doyle, Ann Marie Rynning.

59

Comparison Chart

Virtex-4 Blackfin

Performance 500 MHz 350 MHz

Price $495 $350

Development HDL C++/ASM

Voltage 1-1.6V 1-1.2V

Implement Time Higher Lower

Flexibility Higher Lower