×

FIFO memory system and method with improved determination of full and empty conditions and amount of data stored

  • US 6,434,642 B1
  • Filed: 10/07/1999
  • Issued: 08/13/2002
  • Est. Priority Date: 10/07/1999
  • Status: Expired due to Term
First Claim
Patent Images

1. A first in, first out (FIFO) memory system, comprising:

  • a memory having a plurality of locations each having an address;

    a write address counter coupled to the memory for generating a sequence of write addresses in accordance with a circular counting sequence, wherein each write address of the sequence of write addresses accesses an associated location within the memory into which data is written during a write operation, and wherein a current write address is generated at a selected moment in time;

    a read address counter coupled to the memory for generating a sequence of read addresses in accordance with the circular counting sequence, wherein each read address of the sequence of read addresses accesses an associated location within the memory from which data is read during a read operation, and wherein a current read address is generated at the selected moment in time; and

    a flag control circuit coupled to receive the sequence of read addresses and the sequence of write addresses from the read and write address counters, wherein the flag control circuit includes a comparator circuit for generating an EMPTY control signal when the current read address equals the current write address at the selected moment in time, and for generating a FULL control signal when the current write address is equal to a last-used read address at the selected moment in time, wherein the last-used read address immediately precedes the current read address in the circular counting sequence, wherein the flag control circuit further comprises;

    a read address register section including a first binary-to-Gray-code converter for converting the current read address into a next-to-be-used Gray-code read address value, and a plurality of registers for storing a current Gray-code read address value and a last-used Gray-code read address value, wherein the last-used, current, and next-to-be-used Gray-code read address values are sequential values in a Gray-code counting sequence; and

    a write address register section including a second binary-to-Gray-code converter for converting the current write address into a next-to-be-used Gray-code write address value, and a plurality of registers for storing a current Gray-code write address value, wherein the current and next-to-be-used Gray-code write address values are sequential values in the Gray-code counting sequence;

    wherein the comparator circuit generates the EMPTY control signal by comparing the current Gray-code read address value and a the current Gray-code write address value, and generates the FULL control signal by comparing the current Gray-code write address value and the last-used Gray-code read address value.

View all claims
  • 1 Assignment
Timeline View
Assignment View
    ×
    ×