© 2002 the mathworks, inc. 1 system-level design for dsp and communications © 2002 the mathworks,...

65
© 2002 The MathWorks, Inc. 1 System-Level Design for DSP and Communications © 2002 The MathWorks, Inc.

Upload: lucas-james

Post on 11-Jan-2016

221 views

Category:

Documents


1 download

TRANSCRIPT

Page 1: © 2002 The MathWorks, Inc. 1 System-Level Design for DSP and Communications © 2002 The MathWorks, Inc

© 2

00

2 T

he M

ath

Work

s, Inc.

1

System-Level Design for DSP and Communications

© 2

00

2 T

he M

ath

Work

s, Inc.

Page 2: © 2002 The MathWorks, Inc. 1 System-Level Design for DSP and Communications © 2002 The MathWorks, Inc

© 2

00

2 T

he M

ath

Work

s, Inc.

2

Agenda

The MathWorks System Design Challenges and MathWorks Solution Research and Algorithm Development with MATLAB System-Level Design with Simulink Tutorial Break Application examples

DSP Analog/Mixed-Signal Control Logic and Protocols End-to-End Communication Links

Links to Implementation

Page 3: © 2002 The MathWorks, Inc. 1 System-Level Design for DSP and Communications © 2002 The MathWorks, Inc

© 2

00

2 T

he M

ath

Work

s, Inc.

3

The MathWorks

Page 4: © 2002 The MathWorks, Inc. 1 System-Level Design for DSP and Communications © 2002 The MathWorks, Inc

© 2

00

2 T

he M

ath

Work

s, Inc.

4

The MathWorks

Headquarters in Natick, near Boston

Founded in 1984, privately held

Over 1000 employees Direct offices in UK, France,

Italy, Germany, Switzerland, Spain, and Benelux

Distributors in 20 countries

Page 5: © 2002 The MathWorks, Inc. 1 System-Level Design for DSP and Communications © 2002 The MathWorks, Inc

© 2

00

2 T

he M

ath

Work

s, Inc.

5

The MathWorks

Accelerating engineering design and discovery MATLAB for algorithm development and analysis Simulink for system-level design

Page 6: © 2002 The MathWorks, Inc. 1 System-Level Design for DSP and Communications © 2002 The MathWorks, Inc

© 2

00

2 T

he M

ath

Work

s, Inc.

6

The MathWorks Product Family

StateflowStateflowStateflow

BlocksetsCode Generation, RTW, SF Coder

Toolboxes

Desktop ApplicationsAutomated Reports

DAQ cardsInstruments

Page 7: © 2002 The MathWorks, Inc. 1 System-Level Design for DSP and Communications © 2002 The MathWorks, Inc

© 2

00

2 T

he M

ath

Work

s, Inc.

7

System Design Challengesand the MathWorks Solution

Page 8: © 2002 The MathWorks, Inc. 1 System-Level Design for DSP and Communications © 2002 The MathWorks, Inc

© 2

00

2 T

he M

ath

Work

s, Inc.

8

Today’s System Design Challenges

Increasing complexity DSP and Communications products

Wireless, Broadband, Audio, Semiconductor, Computer Peripherals

Time-to-market pressure Design verification occurs

late High risk of design failure

and time-to-market delays Design team integration

Analog/Mixed-Signal, digital hardware, DSP S/W, control S/W

Page 9: © 2002 The MathWorks, Inc. 1 System-Level Design for DSP and Communications © 2002 The MathWorks, Inc

© 2

00

2 T

he M

ath

Work

s, Inc.

9

DSP/EmbeddedSoftware Tools

EDA Tools

Digital, A/M-SHardware

DSP, ControlSoftware

THIRD PARTYIMPLEMENTATION TOOLS

Design Flow Problem

Technology research and market requirements

Systems engineering and written specifications

Partition into components No testing of whole system Design failure risk high Design flaws detected late,

during circuit level, RTL or C/ASM code design

Technology Research,Market Requirements

WrittenSpecifications

Page 10: © 2002 The MathWorks, Inc. 1 System-Level Design for DSP and Communications © 2002 The MathWorks, Inc

© 2

00

2 T

he M

ath

Work

s, Inc.

10

MATLAB

