Can I define customized Bus Data Types as input data types to HDL Coder DUT?
4 ビュー (過去 30 日間)
古いコメントを表示
MathWorks Support Team
2019 年 1 月 31 日
編集済み: MathWorks Support Team
2023 年 8 月 18 日
Can I define customized Bus Data Types as input to HDL Coder DUT?
We normally define control registers which are bit fields (start bit, operation mode on 3-bits...). I tried to mimic this by defining a bus (Control_Bus) representing the control register structure. Unfortunately, I could not select AXI-4 Lite for the input with type Control_Bus.
採用された回答
MathWorks Support Team
2023 年 8 月 18 日
編集済み: MathWorks Support Team
2023 年 8 月 18 日
As of MATLAB R2018b, the HDL Coder's implementation of the AXI4 slave interface does not support bus data types. The workaround is to use the bitslice/bitconcat block on a uint input signal and slice it according to your custom data type. You will want to fully document your constructed data type and define what each bit position signifies.
0 件のコメント
その他の回答 (0 件)
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!