Programmable Devices
CPLDs, FPGAs, SoC FPGAs, Configuration, and Transceivers
21615 Discussions

read from scfifo wrong!how to use it?

Altera_Forum
Honored Contributor II
1,692 Views

read from scfifo wrong! 

my fist read data should be 40h,but now is 00h. 

left picture is from ALERA ,right picture is from my singalTapII, 

whether phase position has some problem?
0 Kudos
5 Replies
Altera_Forum
Honored Contributor II
633 Views

i dont know ,hope some proficient help you.

0 Kudos
Altera_Forum
Honored Contributor II
633 Views

your read data is 40h(signaltap), it is readout after rdreq pulse, so what is the problem?

0 Kudos
Altera_Forum
Honored Contributor II
633 Views

my fist read data should be 40h,but now is 00h.(the data read out is prior!)

0 Kudos
Altera_Forum
Honored Contributor II
633 Views

What settings did you use when you instantiated the scfifo? 

Your results look consistent. You need to put rdreq at 1 before the rising edge of your clock. In your case the rdreq is taken in account one cycle after your green line.
0 Kudos
Altera_Forum
Honored Contributor II
633 Views

The results look correct to me too. rdreq is not asserted for the clock pulse under the green bar, but on the next clock edge (when rdreq is asserted) 0x40 comes out of the FIFO.

0 Kudos
Reply