Real time DSP Professors: Eng. Julian Bruno Eng. Mariano Llamedo Soria.

25
Real time DSP Professors: Eng. Julian Bruno Eng. Mariano Llamedo Soria

Transcript of Real time DSP Professors: Eng. Julian Bruno Eng. Mariano Llamedo Soria.

Page 1: Real time DSP Professors: Eng. Julian Bruno Eng. Mariano Llamedo Soria.

Real time DSP

Professors: Eng. Julian Bruno Eng. Mariano Llamedo Soria

Page 2: Real time DSP Professors: Eng. Julian Bruno Eng. Mariano Llamedo Soria.

Introduction

Why Digital? A brief comparison with analog.

Page 3: Real time DSP Professors: Eng. Julian Bruno Eng. Mariano Llamedo Soria.

Recommended bibliography

RG Lyons, Understanding Digital Signal Processing. Prentice Hall 1997. Ch2: Periodic Sampling

SW Smith, The Scientist and Engineer’s guide to DSP. California Tech. Pub. 1997. Ch1: The Breadth and Depth of DSP Ch3: ADC and DAC

NOTE: Many images used in this presentation were extracted from the

recommended bibliography.

Page 4: Real time DSP Professors: Eng. Julian Bruno Eng. Mariano Llamedo Soria.

Advantages

Flexibility. Easily modifiable and upgradeable.

Reproducibility. Don’t depend on components tolerance. Exactly reproduced from one unit to other.

Reliability. No age or environmental drift. Complexity. Allows sophisticated

applications in only one chip.

Page 5: Real time DSP Professors: Eng. Julian Bruno Eng. Mariano Llamedo Soria.

The BIG picture

Real time algorithms

Results FAST!

Page 6: Real time DSP Professors: Eng. Julian Bruno Eng. Mariano Llamedo Soria.

Sampling signals: A very important first step.

Page 7: Real time DSP Professors: Eng. Julian Bruno Eng. Mariano Llamedo Soria.

Sampling continuous signals (CT)

Page 8: Real time DSP Professors: Eng. Julian Bruno Eng. Mariano Llamedo Soria.

Aliasing and frequency ambiguity

Page 9: Real time DSP Professors: Eng. Julian Bruno Eng. Mariano Llamedo Soria.

Sampling band-pass signals

for any positive integer m, where fs≥2B is accomplished.

Page 10: Real time DSP Professors: Eng. Julian Bruno Eng. Mariano Llamedo Soria.

DSP hardware

Page 11: Real time DSP Professors: Eng. Julian Bruno Eng. Mariano Llamedo Soria.

What can we do with a DSP?

Almost any linear and nonlinear system (PID controller).

Digital filters (FIR-IIR). Adaptive systems (LMS algorithm). Modulators and demodulators. Any mathematical intensive algorithm

(FFT-DCT-WT).

Page 12: Real time DSP Professors: Eng. Julian Bruno Eng. Mariano Llamedo Soria.

Real time constraints

Algorithms time (tA) MUST fit between two consecutive sampling periods (tS).

Thus tA limits the maximum frequency that a system can work.

The definition of real time is VERY application dependant (faster speed of evolution of the system).

Page 13: Real time DSP Professors: Eng. Julian Bruno Eng. Mariano Llamedo Soria.

Linear systems implementation

Being x(n) and h(n) are arrays of numbers. If we want to compute y(n) we have to multiply and sum the last M samples, being M the length of h(n). This repeated for every new sample received from de ADC.

As you can see, any linear system uses multiplications, accumulations (sums), and loops intensively.

Page 14: Real time DSP Professors: Eng. Julian Bruno Eng. Mariano Llamedo Soria.

Fast Fourier transform FFT

Page 15: Real time DSP Professors: Eng. Julian Bruno Eng. Mariano Llamedo Soria.

Summary of desirable features of a DSP

Fast in mathematics operations, and combinations of them (multiply and sum specially).

Flexible addressing modes (bit reversal, circular buffers, zero overhead loops)

DSP specific instruction set (arithmetic shifting, saturating arithmetic, rounding, normalization)

Minimum overhead peripherals (communications devices specially)

Application specific DSP instructions (Video, Control, Audio)

Page 16: Real time DSP Professors: Eng. Julian Bruno Eng. Mariano Llamedo Soria.

So, those are DSP math features Multiply and Accumulators

(MAC’s) units. ALU’s (fixed and floating

point). Barrel shifters. Depending on DSP

application, more than one unit are present in modern DSP’s, allowing parallelism.

Harvard (modified) architecture provide multiple operations per cycle.

Page 17: Real time DSP Professors: Eng. Julian Bruno Eng. Mariano Llamedo Soria.

Another important features RISC like registers and

instruction set Multiple data/program

buses. Address generator

units for flexible addressing and efficient looping.

DMA controller for handling peripherals.

Page 18: Real time DSP Professors: Eng. Julian Bruno Eng. Mariano Llamedo Soria.

DSP clasification

Fixed or floating point arithmetic. Million Integer operations Per Second

MIPS or MFLOPS. Application specific features (video, audio,

control, communications). Memory

Page 19: Real time DSP Professors: Eng. Julian Bruno Eng. Mariano Llamedo Soria.

Why DSP hardware?

1. General purpose microprocessors and microcontrollers (µP)

2. General purpose digital signal processors (DSP chips)

3. Digital building blocs (DBB) such as multiplier, adder, program controller

4. Special purpose (custom) devices such as application specific integrated circuits (ASIC)

Page 20: Real time DSP Professors: Eng. Julian Bruno Eng. Mariano Llamedo Soria.

Analog Devices ADSP-2181

Page 21: Real time DSP Professors: Eng. Julian Bruno Eng. Mariano Llamedo Soria.

Analog Devices BF535

Page 22: Real time DSP Professors: Eng. Julian Bruno Eng. Mariano Llamedo Soria.

Analog devices SHARC

Page 23: Real time DSP Professors: Eng. Julian Bruno Eng. Mariano Llamedo Soria.

Analog devices Tiger SHARC

Page 24: Real time DSP Professors: Eng. Julian Bruno Eng. Mariano Llamedo Soria.

Application vs. target market

Page 25: Real time DSP Professors: Eng. Julian Bruno Eng. Mariano Llamedo Soria.

Blackfin Road map