While running Code Advisory for my model I got warning as 'integer word lengths is not compliant with hardware implementation settings'.

3 Ansichten (letzte 30 Tage)
For my model in Hardware implementation setting the lowest no.of bits is 16(int 16), but in my model if I use int 8 data type the code advisory is showing as warning as 'The following model objects use integer word lengths that are not compliant with hardware implementation settings'. So in this case will it cause any issue with the generated code and will it result to any wrong calculations?

Antworten (1)

aditi bagora
aditi bagora am 7 Jan. 2025
The warning message, "The following model objects use integer word lengths that are not compliant with hardware implementation settings," indicates that the integer data type's word length you're using doesn't align with the hardware settings. This mismatch can cause runtime errors.
To resolve this issue, adjust the integer so its length does not exceed the allowed number of bits. You can find the permitted number of bits in the Configuration Parameters dialog box under the Hardware Implementation > Device details pane.
For further guidance on checking integer word lengths, please refer to the MathWorks documentation: https://in.mathworks.com/help/slcheck/ref/check-integer-word-length.html

Kategorien

Mehr zu Embedded Coder finden Sie in Help Center und File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by