필터 지우기
필터 지우기

how to make HDL coder optimize the multiplication with a small constant to shift right?

조회 수: 1 (최근 30일)
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
Zora Aria Jade
Zora Aria Jade 2023년 4월 27일
Thanks for your patience! The model can run without any error. when uncheck the "Generate test bench" box,I meet the same question in last comment;when I generate HDL code, there is error:
they both say cannot connect to the model.
But The subsystem of this model can sucessfully generate HDL code before coding the signals as fixed-point.Although it still cannot generate testbench:
Bharath Venkataraman
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개)

태그

제품


릴리스

R2022a

Community Treasure Hunt

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

Start Hunting!

Translated by