SIMULINK

The MathWorks System-Level Solution

MATLAB and Simulink Before circuit level, RTL or

C/ASM code design Create a validated

reference design

Validated Design Specification

DSP/EmbeddedSoftware Tools

EDA Tools

Digital, A/M-SHardware

DSP, ControlSoftware

THIRD PARTYIMPLEMENTATION TOOLS

Page 11: © 2002 The MathWorks, Inc. 1 System-Level Design for DSP and Communications © 2002 The MathWorks, Inc

© 2

00

2 T

he M

ath

Work

s, Inc.

11

MATLAB

MATLAB

Research new technology Perform mathematical

modeling Development algorithms Acquire, visualize and

analyze data

Page 12: © 2002 The MathWorks, Inc. 1 System-Level Design for DSP and Communications © 2002 The MathWorks, Inc

© 2

00

2 T

he M

ath

Work

s, Inc.

12

MATLAB

SIMULINK

Simulink

Graphically design architecture and simulate behavior of whole system. Bit-true cycle accurate.

From libraries of pre-built blocks

Import C or MATLAB Code Test, optimize, explore

parameter and architecture trade-offs

Page 13: © 2002 The MathWorks, Inc. 1 System-Level Design for DSP and Communications © 2002 The MathWorks, Inc

© 2

00

2 T

he M

ath

Work

s, Inc.

13

Model Different Components

Analog/Mixed-Signal E.g. PLLs, data converters Continuous time, variable-

step ODE solvers DSP

E.g. Baseband processing, speech processing

Discrete time, fast frame-based processing. Bit-true cycle accurate.

Control Logic E.g. MAC layer,

acknowledgement schemes Reactive or event driven

state machines

SIMULINK

Analog/M-S Control LogicDSP

Page 14: © 2002 The MathWorks, Inc. 1 System-Level Design for DSP and Communications © 2002 The MathWorks, Inc

© 2

00

2 T

he M

ath

Work

s, Inc.

14

Validated Design

DSP/EmbeddedSoftware Tools

EDA Tools

Digital, A/M-SHardware

DSP, ControlSoftware

THIRD PARTYIMPLEMENTATION TOOLS

MATLAB

Use as Validated Design

Create validated design Use as reference or

executable specification to test low-level designs against

Provide clear specifications Detect design flaws early Reduce design risk and

time-to-market

SIMULINK

Page 15: © 2002 The MathWorks, Inc. 1 System-Level Design for DSP and Communications © 2002 The MathWorks, Inc

© 2

00

2 T

he M

ath

Work

s, Inc.

15

Motorola's Wireless Subscriber Systems Group

Challenge Mixed-signal Phase-Locked

Loop (PLL) design Cycle-to-cycle jitter and loop

locking sensitivity SPICE/Verilog 100 secs: 2 hours

Solution Simulink 100 secs : 2.5 mins Sub-picosecond resolution

Page 16: © 2002 The MathWorks, Inc. 1 System-Level Design for DSP and Communications © 2002 The MathWorks, Inc

© 2

00

2 T

he M

ath

Work

s, Inc.

16

TC-Helicon

Challenge Voice processing Physical model of human sound

production Solution

Simulink, DSP Blockset Try out new ideas Test in real-time using PC

audio I/O

Page 17: © 2002 The MathWorks, Inc. 1 System-Level Design for DSP and Communications © 2002 The MathWorks, Inc

© 2

00

2 T

he M

ath

Work

s, Inc.

17

Lucent Technologies

Challenge VoIP testing Variable delay, echo, packet

loss, and code distortion Solution

Simulink, DSP Blockset, Stateflow automatic code generation with xPC.

Change network conditions, such as echo or packet loss, during a live, two-way conversation

Add new tests without writing code

Page 18: © 2002 The MathWorks, Inc. 1 System-Level Design for DSP and Communications © 2002 The MathWorks, Inc

© 2

00

2 T

he M

ath

Work

s, Inc.

18

Algorithm Research and Developmentwith MATLAB

Page 19: © 2002 The MathWorks, Inc. 1 System-Level Design for DSP and Communications © 2002 The MathWorks, Inc

© 2

00

2 T

he M

ath

Work

s, Inc.

19

MATLAB

