Main Content

Enable frame to sample conversion

Enable frame-to-sample conversion

Since R2022b

Model Configuration Pane: Optimization / Frame to Sample Conversion

Description

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.

Dependencies

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

Settings

Off (default) | On
On

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

Off

Do not stream input signals.

Tips

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>', ... 
            'FrameToSampleConversion','on')
  • When you use hdlset_param, set the parameter on the model and then generate HDL code by using the makehdl function.

    hdlset_param('<model_name','FrameToSampleConversion','on')
    makehdl('<model_name/DUT_name>')

Recommended Settings

No recommendations.

Programmatic Use

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

Version History

Introduced in R2022b