FIFO depth

V

vishnuprasanth

I have doubt in calculating FIFO depth.
Transmitter is writing 16 bit data with a frequency of 40 KHz.
Receiver is reading 8 bit data with a frequency of 60 KHz.
What is the depth of FIFO I need to use and how I need to calculate
the FIFO depth?
 
N

naliali

I have doubt in calculating FIFO depth.
Transmitter is writing 16 bit data with a frequency of 40 KHz.
Receiver is reading 8 bit data with a frequency of 60 KHz.
What is the depth of FIFO I need to use and how I need to calculate
the FIFO depth?

you can consider one second or any scaled period of time(e.g. 1ms) and
calculate how many inputs your FIFO will have in this period assuming
16 bit data with 40kHz for writing rate. then calculate the depth of
your FIFO knowing the reading rate and the whole data length. the
result is like :

16 bit * 40 KHz = 640k bits/second = writing rate
8 bit * 60 KHz = 480k bits/second = reading rate

if you'd like to write in the FIFO contineusley then, you can't read
all its contents before it's overwritten! unless you have a clock
enable or handshake signal that limits your writing procedure. is it
the case? if you have only a clock enable that limits writing rate,
then its period is needed. but if you have a handshake signal you can
choose any length for your FIFO for example 1kbyte, and use a 'full-
empty' flag to set/reset a 'ready' signal for handshaking.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,054
Latest member
TrimKetoBoost

Latest Threads

Top