how can I make the input to HDL FIFO Scalar ?

I have used the HDL FIFO block of dhldemolib in Simulink but when i start "Run compatibility check" to generate the VHDL code, an error appears which state that the HDL FIFO only supports a scalar input. how can I solve such a problem. i tried too many solutions but non of them works ??? any one can help me, please?

답변 (1개)

Tim McBrayer
Tim McBrayer 2014년 4월 14일

0 개 추천

The signal attached to the HDL FIFO's 'In' port must be a scalar; its dimensions must be static, a [1x1] matrix. To help you understand what your Simulink signal dimensions are, make sure the following settings are selected on your model:
Display>Signals & Ports>Signal Dimensions
Display>Signals & Ports>Wide Nonscalar Lines
The Display>Signals & Ports>Port Data Types setting can also be very useful in diagnosing type issues in Simulink.

댓글 수: 2

Esmail Abo-basha
Esmail Abo-basha 2014년 4월 15일
편집: Esmail Abo-basha 2014년 4월 15일
the input to the input port of HDL FIFO is int8 and to the push and pop ports are boolean. i can't figure out what is wrong ??? how can i make int8 scalar ???
please i need to know the answer
I have put two screen shots of my design on drop box and i wish if you can take a look at them. in the first screen shot https://www.dropbox.com/sh/4zq1e6hkxt9joh7/1Ce8sKNG6Q/Screenshot%202014-04-17%2011.03.34.png
the design report 3 errors state that the HDL FIFO accept only Scalat input data type
in the second photo i made a small modification as you can see https://www.dropbox.com/sh/4zq1e6hkxt9joh7/dotLTAT_-R/Screenshot%202014-04-17%2011.12.28.png
and the design reports no errors i can't figure out what is wrong with the first photo ?? i didn't change any data type i just separated between the two input !!!
i hope i don't waste your time and thank you very much for your help

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

카테고리

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

제품

질문:

2014년 4월 13일

댓글:

2014년 4월 17일

Community Treasure Hunt

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

Start Hunting!

Translated by