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

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 comentario

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.

Iniciar sesión para comentar.

 Respuesta aceptada

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.

Más respuestas (0)

Preguntada:

el 28 de Jun. de 2021

Respondida:

el 30 de Jun. de 2021

Community Treasure Hunt

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

Start Hunting!

Translated by