High-level interpreted language

Math, linear algebra Graphics, GUI’s Programming Standard for DSP algorithm

development Most text books include

MATLAB code

Page 20: © 2002 The MathWorks, Inc. 1 System-Level Design for DSP and Communications © 2002 The MathWorks, Inc

© 2

00

2 T

he M

ath

Work

s, Inc.

20

Toolboxes

Signal Processing Communications Filter Design Wavelet Analysis Statistics Optimization Image Processing Others…

Page 21: © 2002 The MathWorks, Inc. 1 System-Level Design for DSP and Communications © 2002 The MathWorks, Inc

© 2

00

2 T

he M

ath

Work

s, Inc.

21

Filter Design Toolbox

Fixed-point filter design and analysis

Advanced filter design methods

Quantized FFT Data quantizers FDA Tool integration

Page 22: © 2002 The MathWorks, Inc. 1 System-Level Design for DSP and Communications © 2002 The MathWorks, Inc

© 2

00

2 T

he M

ath

Work

s, Inc.

22

Data Acquisition and Instrument Control

Data Acquisition Toolbox Data to/from third party DAQ

boards Agilent E series NI E and 1200 series Measurement Computing

Corporation Keithly

Instrument Control Toolbox GPIB VXI VISA

MATLAB Data to/from PC sound card Serial Interface (RS-232 RS-

485) MEX: Call C Code Data files

Page 23: © 2002 The MathWorks, Inc. 1 System-Level Design for DSP and Communications © 2002 The MathWorks, Inc

© 2

00

2 T

he M

ath

Work

s, Inc.

23

System-Level Designwith Simulink Tutorial

Page 24: © 2002 The MathWorks, Inc. 1 System-Level Design for DSP and Communications © 2002 The MathWorks, Inc

© 2

00

2 T

he M

ath

Work

s, Inc.

System-Level Design Requirements

Describe system architecture Model different levels Model different components Simulate and test Document Re-use design

Page 25: © 2002 The MathWorks, Inc. 1 System-Level Design for DSP and Communications © 2002 The MathWorks, Inc

© 2

00

2 T

he M

ath

Work

s, Inc.

Simulink Solution

Hierarchical block diagram design and simulation tool

Digital, Analog/Mixed Signal and event driven

Visualize Signals Co-develop with C code Integrated with MATLAB

Page 26: © 2002 The MathWorks, Inc. 1 System-Level Design for DSP and Communications © 2002 The MathWorks, Inc

© 2

00

2 T

he M

ath

Work

s, Inc.

26

Application Example: Bluetooth Voice Link

Page 27: © 2002 The MathWorks, Inc. 1 System-Level Design for DSP and Communications © 2002 The MathWorks, Inc

© 2

00

2 T

he M

ath

Work

s, Inc.

27

Application Examples

Page 28: © 2002 The MathWorks, Inc. 1 System-Level Design for DSP and Communications © 2002 The MathWorks, Inc

© 2

00

2 T

he M

ath

Work

s, Inc.

28

Application Examples

DSP Sound card audio processing Adaptive noise cancellation Adaptive Decision Feedback Equalizer

Analog/Mixed-Signal Sigma-delta ADC Fractional N Frequency Synthesis PLL Non-linear optimization of PLL Timing and carrier recovery

Control Logic and protocols Ethernet CSMA/CD Call processing

End-to-End Communications links Bluetooth Digital video broadcasting ADSL HiperLAN/2 WCDMA FDD

Page 29: © 2002 The MathWorks, Inc. 1 System-Level Design for DSP and Communications © 2002 The MathWorks, Inc

© 2

00

2 T

he M

ath

Work

s, Inc.

29

DSP

Page 30: © 2002 The MathWorks, Inc. 1 System-Level Design for DSP and Communications © 2002 The MathWorks, Inc

© 2

00

2 T

he M

ath

Work

s, Inc.

30

Problem: DSP Systems

Discrete-time signals and systems Signal processing algorithms such as filtering, FFTs,

correlation and convolution Multiple sample rates Fast simulation

Page 31: © 2002 The MathWorks, Inc. 1 System-Level Design for DSP and Communications © 2002 The MathWorks, Inc

© 2

00

2 T

he M

