hdl code generation from simulink model

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. during the code generation I commented the two input From File, which was demanded by the 'HDL Code Generation Check Report' as error correction.
So the two inputs of the model still with no data, I don't know if this is the cause of the error.
Thank you so much for your help and time.

답변 (1개)

Kiran Kintali
Kiran Kintali 2021년 6월 24일

0 개 추천

All input ports are connected to DUT shold be connected with valid sample times.
Run "hdlsetup" command and make sure all sample times are defined. No pink (inf sample time color) inside the DUT. If there are constants associate sample time or add -1 as sample time to inherit sample times for back propagation.
Run this check to make sure you do not have invalid sample times in the DUT
Check for infinite and continuous sample time sources

댓글 수: 3

Bilal MEJMAA
Bilal MEJMAA 2021년 6월 25일
편집: Bilal MEJMAA 2021년 6월 25일
Thank you so much Mr Kiran.
I have already runned the "hdlsetup", and yes indeed I have the two entries signals in pink. How can I associate sample time or add -1 as sample time (Is it the setting of block or hdl generation settings). I tried to change the sample time of "From File" to (-1), I tried also the "Check source blocks with infinite or continuous sample time", and I clicked "modify settings", and I get the "Check for infinite and continuous sample time sources" passed. But I still have the same error and the same pink color.
Bilal MEJMAA
Bilal MEJMAA 2021년 6월 25일
Hello again Mr Kiran Sorry for disturbing you, I want to get you the complete idea. When I commant the two "From File" block I get the pnk color, but When I uncoment them the signals sample time looks perfect (no pink), but I get another error, which says I should commant the "From File" blocks to correct the error.
Thank you sir, and everyone can help me.
Bilal MEJMAA
Bilal MEJMAA 2021년 6월 25일

댓글을 달려면 로그인하십시오.

카테고리

도움말 센터File Exchange에서 Code Generation에 대해 자세히 알아보기

제품

릴리스

R2020a

질문:

2021년 6월 24일

댓글:

2021년 6월 25일

Community Treasure Hunt

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

Start Hunting!

Translated by