- hdlset_param - https://www.mathworks.com/help/hdlcoder/ref/hdlset_param.html
- hdlget_param: https://www.mathworks.com/help/hdlcoder/ref/hdlget_param.html
- https://www.mathworks.com/help/hdlcoder/ug/block-implementation-parameters.html
- https://www.mathworks.com/help/wireless-hdl/ug/ofdmmoddemod.html
Can we change the parameter values of the Simulink blocks in the HDL toolbox?
2 ビュー (過去 30 日間)
古いコメントを表示
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.
0 件のコメント
回答 (1 件)
Pavan Sahith
2024 年 6 月 19 日
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
0 件のコメント
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!