Content deleted Content added
m clean up |
→Status flags: All bits except the MSB must be equal, not just a single LSB (singular). Rephrased to clarify. |
||
Line 77:
=== Status flags ===
Examples of FIFO status flags include: full, empty, almost full, and almost empty. A FIFO is empty when the read [[address register]] reaches the write address register. A FIFO is full when the write address register reaches the read
In both cases, the read and write addresses end up being equal. To distinguish between the two situations, a simple and robust solution is to add one extra [[bit]] for each read and write address which is inverted each time the address wraps. With this set up, the disambiguation conditions are:
* When the read address register equals the write address register, the FIFO is empty.
* When the read
== See also ==
|