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 theTargetBitPerSizeT
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 theProdBitPerSizeT
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
Application | Setting |
---|---|
Debugging | No impact |
Traceability | No impact |
Efficiency | No 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
See Also
Topics
- Specifying Test Hardware Characteristics (Simulink Coder)
- Hardware Implementation Options (Simulink Coder)
- Hardware Implementation Pane
- Verification of Code Generation Assumptions (Embedded Coder)