Problems encountered when converting simulink model, including From File block, to hdl code.

2 ビュー (過去 30 日間)
Hello, I am trying to generate VHDL code for my simulink project. I am using matlab 2020 and my model has two adress entries, which are connected to a FROM File that read adress data from a '.mat' file.
I get this final error as shown in the figure.
Thank you so much for your help and time.
  1 件のコメント
Bilal MEJMAA
Bilal MEJMAA 2021 年 6 月 28 日
編集済み: Bilal MEJMAA 2021 年 6 月 28 日
both From File blocks read address from mat file as next:
0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1 1.1 1.2 1.3 1.4 1.5 1.6 1.7 1.8 1.9 2 2.1 2.2 2.3 2.4 2.5 2.6
1 2 3 4 5 6 7 8 9 10 11 12 13 1 2 3 4 5 6 7 8 9 10 11 12 13
The First row is time steps from 0.1 to 2.6 and the seconde shows the integer control valus of the "Layer" input which are a repeated sequence from & to 13.
Note: Ihave already commant out the two blocks, but I get an "inf" signal even I runned hdlsetup.

サインインしてコメントする。

採用された回答

Kiran Kintali
Kiran Kintali 2021 年 6 月 30 日
FromFileBlock can be used only as a source in the test bench outside the design under test (DUT). The source block is not supported for HDL code generation.

その他の回答 (0 件)

Community Treasure Hunt

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

Start Hunting!

Translated by