ath

Work

s, Inc.

31

Simulink for DSP Systems

Digital signals, systems and fast frame-based simulation

Simulink and DSP Blockset Library for filtering, rate conversion, linear algebra, transforms, and parameter estimation

Multi-rate capability Real-time audio support for

Windows 95/98/NT

Page 32: © 2002 The MathWorks, Inc. 1 System-Level Design for DSP and Communications © 2002 The MathWorks, Inc

© 2

00

2 T

he M

ath

Work

s, Inc.

32

Analog/Mixed Signal

Page 33: © 2002 The MathWorks, Inc. 1 System-Level Design for DSP and Communications © 2002 The MathWorks, Inc

© 2

00

2 T

he M

ath

Work

s, Inc.

Problem: Analog/Mixed-Signal

Interface to real-world signals Analog hardware Described with Laplace or circuit diagrams Timing accuracy very important Circuit simulators are slow Over-sampled data is slow and inaccurate

Page 34: © 2002 The MathWorks, Inc. 1 System-Level Design for DSP and Communications © 2002 The MathWorks, Inc

© 2

00

2 T

he M

ath

Work

s, Inc.

Simulink for Analog/Mixed Signal

Laplace transforms or RC circuits

Variable step ODE solvers Zero crossings and

discontinuities Feedback control loops,

VCOs, PLLs, phase detectors Power Systems Blockset

Page 35: © 2002 The MathWorks, Inc. 1 System-Level Design for DSP and Communications © 2002 The MathWorks, Inc

© 2

00

2 T

he M

ath

Work

s, Inc.

35

Control Logic and Protocols

Page 36: © 2002 The MathWorks, Inc. 1 System-Level Design for DSP and Communications © 2002 The MathWorks, Inc

© 2

00

2 T

he M

ath

Work

s, Inc.

Problem: Control Logic

Initialization, synchronization, call processing and protocols

Event driven or reactive Difficult with block diagrams Finite state machines

Page 37: © 2002 The MathWorks, Inc. 1 System-Level Design for DSP and Communications © 2002 The MathWorks, Inc

© 2

00

2 T

he M

ath

Work

s, Inc.

Stateflow

Design event driven control logic

Graphically create Finite State Machines

Integrated with Simulink and MATLAB

Page 38: © 2002 The MathWorks, Inc. 1 System-Level Design for DSP and Communications © 2002 The MathWorks, Inc

© 2

00

2 T

he M

ath

Work

s, Inc.

38

End-to-End Communication Links

Page 39: © 2002 The MathWorks, Inc. 1 System-Level Design for DSP and Communications © 2002 The MathWorks, Inc

© 2

00

2 T

he M

ath

Work

s, Inc.

Problem: Communications Links

Channels models Digital and analog operations such as coding,

interleaving and modulation Frame, symbol, bit and sample rates Synchronization Performance testing

Page 40: © 2002 The MathWorks, Inc. 1 System-Level Design for DSP and Communications © 2002 The MathWorks, Inc

© 2

00

2 T

he M

ath

Work

s, Inc.

Simulink for Communications Links

Simulink, DSP and Communications Blockset library for channels, error coding, sources, sinks

Multiple rates Synchronization Performance testing

Page 41: © 2002 The MathWorks, Inc. 1 System-Level Design for DSP and Communications © 2002 The MathWorks, Inc

© 2

00

2 T

he M

ath

Work

s, Inc.

41

Links to Implementation

Page 42: © 2002 The MathWorks, Inc. 1 System-Level Design for DSP and Communications © 2002 The MathWorks, Inc

© 2

00

2 T

he M

ath

Work

s, Inc.

42

Target Technologies

Programmable DSPs FPGAs ASICs Analog/Mixed-Signal

Page 43: © 2002 The MathWorks, Inc. 1 System-Level Design for DSP and Communications © 2002 The MathWorks, Inc

© 2

00

2 T

he M

ath

Work

s, Inc.

43

Programmable DSP Implementation

Algorithm Design, Verification and

Automatic C Code Generation

Page 44: © 2002 The MathWorks, Inc. 1 System-Level Design for DSP and Communications © 2002 The MathWorks, Inc

© 2

00

2 T

he M

ath

Work

