Main Content

Input processing order

Choose between row-major and column-major ordering for the frame inputs

Since R2023a

Model Configuration Pane: Optimization / Frame to Sample Conversion

Description

Use this parameter to choose between row-major and column-major ordering for the frame inputs that the frame-to-sample conversion optimization converts to sample inputs. This setting affects how the data is streamed into the device under test (DUT), but does not change the behavior of the generated DUT.

Dependencies

To enable this parameter, select Enable frame to sample conversion.

Settings

RowMajor (default) | ColumnMajor
RowMajor

Traverse the input frame data for the frame-to-sample conversion using row-major ordering, which traverses the data from left to right and then top to bottom across the frame-based input matrix.

ColumnMajor

Traverse the input frame data for the frame-to-sample conversion using column-major ordering,which traverses the data from top to bottom and then left to right across the frame-based input matrix.

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

    hdlset_param('<model_name>','InputProcessingOrder','ColumnMajor')
    makehdl('<model_name/DUT_name>')

Recommended Settings

No recommendations.

Programmatic Use

Parameter: InputProcessingOrder
Type: character vector
Value: 'RowMajor' | 'ColumnMajor'
Default: 'RowMajor'

Version History

Introduced in R2023a