[Simulink] get the parameter of the block to be variable in HDL
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
Hi,
I want to make HDL (verilog) code from Simulink, and all of the parameters have to be variables.
For example, in "Bit Shift" block in Simulink, there is "Shift Length" parameter.
How can I make this parameter to be variable in HDL?
I want to set the value to this parameter in the model from the "input" port.
Best,
0 Kommentare
Antworten (1)
Kiran Kintali
am 21 Dez. 2022
HDL Coder supports bitshift block with shift length specified via input port.
Reach out to technical support on your specific usecase of parametrizing blocks which do not have such behaviors.
If your intent is tunability of the parameters at run time you should consider using
Generate DUT Ports for Tunable Parameters
0 Kommentare
Siehe auch
Kategorien
Mehr zu HDL Coder finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!