# US 6,337,893 B1 · Non-power-of-two grey-code counter system having binary incrementer with counts distributed with bilateral symmetry

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 6,337,893 B1
- Document ID: US6337893B1
- Status: Granted
- Kind: B1
- Application number: 09/644,348
- Filed: 2000-08-23
- Granted: 2002-01-08
- Earliest claimed: 2000-08-23
- Web page: https://patentgrep.com/patent/US6337893B1

## CPC

- G06F 5/14: for overflow or underflow handling, e.g. full or empty flags
- H03K 23/005: {using minimum change code, e.g. Gray Code}
- G06F 2205/102: Avoiding metastability, i.e. preventing hazards, e.g. by using Gray code counters
- G06F 2205/106: Details of pointers, i.e. structure of the address generators
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)
- H03K: PULSE TECHNIQUE (measuring pulse characteristics G01R; modulating sinusoidal oscillations with pulses H03C; transmission of digital information H04L; discriminator circuits detecting phase difference between two signals by counting or integrating cycles of oscillation H03D3/04; automatic control, starting, synchronisation or stabilisation of generators of electronic oscillations or pulses where the type of generator is irrelevant or unspecified H03L; coding, decoding or code conversion, in general H03M)

## Abstract

A gray-code counter system (AP1) for a RAM-based FIFO comprises a read pointer (10), a write pointer (20), and a detector (30). The read pointer includes a gray-code decoder (11), a binary incrementer (12), a gray-code encoder (13), and a register (14) that holds the pointer count). The binary incrementer increments by 1 except when the input is 0110 (decimal 6) or 1110 (decimal 14); in these cases, it increments by 3. The result is a 4-bit modulo-12 gray-code sequence with the twelve allowed gray-code values being distributed among the sixteen possible 4-bit gray code values with translational and reflective bilateral symmetry. The write pointer is similar. Because of the translational symmetry, detectors that work with counters with modulo numbers that are power of two work with the corresponding non-power-of-two counter to provide “full” and “empty” indications. When read and write counts differ at the two most-significant bit positions but are equal at the remaining bit positions, the detector provides a “full” indication for a 6-count FIFO. The gray-code counter design is scaleable to any non-power-of-two modulo number divisible by four.
