Main Content

Speed and Area Optimization

Improvements through resource sharing, streaming, pipelining, RAM mapping

Functions

coder.hdl.loopspecUnroll or stream loops in generated HDL and SystemC code
coder.hdl.pipelineInsert pipeline registers at output of MATLAB expression

Topics

Optimization Basics

Area Optimization

  • Map Persistent Arrays and dsp.Delay to RAM
    In the HDL Workflow Advisor, select MATLAB to HDL Workflow > Code Generation > Optimizations tab.
  • Map Matrices to ROM
    To map a matrix constant to ROM:If your MATLAB® code meets these requirements, HDL Coder™ inserts a no-reset register at the output of the matrix in the generated code.
  • RAM Mapping for MATLAB Code
    RAM mapping is an area optimization that maps storage and delay elements in your MATLAB code to RAM.
  • RAM Mapping Comparison for MATLAB Code
    hdl.RAM, dsp.Delay, persistent array variables, and user-defined System object™ private properties can map to RAM, but have different attributes.

Speed Optimization