Documentation Center

  • Trials
  • Product Updates

HDL Coder Examples

MATLAB Examples

Tutorials

Getting Started with MATLAB to HDL WorkflowScript
Basic HDL Code Generation with the Workflow AdvisorScript
Generating Modular Code for FunctionsScript
Working with Fixed-Point CodeScript
Generate HDL Code from MATLAB Code Using the Command Line InterfaceScript
System Design with HDL Code Generation from MATLAB and SimulinkScript
Generate Xilinx System Generator for DSP Black Box from MATLAB HDL DesignScript

Float to Fixed Tutorials

Floating-Point to Fixed-Point ConversionScript
Fixed-Point Type Conversion and RefinementScript
Working with Generated Fixed-Point FilesScript
Fixed-Point Type Conversion and Derived RangesScript

System Objects

HDL Code Generation from System ObjectsScript
Model State with Persistent Variables and System ObjectsScript
HDL Code Generation from Viterbi Decoder System ObjectScript

Optimizations

Distributed Pipelining for Clock Speed OptimizationScript
Map Matrices to Block RAMs to Reduce AreaScript
Resource Sharing of Multipliers to Reduce AreaScript
Loop Streaming to Reduce AreaScript
Constant Multiplier Optimization to Reduce AreaScript

Workflow

Getting Started with FPGA Turnkey WorkflowScript

Signal Processing

LMS Filter: Noise CancellationScript
Bisection Algorithm to Calculate Square Root of an Unsigned Fixed-Point NumberScript

Communications

Timing Offset EstimationScript
Data PacketizationScript

Image Processing

Sobel Edge DetectionScript
2D FIR FilterScript
Corner DetectionScript
Adaptive Median FilterScript
Contrast AdjustmentScript
Image Enhancement by Histogram EqualizationScript
Image Format Conversion: RGB to YUVScript
High Dynamic Range ImagingScript

Simulink Examples

Modeling

CORDIC Algorithm Using Simulink® BlocksModel
CORDIC Algorithm Using the MATLAB® Function BlockModel
Getting Started with RAM and ROM in Simulink®
Uses: Signal Processing Toolbox, DSP System Toolbox
Script
Hardware Design Patterns Using the MATLAB Function BlockScript
HDL Verifier Cosimulation Model Generation in HDL Coder™Script
Using Atomic Subsystems in HDL Coder (5min 19sec)Using Atomic Subsystems in HDL Coder (5min 19sec)Video
Using Multiple Clocks in HDL Coder™Script

Optimizations

Distributed Pipelining: Speed OptimizationScript
Streaming: Area OptimizationScript
Resource Sharing For Area OptimizationScript
Resource Sharing and Streaming with Oversampling ConstraintsScript
Delay Balancing and Validation Model Workflow In HDL Coder™Script
Control the Scope of Delay BalancingScript

Workflow

Using Altera DSP Builder Advanced Blockset with HDL CoderScript
Using Xilinx System Generator for DSP with HDL CoderScript

Signal Processing

Adaptive Noise Canceler with LMS Filter
Uses: Signal Processing Toolbox, DSP System Toolbox
Model
Vectorized Adaptive Noise Canceler with LMS Filter
Uses: Signal Processing Toolbox, DSP System Toolbox
Model
Vectorized LMS Filter Using the MATLAB® Function Block
Uses: Signal Processing Toolbox, DSP System Toolbox
Model
8-Point DCTModel
FFT Using Simulink® Blocks
Uses: DSP System Toolbox
Model
Using the Minimum Resource HDL FFT
Uses: DSP System Toolbox
Script
Pipelined Configurable FIR
Uses: Stateflow
Model
RAM-based FIR Filter
Uses: Signal Processing Toolbox, DSP System Toolbox
Model
Symmetric FIR FilterModel
Automatic Gain ControllerModel

Communications

Digital Down Converter for HDL Code Generation
Uses: Signal Processing Toolbox, DSP System Toolbox
Model
MIMO Decoder Using Simulink® and the MATLAB™ Function Block
Uses: DSP System Toolbox, Communications System Toolbox
Model
OFDM Receiver with 512-Point Serial FFT
Uses: DSP System Toolbox, Communications System Toolbox
Script
OFDM Receiver with 512-Point Streaming I/O FFT
Uses: DSP System Toolbox, Communications System Toolbox
Script
Viterbi Decoder Using Simulink® Blocks
Uses: DSP System Toolbox, Communications System Toolbox
Model
Viterbi Decoder Using the MATLAB® Function Block
Uses: DSP System Toolbox, Communications System Toolbox
Model

Image Processing

Image Reconstruction Using the MATLAB Function Block
Uses: Signal Processing Toolbox, Image Processing Toolbox, DSP System Toolbox
Script
Sobel Edge Detection Using the MATLAB® Function Block
Uses: DSP System Toolbox, Computer Vision System Toolbox
Model

Hardware-Software Codesign Workflow Examples

Tutorials

Getting Started with HW/SW Codesign Workflow for Xilinx Zynq Platform
Uses: Embedded Coder
Script

IP Core Generation

Using IP Core Generation Workflow from MATLAB: LED BlinkingScript
Using IP Core Generation Workflow from Simulink: LED BlinkingScript
Using IP Core Generation Workflow: Sobel Edge Detection
Uses: DSP System Toolbox, Computer Vision System Toolbox
Script

Verification

Debug a Zynq Design Using HDL Coder and Embedded Coder
Uses: Embedded Coder, DSP System Toolbox
Script
Was this topic helpful?