Discreate Integration in HDL coder for FPGA

4 次查看(过去 30 天)
Hello Dear all, I working on FPGA based controller which uses MATLAB/HDL blocks only. I want to make a integrator and applied many logic for same but unfortunately i did not get proper output. could you suggest some alternative for Integrator. I need proper output. Although it is working in simulation fine. Tfpga=50ns

采纳的回答

Daichi
Daichi 2023-5-18
Hi Sanjay,
Thank you for posting your question.
I think your design looks good, so I implement integrater like your design, and it looks work well.
I will attach some candidates, please check them.
Option 1:
You can use "Discrete-Time integrator" block, this block also generate HDL.
I consider this way is simplest.
Option 2:
I implemented like your design, it looks work well.
Option 3:
you can use Simpson's low to implement integral like that.
https://en.wikipedia.org/wiki/Simpson%27s_rule
Anyway, they looks good precision.
If you have to use fixed point, you can use fixed-point designer to adjast value range.
Best regard,
Daichi

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 HDL Coder 的更多信息

产品


版本

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by