What does 'coder.int​ernal.inde​xShapeChec​k>>errORWa​rnIF .... code generation assumption about size violated' mean?

27 vues (au cours des 30 derniers jours)
I am attempting to convert a floating point model into fixed point code. I am recieving the error message presented below:
‘ Error using coder.internal.indexShapeCheck>>errOrWarnIF
Code Generation assumption about size violated. Run-time indexing is vector(vector) with different orientations, but compile-time assumption was matrix(vector) indexing.’
This message is from me using the dsp.FFT system object on a [1 2048] variable. The variable is bounded by coder.varsize in order for the system object to work. This code works within the MATLAB environment but in the HDL Coder and produces the above error.
(Unfortunatley due to security I am unable to attach code)
  3 commentaires
Joshua Ford
Joshua Ford le 16 Mai 2022
coder.varsize('NAME', [1 2048], [0 1])
ft(NAME)
Walter Roberson
Walter Roberson le 17 Mai 2022
Modifié(e) : Walter Roberson le 24 Mai 2022
That code appears to lock the first dimension as being exactly 1, therefore defining a vector of varying length. I do not understand how that could have resulted in matrix(vector) indexing.
Not unless that object has a matrix varsize? A second coder.varsize that forgot to lock the first dimension?

Connectez-vous pour commenter.

Réponses (1)

Kiran Kintali
Kiran Kintali le 22 Mai 2022
This error is unexpected. Please share a sample project file that reproduces the error or reach out to technical support. HDL Coder in general does not supprt variable dimensions.

Produits


Version

R2021a

Community Treasure Hunt

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

Start Hunting!

Translated by