How set block parameter over Zynq AXIS Lite bus?

1 回表示 (過去 30 日間)
Luk McCregor
Luk McCregor 2022 年 5 月 20 日
コメント済み: Luk McCregor 2022 年 5 月 23 日
I need to change some parameters inside HDL Coder blocks during the execution (for example the value of the costant, HDL Counter, Compare To Constant,...) with the AXI4-Lite bus after the creation of the IP Core for Vivado. How can i do it? maybe with the ExportedGlobal declaration for the variables used?

採用された回答

Kiran Kintali
Kiran Kintali 2022 年 5 月 22 日
Generate DUT Ports for Tunable Parameters
Tunable parameters that you use to adjust your model behavior during simulation can map to top-level DUT ports in your generated HDL code. HDL Coder™ generates one DUT port per tunable parameter.
You can generate a DUT port for a tunable parameter by using it in one of these blocks:
  • Gain
  • Constant
  • MATLAB Function
  • MATLAB System
  • Chart
  • Truth Table
  • State Transition Table
These blocks with the tunable parameter can be at any level of the DUT hierarchy, including within a model reference.

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeHDL Coder についてさらに検索

製品

Community Treasure Hunt

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

Start Hunting!

Translated by