Need to convert parallel calculations to serial

1 view (last 30 days)
I was working on how to reduce my HDL code generated from Matlab Simulink HDL coder. Actually, my problems how to reduce number of multipliers. Let me here give a brief of my problem: 1- I have 3 arrays: SVT [10 rows, 21 cols] Alpha_n [10 rows, 1 col] test1 [1 row, 21 cols]
2- I have one constant signa1 (sigma1).
I'm doing the below equation (as shown in attached simulink model):
Aplha_n * exp {-|| SVT – test1 ||2 / sigma1 }
Then doing summation for the output of this equation.
This operation is done 10 times, as per number of SVT rows. The attached model is doing this in parallel. My question is that can we do this operation serialized using HDL coder? I mean calculate the equation for the first SVT row, then keeping it in memory, then calculate the equation for the second row of SVT, and then accumulating this output to the output of the first row...etc.
Thanks,

Answers (0)

Community Treasure Hunt

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

Start Hunting!