--- Quote Start ---
The strange behaviour as seen by signaltap does not make sense.
You better simulate your fifo on its own before moving to hardware.
--- Quote End ---
thanks a lot for your replying, kaz.
are you mean signaltap is unbelievable?
i do believe that signaltap is more believable than simulation, because it gives the direct result when the hardware is really working.
as figure shows, rdusedw jumps from zero to ox3ff when i just write into 4 bytes. i originally suspect the write clock instability, but it is alright seen from oscilloscope. the clock configured in signaltap is same as write clock of fifo, there cannot be clock frequency problem. so what's the possible reason for such situation? i need some advice.
in reality, reading and writing clock frequency is same, when some quantity data is written into fifo, it will be read out. under normal circumstances, a full fifo cannot be happen, not to mention now a full fifo results when i just write into 4-byte.