Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
16 years ago

read from scfifo wrong!how to use it?

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?

5 Replies

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

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

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

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

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    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.
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    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.