51
UNIT-5 INTRODUCTION DIGITAL SIGNAL PROCESSORS AND ITS APPLICATION DSP/ISP division School of Electronics Engineering VIT University Vellore -632 014 DSP DIVISION 1 DSP PROCESSOR

UNIT 5(DSP Processor)

Embed Size (px)

Citation preview

Page 1: UNIT 5(DSP Processor)

UNIT-5

INTRODUCTION DIGITAL SIGNAL

PROCESSORS AND ITS

APPLICATION

DSP/ISP division

School of Electronics Engineering

VIT University

Vellore -632 014

DSP DIVISION 1DSP PROCESSOR

Page 2: UNIT 5(DSP Processor)

OBJECTIVE

• Understand the DSP Architecture, fixed and

floating point processor differences

• Able to understand how pipelining and

parallelism supports in the DSP Architecture.

• Know how to implement convolution,

correlation, DFT & Filter design using Texas

instruments DSP processor.

DSP DIVISION DSP PROCESSOR 2

Page 3: UNIT 5(DSP Processor)

Introduction

• DSP processors can be divided into two

broad categories:» General Purpose

» Special Purpose

• Further DSP processors include » Fixed point devices

» Floating point devices

DSP DIVISION 3DSP PROCESSOR

Page 4: UNIT 5(DSP Processor)

Examples of Fixed and Floating• Low End Fixed Point

– TMS320C2XX, ADSP21XX, Motorola (DSP56XXX)

• High End Fixed Point

– TMS320C55XX, DSP16XXX,

– ADSP215XX, DSP56800

• Floating Point

– TMS320C3X, C67XX, ADSP210XX(SHARC processor), DSP96000, DSP32XX

DSP DIVISION 4DSP PROCESSOR

Page 5: UNIT 5(DSP Processor)

Fixed Point Vs Floating Point– fixed point processor are :

• cheaper

• smaller

• less power consuming

• Harder to program

– Watch for errors: truncation, overflow, rounding

• Limited dynamic range

• Used in 95% of consumer products

– floating point processors• have larger accuracy

• are much easier to program

• can access larger memory

DSP DIVISION 5DSP PROCESSOR

Page 6: UNIT 5(DSP Processor)

Fixed Point Vs Floating Point

Floating Point Fixed Point

Applications

•Modems

•Digital Subscriber Line (DSL)

•Wireless Basestations

•Central Office Switches

•Private Branch Exchange (PBX)

•Digital Imaging

•3D Graphics

•Speech Recognition

•Voice over IP

Applications

•Portable Products

•2G, 2.5G and 3G Cell Phones

•Digital Audio Players

•Digital Still Cameras

•Electronic Books

•Voice Recognition

•GPS Receivers

•Headsets

•Biometrics

•Fingerprint Recognition

DSP DIVISION 6DSP PROCESSOR

Page 7: UNIT 5(DSP Processor)

Special purpose hardware

• Hardware designed for efficient execution of specific DSP algorithms such as digital filter, FFT. [ Algorithm-specific digital signal processor]

• Hardware designed for specific application, for example telecommunications, digital audio, or control applications.[ Application -specific digital signal processor]

DSP DIVISION 7DSP PROCESSOR

Page 8: UNIT 5(DSP Processor)

Computer Architecture for Signal

Processing

Techniques

• Harvard Architecture

• Pipelining

• Fast, dedicated hardware multiplier/Accumulator

• Special instruction dedicated to DSP

• Replication

• On-chip memory/cache

• Extended parallelism- SIMD, VLIW and static

superscalar processing DSP DIVISION 8DSP PROCESSOR

Page 9: UNIT 5(DSP Processor)

DSP DIVISION 9DSP PROCESSOR

Page 10: UNIT 5(DSP Processor)

X data bus

Y data bus

Z data bus

I/O

devices Shifter

ALU Multiplier

Accumulator

X data

memory

Y data

memory

Program

memory

Memory units

Basic generic hardware architecture for signal processing

DSP DIVISION 10DSP PROCESSOR

Page 11: UNIT 5(DSP Processor)

Harvard

Architecture

DSP DIVISION 11DSP PROCESSOR

Page 12: UNIT 5(DSP Processor)

