Docsity

dsp processor TMSC6713 VLIEW ARCHITECTURE, Summaries of Electronics engineering

Partial preview of the text

Download dsp processor TMSC6713 VLIEW ARCHITECTURE and more Summaries Electronics engineering in PDF only on Docsity!

DIGITAL SIGNAL

PROCESSORS

(DSP)

(Les processeurs de traitement numérique du signal)

Dr. S.E. AZOUG (^) Master 1 – Embedded Systems Electronics – UBBA

Syllabus ■ (^) Description: ▪ (^) Study of the architecture of digital signal processors (DSP) ■ (^) Objectives: ▪ (^) Know the internal architecture of a DSP ▪ (^) Master its development tools (software / hardware) ▪ (^) Master the workflow for implementing a signal- processing algorithm on a DSP

Syllabus ■ (^) Prerequisites: ▪ (^) Microprocessor systems ▪ (^) Digital signal processing (DSP theory) ▪ (^) Programming in assembly language and in C/C++ language ■ (^) Course load: ▪ (^) Lectures: 3h00 / week ▪ (^) Tutorials (TD): 1h30 / week ▪ (^) Lab work (TP): 1h30 / week

Syllabus ■ (^) Recommended books: ▪ (^) R. Chassaing, D. Reay, Digital Signal Processing and Applications with the TMS320C6713 and TMS320C DSK, John Wiley & Sons, 2008 ▪ (^) T.B. Welch, C.H.G. Wright and M.G. Morrow, Real-Time Digital Signal Processing from MATLAB to C with TMS320C6x DSPs, CRC Press, 2012 ▪ (^) N. Kehtarnavaz, N. Kim, Real Time Digital Signal Processing Based on TMS320C6000, Newnes, 2004 ▪ (^) M. Pinard, Les DSP, famille ADSP 218X: Principes et applications (The DSPs, ADSP 218X family: Principles and applications), Dunod, 2000

Syllabus ■ (^) IDE for lab sessions: ▪ (^) Code Composer Studio 5.x (Free): https://goo.gl/zNGdH

  • (^) Ask your class representatives for the installation DVD ■ (^) Online tutorials: ▪ (^) Code Composer Studio 5.x Getting Started – Texas Instruments
  • (^) http://www.ti.com/lit/ug/spru301c/spru301c.pdf ▪ (^) TI tutorial (introductory video): https://goo.gl/bevHZf

Syllabus ■ (^) Other web resources:

▪ http://www.dspguide.com/

▪ https://www.dsprelated.com/

▪ https://www.embeddedrelated.com/

■ (^) Contact:

▪ Dr. Seif Eddine AZOUG

  • (^) Office on the 3rd floor of the electronics laboratories building
  • (^) Office hours: Tuesday 12:30 – 14:00 and Wednesday 12:30 – 14:
  • (^) Department of Electronics, Mohamed El Bachir El Ibrahimi
University, Bordj Bou Arréridj

Outline

■ Digital signal processing (DSP theory)

▪ (^) Introduction ▪ (^) Advantages / disadvantages ▪ (^) Application domains ▪ (^) Main algorithms ▪ (^) Implementation constraints

■ Digital signal processors (DSPs)

▪ (^) Definition ▪ (^) Architecture: MAC unit, Harvard, memories, instruction set ▪ (^) Internal peripherals ▪ (^) History ▪ (^) Different classes ▪ (^) Different families ▪ (^) Existing alternatives

Digital Signal Processing (DSP theory) Question: why go through a digital signal processing system if the system's input and output are purely analog?

Analog

signal

➜ ADC^ ➜

Digital

processing

➜ DAC^ ➜

Analog

signal

ADC = Analog-to-Digital Converter · DAC = Digital-to-Analog Converter

Main Algorithms

Spectral analysis
Discrete filtering
Digital communications

▪ Digital modulations PSK

(Phase Shift Keying)

Image / video processing

