Continue to Site

Welcome to

Welcome to our site! is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

How to decide on the depth of the FIFO according to the speed of the two sides?

Not open for further replies.


Junior Member level 2
Sep 30, 2007
Reaction score
Trophy points
Activity points
Hi all:
How do i decide the depth of the FIFO according to the speed of the two sides.
thank you very much

Re: depth of the FIFO

The depth of the fifo should be such that there would not be an overflow when you have high speed write clk and a low speed read clk.

Re: depth of the FIFO

Size of the FIFO basically refers to the amount of data available at a given time. In asynchronous FIFO this depends on both read and write clock domain frequencies and number of data written and read (data rate). Data rate can vary depending on the two clock domain operation and requirement (and of course frequency!). The worst case condition is the maximum data rate difference between read and write clock. This can happen when data rate of writing operation is maximum and for read operation data rate is minimum.

Let fwrite--> be the frequency of write clock domain
Fread--> be the frequency of read clock domain.
Bmax--> burst of data written or maximum number of data bytes can be written
Bwrite--> number of bytes that is written per clock cycle
Bread-->number of bytes that is read per clock cycle

Then FIFO size can be given by,

Fsize=Bmax- [Bmax.fread.Bread/fwrite.Bwrite]

If number of bytes read or written per clock cycle is one then we have,


In our case, fwrite=10 MHz

Fread=2.5 MHz

Let Bmax=2 then Fsize=2-[(2*2.5)/10] =2-0.5=1.5~2

If Bmax=5, then Fsize=5-[(5*2.5)/10]=5-1.25=3.75~4.
Re: depth of the FIFO

yeah,i do agree with the bro. of the 4th floor.

depth of the FIFO

I think, the FIFO size is not decided by the speed of the two side, normally is depend on the burst size the maximum fetch size. and how is the exact depth, is case by case.

depth of the FIFO

This question has been posted in this forum many times. Try to find this posts.

Not open for further replies.

Part and Inventory Search

Welcome to