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