Main Content

Enable frame to sample conversion

Enable frame-to-sample conversion

Since R2022b

Model Configuration Pane: Optimization / Frame to Sample Conversion


Select this parameter to enable frame-to-sample conversion. If your model is not synthesizable because it requires a large amount of I/O, this optimization can reduce the I/O in the design and generate synthesizable HDL code. The frame-to-sample conversion converts matrix inputs to smaller samples by streaming the input signal for HDL code generation to reduce the I/O that handles a large input signal.


Enable the HDL block property ConvertToSamples for at least one Inport block on your DUT that has an incoming matrix signal to be streamed.


Off (default) | On

Stream input signals attached to Inport blocks that have the HDL block property ConvertToSamples enabled.


Do not stream input signals.


To set this property, use the functions hdlset_param or makehdl. To view the property value, use the function hdlget_param.

For example, you can use the FrameToSampleConversion setting when you generate HDL code for a DUT subsystem in a model using either of these methods:

  • Pass the property as an argument to the makehdl function.

    makehdl('<model_name/DUT_name>', ... 
  • When you use hdlset_param, set the parameter on the model and then generate HDL code by using the makehdl function.


Recommended Settings

No recommendations.

Programmatic Use

Parameter: FrameToSampleConversion
Type: character vector
Value: 'on' | 'off'
Default: 'off'

Version History

Introduced in R2022b