Can we change the parameter values of the Simulink blocks in the HDL toolbox?

1 view (last 30 days)
Hello, I am trying to create a toolchain from Simulink to an FPGA platform, and I am using the HDL Simulink block to design an OFDM system. Can I customize the parameter values of the HDL toolbox blocks? I haven't been able to find any source code for the HDL toolbox blocks.

Answers (1)

Pavan Sahith
Pavan Sahith on 19 Jun 2024
Hello Roshini,
I see that you are looking to customize the parameter values of the HDL blocks.
You can customize the parameter values of HDL toolbox blocks in Simulink when designing systems like OFDM for FPGA platforms. MATLAB provides several ways to set and retrieve these parameters using HDL-specific functions.
To set parameters for HDL blocks, you can use the hdlset_param function. For instance, to set the ClockRatePipelining parameter for a subsystem, you can use the following command:
hdlset_param('my_dut', 'ClockRatePipelining', 'off');
Similarly, you can get the values of HDL block parameters using the hdlget_param function. For example, to retrieve the OutputPipeline parameter value of a specific block, you can use:
p = hdlget_param('sfir_fixed/symmetric_fir', 'OutputPipeline');
disp(p);
You can refer to the following MathWorks documentation which might help you
I hope this will help you getting started

Community Treasure Hunt

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

Start Hunting!