s, Inc.

44

Problem: Verification in Real-time

Testing algorithms in real-time with real signals Rapidly iterate between system model and real-time

implementation

Page 45: © 2002 The MathWorks, Inc. 1 System-Level Design for DSP and Communications © 2002 The MathWorks, Inc

© 2

00

2 T

he M

ath

Work

s, Inc.

Real-Time Workshop

Automatically generates ANSI C

Customizable code Rapid Prototyping Fast host simulation Targets

PC DSP Micro controller Custom

Page 46: © 2002 The MathWorks, Inc. 1 System-Level Design for DSP and Communications © 2002 The MathWorks, Inc

© 2

00

2 T

he M

ath

Work

s, Inc.

46

Example: Rapid Prototype DTMF

Code generation Run from NT prompt Load data into MATLAB

Page 47: © 2002 The MathWorks, Inc. 1 System-Level Design for DSP and Communications © 2002 The MathWorks, Inc

© 2

00

2 T

he M

ath

Work

s, Inc.

47

Developer's Kit for TI DSP

Data exchange to verify code on any TI DSP processor via code composer

Turn-key automatic code generation for TI EVM or DSK boards

Page 48: © 2002 The MathWorks, Inc. 1 System-Level Design for DSP and Communications © 2002 The MathWorks, Inc

© 2

00

2 T

he M

ath

Work

s, Inc.

48

Data Exchange

ActiveX MATLAB objects Link to CCS

Load projects, build, download, exchange data

Halted DSP Link to RTDX (Real Time

Data Exchange) Transfer data while DSP is

running

Page 49: © 2002 The MathWorks, Inc. 1 System-Level Design for DSP and Communications © 2002 The MathWorks, Inc

© 2

00

2 T

he M

ath

Work

s, Inc.

49

Code Generation

C6701 EVM Generate code, build,

download and run Turnkey concept through

code for C6701 DSP Code Composer Studio

(CCS) project Development tool for most

TI DSPs Create C Code in the form

of a CCS project

CodeGeneration

Page 50: © 2002 The MathWorks, Inc. 1 System-Level Design for DSP and Communications © 2002 The MathWorks, Inc

© 2

00

2 T

he M

ath

Work

s, Inc.

50

FPGA Implementation

Behavioral Design, Verification and

Automatic VHDL Code Generation

Page 51: © 2002 The MathWorks, Inc. 1 System-Level Design for DSP and Communications © 2002 The MathWorks, Inc

© 2

00

2 T

he M

ath

Work

s, Inc.

51

Xilinx System Generator

Bit-true and cycle-true Simulink library for common functions

Automatic HDL code generation from a Simulink model

Maps design automatically to available Xilinx optimized algorithms

Support for user-created Simulink library elements

Page 52: © 2002 The MathWorks, Inc. 1 System-Level Design for DSP and Communications © 2002 The MathWorks, Inc

© 2

00

2 T

he M

ath

Work

s, Inc.

52

Xilinx System Generator

Simulation Xilinx Blockset - Simulink

library of arithmetic and logic operators, DSP functions written in C++

Bit and cycle true to FPGA implementation

Code generation Generates optimized Xilinx

“cores” HDL for glue to connect

cores into one design Automatic test bench

                                    

Page 53: © 2002 The MathWorks, Inc. 1 System-Level Design for DSP and Communications © 2002 The MathWorks, Inc

© 2

00

2 T

he M

ath

Work

s, Inc.

53

Synthesize, Translate, Map, Place and Route

Synthesize Translate Map Place and Route Configure Output .bin stream

Page 54: © 2002 The MathWorks, Inc. 1 System-Level Design for DSP and Communications © 2002 The MathWorks, Inc

© 2

00

2 T

he M

ath

Work

s, Inc.

54

Altera DSP Builder

Links MATLAB/Simulink to Altera Quartus II environment

Automatic HDL code generation from a Simulink model

Generates bit and cycle accurate models for DSP functions

Automatic generation of VHDL test bench

Page 55: © 2002 The MathWorks, Inc. 1 System-Level Design for DSP and Communications © 2002 The MathWorks, Inc

© 2

00

2 T

he M

ath

Work

s, Inc.

55

Digital IC/ASIC Implementation

