© 2002 The MathWorks, Inc. 1 System-Level Design for DSP and Communications © 2002 The MathWorks,...
-
Upload
lucas-james -
Category
Documents
-
view
218 -
download
1
Transcript of © 2002 The MathWorks, Inc. 1 System-Level Design for DSP and Communications © 2002 The MathWorks,...
© 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.
© 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
© 2
00
2 T
he M
ath
Work
s, Inc.
3
The MathWorks
© 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
© 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
© 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
© 2
00
2 T
he M
ath
Work
s, Inc.
7
System Design Challengesand the MathWorks Solution
© 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
© 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
© 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
© 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
© 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
© 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
© 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
© 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
© 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
© 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
© 2
00
2 T
he M
ath
Work
s, Inc.
18
Algorithm Research and Developmentwith MATLAB
© 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
© 2
00
2 T
he M
ath
Work
s, Inc.
20
Toolboxes
Signal Processing Communications Filter Design Wavelet Analysis Statistics Optimization Image Processing Others…
© 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
© 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
© 2
00
2 T
he M
ath
Work
s, Inc.
23
System-Level Designwith Simulink Tutorial
© 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
© 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
© 2
00
2 T
he M
ath
Work
s, Inc.
26
Application Example: Bluetooth Voice Link
© 2
00
2 T
he M
ath
Work
s, Inc.
27
Application Examples
© 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
© 2
00
2 T
he M
ath
Work
s, Inc.
29
DSP
© 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
© 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
© 2
00
2 T
he M
ath
Work
s, Inc.
32
Analog/Mixed Signal
© 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
© 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
© 2
00
2 T
he M
ath
Work
s, Inc.
35
Control Logic and Protocols
© 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
© 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
© 2
00
2 T
he M
ath
Work
s, Inc.
38
End-to-End Communication Links
© 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
© 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
© 2
00
2 T
he M
ath
Work
s, Inc.
41
Links to Implementation
© 2
00
2 T
he M
ath
Work
s, Inc.
42
Target Technologies
Programmable DSPs FPGAs ASICs Analog/Mixed-Signal
© 2
00
2 T
he M
ath
Work
s, Inc.
43
Programmable DSP Implementation
Algorithm Design, Verification and
Automatic C Code Generation
© 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
© 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
© 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
© 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
© 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
© 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
© 2
00
2 T
he M
ath
Work
s, Inc.
50
FPGA Implementation
Behavioral Design, Verification and
Automatic VHDL Code Generation
© 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
© 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
© 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
© 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
© 2
00
2 T
he M
ath
Work
s, Inc.
55
Digital IC/ASIC Implementation
Behavioral Design and Verification
© 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
© 2
00
2 T
he M
ath
Work
s, Inc.
57
Analog/Mixed-SignalImplementation
Behavioral Design and Verification
© 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
© 2
00
2 T
he M
ath
Work
s, Inc.
59
Summary
© 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
© 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
© 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
© 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
© 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
© 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