Hardware Multiply and

accumulate

DSP DIVISION 12DSP PROCESSOR

Page 13: UNIT 5(DSP Processor)

DSP DIVISION 13DSP PROCESSOR

Page 14: UNIT 5(DSP Processor)

DSP DIVISION 14DSP PROCESSOR

Page 15: UNIT 5(DSP Processor)

Pipelining

• A technique which allows two or more

operations to overlap during execution.

• It is used extensively in DSP to increase speed.

• The simultaneous functions going on are:

• instruction fetch

• instruction decode

• instruction execution

DSP DIVISION 15DSP PROCESSOR

Page 16: UNIT 5(DSP Processor)

Stages of pipelining

DSP DIVISION 16DSP PROCESSOR

Page 17: UNIT 5(DSP Processor)

• In a Harvard architecture (DSP processor with pipelining) :

• The program instructions and data lie in separate memory spaces.

• Due to this the fetching of the next instruction can overlap the execution of the current instruction.

• Each of the step is known as pipeline stage

DSP DIVISION 17DSP PROCESSOR

Page 18: UNIT 5(DSP Processor)

REGISTERS

• In TMS320 number of registers are used to achieve pipelining.

• Pre-fetch counter: holds the address of the next instruction to be fetched.

• Instruction register: holds the instruction to be executed.

• Queue instruction register: stores the instruction to be executed if the current is still in process of execution.

• Program counter: contains the address of the next instruction to be executed

DSP DIVISION 18DSP PROCESSOR

Page 19: UNIT 5(DSP Processor)

•Throughput is determined by the number of

instructions through the pipe per unit time.

•In a perfect pipeline the average time per

instruction is given by( Hennesy and

Patterson,1990)

time per instruction(non-pipeline)

number of pipe stages

Average instruction time (nonpipeline)

•Speedup=

Average instruction time (pipeline)

Parameters used in pipelining

DSP DIVISION 19DSP PROCESSOR

Page 20: UNIT 5(DSP Processor)

ADVANTAGESThe cycle time of the processor is reduced, thus increasing

instruction bandwidth in most cases.

DISADVANTAGESThe design is complex due to addition of extra flip flops.

The manufacture cost is high.

The performance of a pipelined processor is much harder

to predict and may vary more widely between different

programs due to unstable instruction bandwidth.

DSP DIVISION 20DSP PROCESSOR

Page 21: UNIT 5(DSP Processor)

Examples (pipelining)• Multiply and accumulate operations typified by the following

equation

• a0x(n)+a1x(n-1)+a2x(n-2)+…..+AN-1x(N-1)

• Non pipeline of the above equation

DSP DIVISION 21DSP PROCESSOR

Page 22: UNIT 5(DSP Processor)

MAC Pipeline operation

DSP DIVISION 22DSP PROCESSOR

Page 23: UNIT 5(DSP Processor)

DSP DIVISION 23DSP PROCESSOR

Page 24: UNIT 5(DSP Processor)

Parallelism

• To achieve increased computational

performance

• Three techniques used to achieve

parallelism are

• SIMD

• VLIW

• Superscalar processing

DSP DIVISION 24DSP PROCESSOR

Page 25: UNIT 5(DSP Processor)

SIMD (Single instruction multiple

data)

• Used to increase number of operation performed per instruction

• Multiple data path and multiple execution unit

• Single instruction may be issued to multiple execution unit to process the block of data simultaneously and in this way number of operation performed in one cycle is increased

DSP DIVISION 25DSP PROCESSOR

Page 26: UNIT 5(DSP Processor)

SIMD

DSP DIVISION 26DSP PROCESSOR

Page 27: UNIT 5(DSP Processor)

DSP DIVISION 27DSP PROCESSOR

Page 28: UNIT 5(DSP Processor)

DSP DIVISION 28DSP PROCESSOR

Page 29: UNIT 5(DSP Processor)

VLIW (Very Long Instruction Word)

• Substantially increasing the number of

instruction that are processed per cycle

• Essentially a concatenation of several

short instruction and require multiple

execution units running in parallel to carry

out the instructions in a single cycle

DSP DIVISION 29DSP PROCESSOR

