필터 지우기
필터 지우기

[Simulink] get the parameter of the block to be variable in HDL

조회 수: 2 (최근 30일)
takaka
takaka 2022년 12월 20일
답변: Kiran Kintali 2022년 12월 21일
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,

답변 (1개)

Kiran Kintali
Kiran Kintali 2022년 12월 21일
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

카테고리

Help CenterFile Exchange에서 HDL Coder에 대해 자세히 알아보기

제품


릴리스

R2021a

Community Treasure Hunt

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

Start Hunting!

Translated by