▪ DFT (Discrete Fourier Transform)

▪ DHT (Discrete Hartley Transform)

▪ DCT (Discrete Cosine Transform) DWT

▪ DWT (Discrete Wavelet Transform)

  • (^) WHT (Walsh-Hadamard Transform)

Application Domains

Audio and speech
  • (^) Noise reduction
  • (^) echo cancellation
  • (^) mixing
Image and video
  • (^) Processing
  • (^) compression JPEG, MPEG and H. (DCT, DWT)
  • (^) Codecs
  • (^) compression
enhancement,
restoration,
motion
estimation
Radar and sonar
  • (^) Signal generation
  • (^) spectral analysis
Biomedical
  • (^) ECG
(electrocardiogr
am) and EEG
filtering
  • (^) Ultrasound,
  • (^) MRI and CT
reconstruction
Telecommunications
  • (^) Digital
modulation (PSK,
QAM)
  • (^) OFDM (Wi-Fi, 4G,
5G),
  • (^) Equalization
  • (^) Software-defined
radio
Radar / Satellite /
Navigation

SONAR / SAR / GPS

Machine vision &
biometrics
Control

Machines / motors / robots

Implementation Constraints

Application needs

▪ (^) Data stream processing: real-time or not (offline)? ▪ (^) Precision: fixed-point or floating-point? ▪ (^) Sampling: fₛ ≥ 2·fₘₐₓ (Nyquist); ADC speed vs. resolution trade-off ▪ (^) High bandwidth → complex memory management!

Real-time constraints

A system is real-time if the execution time of the processing is shorter than the sampling period (waiting time ≥ 0) Execution time ≤ Tₛ = 1 / fₛ ▪ (^) Cycles available per sample ≈ f_clock / fₛ ( MHz / 8 kHz ≈ 12,500) ▪ (^) Fast, repetitive computation (in a loop) ▪ (^) Minimal output/input latency (depends on fₛ and the application)

Embedded constraints

▪ (^) Low cost / low power / small footprint (mobility) ▪ (^) Towards an architecture dedicated to DSP?

Implementation Constraints: Number Representation

Fixed-point (e.g. 16-bit)

▪ (^) Smaller dynamic range: −32768 …

▪ (^) Overflow risk: 200 × 350 = 70, ▪ (^) Q15 format: integer = x · 2¹⁵, x ∈ [−1, 1[ (0.5 → 16384) ▪ (^) Q15 × Q15 gives Q30: shift right by 15 ▪ (^) Cheaper and smaller, but harder to program

Floating-point (e.g. 32-bit)

▪ (^) Much larger dynamic range, no scaling needed ▪ (^) Easier to program, faster time to market ▪ (^) Higher power consumption, sometimes higher cost ▪ (^) Needed for high precision, wide dynamic range, high SNR

Finite word length effects

▪ (^) Quantization: SNR ≈ 6.02·N + 1.76 dB for an N-bit ADC ▪ (^) Coefficient quantization: IIR poles may leave the unit circle (instability) ▪ (^) Rounding noise and overflow → scaling, saturation

The MAC Unit (Multiply-ACcumulate)

X[k]
Y[k]

× + Accumulator (Acc)

Acc ← Acc + X[k] ·
Y[k]
■ Multiplier and adder are wired in hardware: a full MAC executes in a single cycle
■ N MAC units in parallel give N MAC / cycle (N ≥ 1)
■ Performance is quoted in MMAC / GMAC (millions / billions of MAC per second)
■ Dot products, FIR filters and the FFT reduce to long chains of MAC operations

Harvard Architecture

Von Neumann (classic μP) Harvard (DSP)

CPU Memory program + data single bus CPU Program memory Data memory program bus data bus

■ Separate memories and buses for instructions and data: fetch an instruction and
access data in the same cycle
■ DSPs use a modified Harvard architecture, with several data buses (e.g. two operands
fetched per cycle) to feed the MAC unit continuously