Post on 09-Sep-2018
Advanced Signal Processing and Communications with MATLAB and SIMULINKMarc Barberis – Application Engineering Group, MathWorks Inc.
AGENDAAGENDA
• Advanced Signal Processing and Communication Capabilities– What are system toolboxes?
– Signal Processing with the DSP System Toolbox
– Communications with the Communications System Toolbox– Communications with the Communications System Toolbox
• Designing a Multi-Gigabyte Transmission System (SERDES)– Extracting RF Parameters from the backplane
– Modeling the backplane
– Developing Clock Recovery and Equalization algorithms– Developing Clock Recovery and Equalization algorithms
• Conclusion
System Toolboxes
Signal Processing Blockset
DSPSystem Toolbox
Communications Communications
Filter DesignToolbox
CommunicationsCommunicationsToolbox
CommunicationsSystem Toolbox
CommunicationsBlockset
Video and ImageProcessing
Blockset
Computer VisionSystem Toolbox
New FeaturesBlockset System Toolbox
System Objects
• What are system objects?• What are system objects?
• System objects bring advanced design options and implementation-oriented
State-based algorithms optimized for streaming simulations...
…that support fixed-point arithmetic and C code generation.
• System objects bring advanced design options and implementation-oriented
system modeling to MATLAB
>> Demo
For Analysis and Algorithms: Signal Processing Toolbox
• Time and frequency domain signal analysis and visualization
Basic Tools for Signal Processing Design
• Time and frequency domain signal analysis and visualization
• Waveforms, linear prediction, time-series, and spectral estimation
• Industry-standard analog and digital FIR and IIR filter design
For Systems: DSP System Toolbox
• Streaming and multi-rate algorithms for real-time DSP systems
• Fixed-point, C/HDL code generation, and hardware connectivity
• Multi-rate and adaptive filter design; signal and spectrum scopes
DSP System ToolboxOver 300 algorithms for
– Advanced filter design – Advanced filter design
– FFTs
– Multirate DSP
– Linear algebra routines
Algorithm libraries in MATLAB Algorithm libraries in Simulink
Demo:Adaptive Noise Cancellation of Streaming Audio
� Use System objects to maintain filter states automatically� Use System objects to maintain filter states automatically
� Visualize changing filter coefficients as they adapt to input signal
� Listen to output audio in real-time
Modeling real-time signal processing systems
• Streaming algorithms in DSP System Toolbox provide• Streaming algorithms in DSP System Toolbox provide
� Implicit data buffering, state management and indexing
�Simulation speed-up by reducing overhead
MATLAB MemoryMATLAB Memory
StreamSource
StreamProcessing
Model Dynamic Systems in MATLAB:System Toolboxes and System objects
Represent dynamic systemsRepresent dynamic systems• Multiple tasks: validation, initialize, output, reset, terminate
Separate Declaration from Execution• Declaration: State initializations, Parameter validation
• Execution: Output computation (step)
Benefits of System Objects
• Rich set of algorithms for design in MATLAB or Simulink• Rich set of algorithms for design in MATLAB or Simulink
• Stream and batch signal processing
• Fixed-point and floating point support• Fixed-point and floating point support
• C code generation from MATLAB or Simulink
Communications System Toolbox
Over 100 algorithms for
– Modulation, Interleaving, Channels, Source Coding
Algorithm libraries in MATLAB Algorithm libraries in Simulink
– Modulation, Interleaving, Channels, Source Coding
– Error Coding and Correction
– MIMO, Equalizers, Synchronization
– Sources and Sinks, SDR hardware
Algorithm libraries in MATLAB Algorithm libraries in Simulink
4G Building blocks• QPSK Modulation
• Turbo Code (Soft Decision)• Turbo Code (Soft Decision)
• OFDM
• MIMO (Space Time Block Codes)
h1,2
h1,1
h2,1X Y
Multiple Input Multiple Outputh4,4
System Toolboxes
• Rich set of algorithms for design in MATLAB or Simulink• Rich set of algorithms for design in MATLAB or Simulink
• Stream and batch signal processing
• Fixed-point and floating point support• Fixed-point and floating point support
• C code generation from MATLAB or Simulink
• Growing HDL code generation support• Growing HDL code generation support
What is a SERDES?
Goal: Transfer data at very high speed using a Multi-Gigabit Serial Link
Serializer-Deserializer
Goal: Transfer data at very high speed using a Multi-Gigabit Serial Link (backplane)
Extract the RF Characteristics of the Gigabit Link
• Connect Vector Network Analyzer to back plane • Connect Vector Network Analyzer to back plane
• control VNA measurement with Instrument Control Toolbox
• measure S-parameters
• optionally de-embed test fixture effects• optionally de-embed test fixture effects
with MATLAB and RF Toolbox
Instrument Control ToolboxControl and communicate with scientific instruments
• Integrate instruments into MATLAB
applications and Simulink models
• Interactive tool for detecting and
controlling instruments controlling instruments
• Automatic code generation for faster and
easier implementation
• Support for IVI, VXIplug&play, and MATLAB
instrument drivers instrument drivers
• Support for common communication
protocols
Analyzing S-Parameters with RF Toolbox
• Visualize frequency domain responses for magnitude and phasedomain responses for magnitude and phase
• Rational fitting calculated for a port-pair configuration
• Export generated rational functions to a Verilog-A file, a Simulink model or RF data object
• De-embed test fixture effect
Benefits of Simulink for System Modeling
• Fast Simulation engine
• Mixed-Domain simulation
– Discrete and analog signals– Discrete and analog signals
• Interactivity
• Rich set of libraries to draw from
• Integration with MATLAB
MATLAB and Simulink forSignal Processing and Communications
• System Toolboxes
– Advanced algorithms
– Streaming, fixed-point and C code generation support– Streaming, fixed-point and C code generation support
• Mixed-Domain Simulation
– Fast simulation of mixed analog & digital systems
– Modeling of RF parts– Modeling of RF parts