How to Select FIFO: A Practical Guide
Introduction
First-In, First-Out (FIFO) is a type of memory or data-buffering device that stores information in the order it is received and releases it in the same order. The first data item written into the FIFO is the first item read out. FIFO memory is commonly used in digital electronics to manage data transfer between circuits or systems operating at different speeds or using different clock domains.
FIFO devices are widely used in microcontrollers, FPGAs, digital signal processing systems, communication equipment, networking devices, industrial automation, video processing, and data acquisition systems. They help prevent data loss when a source produces information faster than the destination can process it temporarily.
Selecting the right FIFO requires evaluating storage capacity, data width, read and write speeds, clocking architecture, latency, interface compatibility, and status-control features. The following factors help engineers choose a suitable FIFO memory component for their electronic applications.
1. Identify the Application and Data Buffering Requirements
Start by understanding why FIFO buffering is required in the electronic system.
Common FIFO applications include:
Communication systems: Temporarily storing incoming and outgoing data packets.
Networking equipment: Managing data flow between interfaces operating at different rates.
Digital signal processing: Buffering samples between processing stages.
Video processing: Handling pixel data and differences in processing timing.
Industrial automation: Managing communication between controllers, sensors, and peripheral devices.
Microcontroller and FPGA systems: Temporarily storing data between processing operations.
Determine the source data rate, destination processing rate, expected burst length, and maximum time the data may remain buffered.
For example, if a sensor generates data in short bursts while a microcontroller reads it periodically, a FIFO can temporarily hold the incoming samples until the processor is ready.
Also determine whether the application requires continuous data transfer, temporary buffering, or communication between independent processing blocks. These requirements influence the FIFO architecture and capacity.
2. Select the Appropriate FIFO Type
FIFO devices are available in different architectures depending on how data is written and read.
Common FIFO types include:
Synchronous FIFO: Uses a common clock for both read and write operations. It is suitable when the source and destination operate within the same clock domain.
Asynchronous FIFO: Uses separate read and write clocks. It is useful when two circuits operate at different clock frequencies or independently timed clock domains.
Single-clock FIFO: Uses one clock signal to control both data input and output operations.
Dual-clock FIFO: Provides independent clock inputs for reading and writing.
Integrated FIFO: Built into microcontrollers, FPGAs, communication controllers, and other digital ICs.
External FIFO memory: A separate component connected to the host processor or digital circuit.
For example, an FPGA receiving data from an external communication interface may require an asynchronous FIFO if the interface and internal processing logic use different clocks.
Choose the FIFO architecture according to the clocking arrangement and data-transfer requirements. Incorrect clock-domain handling can cause data corruption or unreliable operation.
3. Determine FIFO Memory Depth and Data Width
Memory depth and data width determine how much information the FIFO can store.
Memory depth refers to the number of data words that can be stored, while data width refers to the number of bits in each word.
For example:
256 × 8 FIFO stores 256 words of 8 bits each.
512 × 16 FIFO stores 512 words of 16 bits each.
1024 × 32 FIFO stores 1,024 words of 32 bits each.
The total storage capacity can be calculated as:
[
\text{FIFO Capacity} = \text{Depth} \times \text{Width}
]
For example, a 512 × 16 FIFO provides 8,192 bits, equivalent to 1 KB of storage.
Calculate the required depth based on the maximum expected data burst and the time difference between writing and reading operations. Select a suitable data width that matches the source and destination interfaces.
Avoid selecting a FIFO with insufficient depth, as it may overflow and lose incoming data. Excessively large capacity can increase cost and power consumption.
4. Evaluate Read and Write Speed
The FIFO must support the data rates required by the connected electronic circuits.
Important specifications include:
Maximum write clock frequency.
Maximum read clock frequency.
Read access time.
Write cycle timing.
Data setup and hold time.
Output data delay.
Throughput and latency.
For synchronous FIFOs, verify that the clock frequency meets the application's requirements.
For asynchronous FIFOs, check the permitted read and write clock frequencies independently, along with the required clock relationship and operating restrictions.
For example, a high-speed communication interface may generate data at a much higher rate than the receiving processor can immediately handle. The FIFO must accept incoming data without exceeding its maximum write rate.
Also consider the average data rate and temporary peak rate. The FIFO should support the expected workload without creating a bottleneck.
5. Check Full, Empty, and Status-Control Signals
FIFO devices generally provide status signals that help the host circuit determine whether data can safely be written or read.
Important signals and features include:
Full flag: Indicates that the FIFO cannot accept additional data.
Empty flag: Indicates that no valid data is currently available to read.
Almost-full flag: Indicates that the FIFO is approaching its storage limit.
Almost-empty flag: Indicates that the FIFO contains only a small amount of data.
Programmable thresholds: Allow the system to configure warning levels.
Overflow and underflow detection: Help identify invalid write or read operations.
For example, a microcontroller can check the empty flag before reading data. Similarly, a data source can monitor the full flag to avoid writing beyond the FIFO's available capacity.
Programmable threshold signals are useful in systems that need to generate interrupts or apply flow control before the FIFO becomes completely full or empty.
Verify whether the status signals are active-high or active-low and understand their timing behaviour, particularly for asynchronous FIFO devices.
6. Consider Latency, Data Format, and Interface Compatibility
FIFO latency determines how long it takes for written data to become available at the output.
Different FIFO devices may use different output architectures:
Standard read mode: Data is presented according to the device's read-control timing.
First-word fall-through (FWFT): The first available data word appears at the output without requiring a separate initial read operation, subject to the device's timing specifications.
Show-ahead mode: Allows the next available data word to be visible before the read command is issued.
Choose the appropriate mode based on the receiving circuit's requirements.
Also verify data bus width, input and output logic levels, read and write enable signals, reset requirements, and interface timing.
Some FIFO devices support programmable data widths or byte-level write enables, while others use fixed-width data words.
For FPGA and microcontroller applications, check whether the FIFO is compatible with the available hardware interface and whether additional control logic is required.
7. Verify Power Supply, Package, and Environmental Requirements
Power and physical characteristics must match the electronic system.
Review these specifications:
Operating supply voltage.
Input and output voltage levels.
Operating current.
Standby power consumption.
Clock input requirements.
Reset voltage and timing.
Operating temperature range.
Low-power FIFO devices may be preferable for portable and battery-operated products. High-speed systems should also consider power consumption at the intended clock frequency.
Common package options vary by manufacturer and may include TSSOP, QFN, BGA, and other surface-mount packages.
Check package dimensions, pin configuration, PCB footprint, pin spacing, and thermal requirements.
For high-speed designs, follow the manufacturer's PCB layout recommendations for clock routing, signal integrity, grounding, and power decoupling. Also verify the temperature rating for industrial, automotive, or outdoor applications.
8. Evaluate Reliability, Manufacturer Support, and Total Cost
Before finalising a FIFO, review the complete manufacturer datasheet and confirm that the component meets the application's data-transfer, electrical, timing, and environmental requirements.
Check the following:
Memory depth and data width.
Read and write clock limits.
Synchronous or asynchronous operation.
Full and empty flag behaviour.
Latency and output mode.
Reset and recovery requirements.
Operating voltage and temperature range.
Lifecycle status and availability.
For production designs, consider manufacturer reputation, technical documentation, development support, and long-term supply availability.
Where possible, test the FIFO under realistic operating conditions. Verify maximum data bursts, simultaneous read/write operations, clock variations, reset behaviour, and overflow or underflow handling.
Also consider whether an external FIFO IC is necessary or whether an integrated FIFO inside an FPGA, microcontroller, or communication controller would be more suitable.
Finally, compare the total implementation cost, including the FIFO component, PCB space, external control logic, power requirements, firmware development, and testing.
Conclusion
Selecting the right FIFO requires careful evaluation of memory depth, data width, synchronous or asynchronous architecture, read and write speeds, latency, status flags, interface compatibility, power consumption, and package requirements.
The ideal FIFO depends on the application. Networking and communication systems may prioritise high throughput, digital signal processing requires sufficient buffering capacity, and embedded controllers may need reliable data transfer between different processing stages.
Always verify the manufacturer's datasheet and calculate the required buffer capacity using the expected data rates and processing delays. Following these steps helps engineers select reliable FIFO components for communication systems, FPGA designs, industrial automation, networking equipment, and other digital electronic applications.