how to make HDL coder optimize the multiplication with a small constant to shift right?
1 回表示 (過去 30 日間)
古いコメントを表示
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1366284/image.png)
mu2 is a very small constant ,which is on the order of 1e-6.
mu2 has to be multiplied by xi and yi.
xi times yi is variable which is on the order between 1 and 1e4.
I tried the shift arithmetic module but the result was wrong ಥ﹏ಥ
Thanks for helping me!
5 件のコメント
Bharath Venkataraman
2023 年 5 月 1 日
We may need to look at your model to see what the issue is. You can post it here if that is acceptable. Otherwise, it is best if you contact MATLAB technical support.
回答 (0 件)
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!