Behavioral Design and Verification

Page 56: © 2002 The MathWorks, Inc. 1 System-Level Design for DSP and Communications © 2002 The MathWorks, Inc

© 2

00

2 T

he M

ath

Work

s, Inc.

56

Digital IC/ASIC Design Flow

Floating point Simulink, DSP and

Communications Blocksets Test, optimize, explore

parameter and architecture trade-offs

Bit-true (cycle accurate) Fixed-point Blockset

Create reference ‘Golden Design’

RTL level code with HDL and compare against it

HDL Generation No MathWorks product Third Party HDL Generation

Products

Page 57: © 2002 The MathWorks, Inc. 1 System-Level Design for DSP and Communications © 2002 The MathWorks, Inc

© 2

00

2 T

he M

ath

Work

s, Inc.

57

Analog/Mixed-SignalImplementation

Behavioral Design and Verification

Page 58: © 2002 The MathWorks, Inc. 1 System-Level Design for DSP and Communications © 2002 The MathWorks, Inc

© 2

00

2 T

he M

ath

Work

s, Inc.

58

A/M-S Design Flow

Behavioral design in Simulink and Power Systems Blockset

Test, optimize, explore parameter and architecture trade-offs

Create reference ‘Golden Design’

Circuit design in Spice and compare against

Page 59: © 2002 The MathWorks, Inc. 1 System-Level Design for DSP and Communications © 2002 The MathWorks, Inc

© 2

00

2 T

he M

ath

Work

s, Inc.

59

Summary

Page 60: © 2002 The MathWorks, Inc. 1 System-Level Design for DSP and Communications © 2002 The MathWorks, Inc

© 2

00

2 T

he M

ath

Work

s, Inc.

60

Validated Design

DSP/EmbeddedSoftware Tools

EDA Tools

Digital, A/M-SHardware

DSP, ControlSoftware

THIRD PARTYIMPLEMENTATION

TOOLS

System-Level Design

MATLABAlgorithm Development

and Analysis

SIMULINK

The MathWorks Design Environment

Top-Down Design Design and test the system

behavior early in the design process

Detect design flaws early Reduced design risk and

cost Reduced time-to-market

Page 61: © 2002 The MathWorks, Inc. 1 System-Level Design for DSP and Communications © 2002 The MathWorks, Inc

© 2

00

2 T

he M

ath

Work

s, Inc.

61

Product specific courses in MATLAB and Simulink

Interactive instruction from experienced trainers

Worldwide venues include on-site, public and web-based

www.mathworks.com/training

Page 62: © 2002 The MathWorks, Inc. 1 System-Level Design for DSP and Communications © 2002 The MathWorks, Inc

© 2

00

2 T

he M

ath

Work

s, Inc.

62

Consulting

Application development using MATLAB

System-level design using MATLAB, Simulink, and Stateflow

Enterprise-wide integration of the MathWorks products with your engineering process and systems

www.mathworks.com/consulting

Page 63: © 2002 The MathWorks, Inc. 1 System-Level Design for DSP and Communications © 2002 The MathWorks, Inc

© 2

00

2 T

he M

ath

Work

s, Inc.

63

400+ MATLAB and Simulink Based Text books

Controls Signal Processing Image Processing Biosciences

Mechanical Engineering Mathematics Natural Sciences Environmental Sciences

Page 64: © 2002 The MathWorks, Inc. 1 System-Level Design for DSP and Communications © 2002 The MathWorks, Inc

© 2

00

2 T

he M

ath

Work

s, Inc.

64

MATLAB Connections

Over 300 add-on products and services from partners that complement and extend MathWorks products

Specialized third-party toolboxes for MATLAB Interfaces to partners’ software and hardware products Specialized training courses and consulting services Turnkey systems providers that incorporate MathWorks

products

Page 65: © 2002 The MathWorks, Inc. 1 System-Level Design for DSP and Communications © 2002 The MathWorks, Inc

© 2

00

2 T

he M

ath

Work

s, Inc.

65

MathWorks Products and Services

Product information and animated demos www.mathworks.com/products/dsp_comm

Online audio version of this seminar www.mathworks.com/products/dsp/demos/dspsem/Pages/

01_Themath.html