While running Code Advisory for my model I got warning as 'integer word lengths is not compliant with hardware implementation settings'.
3 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
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?
0 Commenti
Risposte (1)
aditi bagora
il 7 Gen 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
0 Commenti
Vedere anche
Categorie
Scopri di più su Embedded Coder in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!