Main Content

Hardware Implementation Pane

The Hardware Implementation category includes parameters for configuring a hardware board to run a model. Hardware implementation parameters specify different options for building models to run on hardware boards or devices including communication connections and hardware specific parameters. Hardware Implementation pane parameters do not control hardware or compiler behavior. The parameters describe hardware and compiler properties for the MATLAB® software.

  • Specifying hardware characteristics enables simulation of the model to detect error conditions that can arise when executing code, such as hardware overflow.

  • MATLAB uses the information to generate code for the platform that runs as efficiently as possible. MATLAB software also uses the information to give bit-true agreement for the results of integer and fixed-point operations in simulation and generated code.

ParameterDescription
Hardware board

Select the hardware board upon which to run your model.

Code Generation system target file

System target file that you select on the Code Generation pane.

Device vendor

Select the manufacturer of the hardware board to use to implement the system that this model represents.

Device type

Select the type of hardware to use to implement the system that this model represents.

These configuration parameters are in the Device details section.

ParameterDescription
Number of bits: char

Describe the character bit length for the hardware.

Number of bits: short

Describe the data bit length for the hardware.

Number of bits: int

Describe the data integer bit length for the hardware.

Number of bits: long

Describe the data bit lengths for the hardware.

Number of bits: long long

Describe the length in bits of the C long long data type that the hardware supports.

Number of bits: float

Describe the bit length of floating-point data for the hardware (read only).

Number of bits: double

Describe the bit-length of double data for the hardware (read only).

Number of bits: native

Describe the microprocessor native word size for the hardware.

Number of bits: pointer

Describe the bit-length of pointer data for the hardware.

Number of bits: size_t

Describe the bit-length of size_t data for the hardware.

Number of bits: ptrdiff_t

Describe the bit-length of ptrdiff_t data for the hardware.

Largest atomic size: integer

Specify the largest integer data type that can be atomically loaded and stored on the hardware.

Largest atomic size: floating-point

Specify the largest floating-point data type that can be atomically loaded and stored on the hardware.

Byte ordering

Describe the byte ordering for the hardware board.

Signed integer division rounds to

Describe how your compiler for the hardware rounds the result of dividing two signed integers.

Shift right on a signed integer as arithmetic shift

Describe how your compiler for the hardware fills the sign bit in a right shift of a signed integer.

Support long long

Specify that your C compiler supports the C long long data type. Most C99 compilers support long long.

These configuration parameters are in the Advanced parameters section.

ParameterDescription

Test hardware is the same as production hardware

Specify whether the test hardware differs from the production hardware.

Test device vendor and type

Select the manufacturer and type of the hardware to use to test the code generated from the model.

Number of bits: char

Describe the character bit length for the hardware that you use to test code.

Number of bits: short

Describe the data bit length for the hardware that you use to test code.

Number of bits: int

Describe the data integer bit length of the hardware that you use to test code.

Number of bits: long

Describe the data bit lengths for the hardware that you use to test code.

Number of bits: long long

Describe the length in bits of the C long long data type that the test hardware supports.

Number of bits: float

Describe the bit length of floating-point data for the hardware that you use to test code (read only).

Number of bits: double

Describe the bit-length of double data for the hardware that you use to test code (read only).

Number of bits: native

Describe the microprocessor native word size for the hardware that you use to test code.

Number of bits: pointer

Describe the bit-length of pointer data for the hardware that you use to test code.

Number of bits: size_t

Describe the bit-length of size_t data for the hardware that you use to test code.

Number of bits: ptrdiff_t

Describe the bit-length of ptrdiff_t data for the hardware that you use to test code.

Largest atomic size: integer

Specify the largest integer data type that can be atomically loaded and stored on the hardware that you use to test code.

Largest atomic size: floating-point

Specify the largest floating-point data type that can be atomically loaded and stored on the hardware that you use to test code.

Byte ordering

Describe the byte ordering for the hardware that you use to test code.

Signed integer division rounds to

Describe how your compiler for the test hardware rounds the result of dividing two signed integers.

Shift right on a signed integer as arithmetic shift

Describe how your compiler for the test hardware fills the sign bit in a right shift of a signed integer.

Support long long

Specify that your C compiler supports the C long long data type.

Use Simulink Coder Features (Simulink Coder)

Enable Simulink Coder features for models deployed to Simulink Supported Hardware.

Use Embedded Coder Features (Embedded Coder)

Enable Embedded Coder features for models deployed to Simulink Supported Hardware.

The following model configuration parameters have no other documentation.

ParameterDescription
TargetPreprocMaxBitsSint
int - 32
Specify the maximum number of bits that the target C preprocessor can use for signed integer math.
TargetPreprocMaxBitsUint
int - 32
Specify the maximum number of bits that the target C preprocessor can use for unsigned integer math.

Related Topics