Main Content

Number of bits: size_t

size_t bit length for test hardware

Model Configuration Pane: Hardware Implementation

Description

The Number of bits: size_t parameter specifies the bit length of size_t data for the hardware that you use to test code.

Selecting a device by using the Device vendor and Device type parameters sets a device-specific value for this parameter.

Whether the software checks the size_t bit length for the test hardware or for the production hardware for a processor-in-the-loop (PIL) simulation depends on whether you select Test hardware is the same as production hardware.

  • When Test hardware is the same as production hardware is selected, the software uses size_t bit length for the test hardware, specified in the TargetBitPerSizeT parameter.

  • When Test hardware is the same as production hardware is not selected, the software uses the size_t bit length for the production hardware, specified in the ProdBitPerSizeT parameter.

Dependencies

This parameter is enabled only if you can modify it for the selected hardware.

Settings

64 (default) | 8 | 16 | 24 | 32 | 40 | 128

The size_t bit length must be greater than or equal to the int bit length.

Recommended Settings

ApplicationSetting
DebuggingNo impact
TraceabilityNo impact
EfficiencyNo impact
Safety precaution

No impact when Test hardware is the same as production hardware is selected. If it is not selected, no recommendation.

Programmatic Use

Parameter: TargetBitPerSizeT
Type: integer
Values: 8 | 16 | 24 | 32 |40 | 64 | 128
Default: 64

Version History

Introduced in R2016b