HDL Code Generation 2D-matrices
1 次查看(过去 30 天)
显示 更早的评论
I have a question to ask, my input is 4 images mixed 4x200000 matrix and a 4x4 matrix, to do matrix multiplication. It told me "HDL Code generation does not support 2D-matrices as function inputs." How can I change it?
0 个评论
回答(1 个)
Tim McBrayer
2018-1-30
The only current way to do this is by implementing your own matrix multiplication. You will need 200000 * 4 * 4 = 3200000 multiplications to compute this matrix product, so I would not suggest a fully parallel approach. You could use the HDL multiply-accumulate block or the dot product block to compute each output value, and implement selection logic to feed the single-pixel compute core the correct set of vector inputs from your data source.
4 个评论
Walter Roberson
2018-2-23
Is your code written in MATLAB, or are you using Simulink? If you are using Simulink then there are blocks you can call to serialize and deserialize; in particular there is the Vision HDL blocks .
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!