How to configure number of CORDIC iterations used in Real Divide HDL Optimized Block?

3 views (last 30 days)
I'm trying to configure the Real Divide HDL Optimized block in the simulink. The man page says that the algorithm uses CORDIC to perform division internally. Also, it says that the number of iterations of the CORDIC are fixed to a number, in my case it is 18, which is way too much. I want to reduce it down and experiment with my code. When I try to change the MaximumShiftValue using the set_param(), the MATLAB throws an error saying no such parameter is present in the block. Also, when I try to configure this through GUI, I don't see the parameter their either. Please help.

Accepted Answer

Divyajyoti Nayak
Divyajyoti Nayak on 27 Feb 2025
Edited: Divyajyoti Nayak on 27 Feb 2025
I see that you're using MATLAB R2022b, but the 'CORDIC maximum shift value' parameter was added to the 'Real Divide HDL Optimized' block in MATLAB R2024b, hence the error. If you would like to make use of this parameter, I would suggest to update your MATLAB version to R2024b. Here's the part of the documentation which mentions this:

More Answers (0)

Products


Release

R2022b

Community Treasure Hunt

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

Start Hunting!