MATLAB: Does “hdldispmdlparams” return model parameters when “gcb” is passed in

HDL Coder

I am trying to display the parameters of my HDL block using the following command:
>> hdldispmdlparams(gcb)
Why is the function returning model parameters instead of the parameters for the block that is being passed in?

Best Answer

The function 'hdldispmdlparams' always displays model parameters. A block handle is accepted as an input, but the function will output the parameters of the model that contains the block handle being passed in, and not the parameters of the block itself.
The function 'hdldispblkparams' should be used instead to display HDL block parameters.