Clear Filters
Clear Filters

Discreate Integration in HDL coder for FPGA

3 views (last 30 days)
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

Accepted Answer

Daichi
Daichi on 18 May 2023
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

More Answers (0)

Products


Release

R2021b

Community Treasure Hunt

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

Start Hunting!