On 11/10/13 17:28, Ste_ee wrote:
> Hi all, i have this part of my function that must to be converted to vhdl, but hdl coder tell me "variable size matrix non supported" about these 4 rows:
>
>
> R_re(k,k+1:4) = Q_re(:,k).'*Arr(:,k+1:4)  ((Q_im(:,k).')*1)*Ai(:,k+1:4);
> R_im(k,k+1:4) = Q_re(:,k).'*Ai(:,k+1:4) + ((Q_im(:,k).')*1)*Arr(:,k+1:4);
>
> Arr(:,k+1:4) = Arr(:,k+1:4)  (Q_re(:,k)*R_re(k,k+1:4) Q_im(:,k)*R_im(k,k+1:4));
> Ai(:,k+1:4) = Ai(:,k+1:4)  (Q_re(:,k)*R_im(k,k+1:4) +Q_im(:,k)*R_re(k,k+1:4));
>
> The transpose function is supported, the multiplication too...what is wrong??
> Colon operator??
How big is R_re(k, k+1:4)? It depends upon the value of 'k'. The length of the 2nd
dimension can not be determined statically. Thus, this is a variable size matrix, which is
not supported.
Regards,

Tim McBrayer
MathWorks
