HDL coder for Kalman filter does not simulate

1 回表示 (過去 30 日間)
Reddy Eluganti
Reddy Eluganti 2017 年 12 月 27 日
コメント済み: Anh Tran 2018 年 1 月 4 日
I am using the example code mlhdlc_kalman_hdl.m and its mlhdlc_kalman_hdl_tb.m to generate the hdl code. I was able to generate the code, but when i run the test bench the outuputs y1 and y2 never change throughout the simulation. Has anyone ever tested this implementation.

回答 (1 件)

Anh Tran
Anh Tran 2018 年 1 月 3 日
Hi Reddy,
Are you referring to this example? Notice from figure 4 that the plot of the fixed-point output and the floating-point output looks almost the same. The accuracy difference is so small that you can only observe in "error" plots.
Anh
  2 件のコメント
Reddy Eluganti
Reddy Eluganti 2018 年 1 月 3 日
Yes I am talking about the same one. But my issue was that y1 and y2 were at (0,0). This was because I did not perform the test numeric's step once I did that the example worked. So basically I skipped couple of steps but if you follow the example correctly it will work.
Anh Tran
Anh Tran 2018 年 1 月 4 日
Great to hear that it works for you. Cheers!

サインインしてコメントする。

Community Treasure Hunt

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

Start Hunting!

Translated by