How to generate HDL code for 2-D matrices
Mostrar comentarios más antiguos
I am working on HDL code gen project. I've designed an FFT algorithm , and trying to generate HDL code for that. But the algorithm consisting of matrix of inputs , twiddle factors and their multiplications which are of two dimensional matrices. HDL coder is unable to generate code for 2-D matrices.
What do I need to do to generate HDL code for my Algorithm.
Example: Use Cooley-Tukey Divide and Conquer Technique of FFT Computation.
R1(16,4) = x(16,4) * w4(4,4);
R2(16,4) = w16(4,4) .* R1(16,4);
Y(16,4) = R2(16,4) * w(4,4) ;
x= input; Y=output;w4w16,w4 are twiddle factors.
3 comentarios
Azzi Abdelmalek
el 28 de Jun. de 2014
What do you mean? explain with an example
the cyclist
el 30 de Jun. de 2014
Editada: the cyclist
el 30 de Jun. de 2014
Shravankumar, maybe we weren't clear enough when we asked for examples. Although the conceptual background is helpful, what is the most useful is one or two specific, numerical example of the input and output that you expect.
What is the size and shape of x, w4, and w6? Give a specific example, but clear enough that we can infer the general rule for the multiplication.
Shravankumar P
el 1 de Jul. de 2014
Respuesta aceptada
Más respuestas (1)
the cyclist
el 28 de Jun. de 2014
Is this what you mean?
Bvec = 1:9;
B = reshape(3,3);
A = B';
C = A*B;
If not, then my suggestion is the same as Azzi's. A simple example or two of the input/output you expect would be very helpful.
1 comentario
Shravankumar P
el 30 de Jun. de 2014
Categorías
Más información sobre Code Generation en Centro de ayuda y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!