Page 30: UNIT 5(DSP Processor)

DSP DIVISION 30DSP PROCESSOR

Page 31: UNIT 5(DSP Processor)

Features of VLIW

• The cpu contain two data paths and eight independent

execution units, organized in two sets –(L1,S1,M1,D1)

and (L2,S2,M2,D2)

• Each short instruction is 32 bits wide and eight of these

are linked together to form a very long instruction word

packed which may be executed in parallel.

• VLIW architecture is clearly designed to support

instruction level parallelism, together with fast clock

speeds-200MHz

DSP DIVISION 31DSP PROCESSOR

Page 32: UNIT 5(DSP Processor)

Super scalar processing

• Increasing the instruction rate of a DSP processor (the

number of instruction processed in a cycle) by exploiting

instruction-level parallelism.

• Super scalar- computer architecture that enable multiple

instruction to be executed in one cycles

• It is widely used in general purpose processor such as

power PC, and Pentium processor

• Best known super scalar processor is the Analog

devices Tiger SHARC

DSP DIVISION 32DSP PROCESSOR

Page 33: UNIT 5(DSP Processor)

DSP DIVISION 33DSP PROCESSOR

Page 34: UNIT 5(DSP Processor)

General Purpose Digital Signal

processor

• It is a High speed microprocessor with hardware

architecture

• Instruction sets are optimized for DSP

operations

• Extensive use of parallelism, Harvard

architecture, pipelining and dedicated hardware,

shifting, scaling, multiplication and so on

DSP DIVISION 34DSP PROCESSOR

Page 35: UNIT 5(DSP Processor)

Fixed point Digital Signal Processors

DSP DIVISION 35DSP PROCESSOR

Page 36: UNIT 5(DSP Processor)

DSP DIVISION 36DSP PROCESSOR

Page 37: UNIT 5(DSP Processor)

DSP DIVISION 37DSP PROCESSOR

Page 38: UNIT 5(DSP Processor)

DSP DIVISION 38DSP PROCESSOR

Page 39: UNIT 5(DSP Processor)

DSP DIVISION 39DSP PROCESSOR

Page 40: UNIT 5(DSP Processor)

DSP DIVISION 40DSP PROCESSOR

Page 41: UNIT 5(DSP Processor)

DSP DIVISION 41DSP PROCESSOR

Page 42: UNIT 5(DSP Processor)

DSP DIVISION 42DSP PROCESSOR

Page 43: UNIT 5(DSP Processor)

DSP DIVISION 43DSP PROCESSOR

Page 44: UNIT 5(DSP Processor)

DSP DIVISION 44DSP PROCESSOR

Page 45: UNIT 5(DSP Processor)

Fixed point Digital Signal

processors

DSP DIVISION 45DSP PROCESSOR

Page 46: UNIT 5(DSP Processor)

Floating Point Processors

DSP DIVISION 46DSP PROCESSOR

Page 47: UNIT 5(DSP Processor)

Selecting the Digital Signal

Processor

• Architectural features• Size of on chip memory

• Special Instruction

• I/O capability

• Execution speed• Clock speed of the processor(MHz)

• Number of instruction performed (MIPS) &

(MFLOPS)

DSP DIVISION 47DSP PROCESSOR

Page 48: UNIT 5(DSP Processor)

• Type of Arithmetic

– Fixed point arithmetic

– Floating point arithmetic

• Word Length

– 24 bit word length for audio processing

– Longer data word length lower the error

DSP DIVISION 48DSP PROCESSOR

Page 49: UNIT 5(DSP Processor)

Implementation of DSP algorithm

on general purpose Digital Signal

Processor

• FIR Digital filtering

DSP DIVISION 49DSP PROCESSOR

Page 50: UNIT 5(DSP Processor)

DSP DIVISION 50DSP PROCESSOR

Page 51: UNIT 5(DSP Processor)

DSP DIVISION DSP PROCESSOR 51

References:

1. Emmanuel C.Ifeachor, “ Digital Signal Processing A Practical Approach” 2nd

edition, Pearson Education, 2001.

2. Lawrence R Rabiner and Bernard Gold, “Theory and Application of Digital

Signal Processing” , PHI 1992