Ring Buffer Circuit Gray Code Pointer Full Empty Detection

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Asynchronous ring buffer circuits face challenges in accurately detecting full and empty states due to simultaneous changes in additional bits when using gray-encoded pointers, leading to erroneous operations and increased bit requirements for addressing memory.

Innovation Solution

Implementing (N+1)-bit gray code counters for write and read pointers, along with converter circuits to convert these codes into N-bit addresses, allowing for correct detection of full and empty states regardless of synchronization between read and write operations.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Measurement precision

If (N+1)-bit gray code counters are used for write and read pointers, then accurate detection of full and empty states is enabled, but the device complexity increases due to additional converter circuits

Engineering Contradiction:
Improvedetection accuracy of full and empty statesVSAvoidcomplexity of pointer and converter circuit structure
Core Design Contradiction:
Measurement precisionVSDevice complexity

Solution Approach 1:

The pointer system is segmented into two functional parts: an (N+1)-bit gray code counter for accurate state detection, and an N-bit address converter for memory access. This segmentation allows each component to perform its specific function optimally without requiring the entire system to be over-engineered.

Inventive Principle:
Principle #1Segmentation

Solution Approach 2:

The address converter circuit acts as an intermediary between the (N+1)-bit gray code pointer and the N-bit memory address system. It translates the extended pointer format into standard memory addresses, enabling accurate state detection while maintaining compatibility with existing memory structures.

Inventive Principle:
Principle #24Intermediary (Mediator)

2Measurement precision

If additional bits are used to distinguish full and empty states, then state detection accuracy improves, but the bit requirements for addressing memory increase

Engineering Contradiction:
Improveaccuracy of full and empty state detectionVSAvoidnumber of bits required for memory addressing
Core Design Contradiction:
Measurement precisionVSQuantity of substance

Solution Approach 1:

The bit structure is segmented into an (N+1)-bit gray code pointer for state detection and an N-bit address field for memory access. The additional bit is isolated to the pointer portion and does not propagate to the address field, preventing bloat in memory addressing requirements.

Inventive Principle:
Principle #1Segmentation

Solution Approach 2:

The N-bit address is effectively copied from the lower N bits of the (N+1)-bit pointer, while the most significant bit is used exclusively for state detection. This copying approach reuses existing address bits rather than creating redundant address fields.

Inventive Principle:
Principle #26Copying

3Adaptability or versatility

If gray-encoded pointers are used for asynchronous read and write operations, then synchronization requirements are reduced, but erroneous operations may occur due to simultaneous changes in additional bits

Engineering Contradiction:
Improveability to perform asynchronous operationsVSAvoidcorrectness of pointer operations during state transitions
Core Design Contradiction:
Adaptability or versatilityVSReliability

Solution Approach 1:

The pointer system separates state detection (using the full (N+1)-bit gray code) from address generation (using only the lower N bits). This segmentation ensures that state transitions are detected accurately while address updates follow standard binary counting rules, avoiding the metastability issues of simultaneous multi-bit changes.

Inventive Principle:
Principle #1Segmentation

Solution Approach 2:

The address converter circuit serves as an intermediary that translates gray code transitions into safe address updates. It ensures that address changes occur in a controlled manner while the full gray code value is used for reliable state detection, preventing erroneous operations during asynchronous transitions.

Inventive Principle:
Principle #24Intermediary (Mediator)

Data Source

PatentUS8510503B2Ring buffer circuit and control circuit for ring buffer circuit
Publication Date: 2013.08.13 RENESAS ELECTRONICS CORP
  • US8510503B2 patent drawing
  • US8510503B2 patent drawing
  • US8510503B2 patent drawing

AI summary

Provided are a ring buffer circuit in which a data full state and a data empty state may be correctly detected without depending on whether read and write operations are synchronous or asynchronous with each other, and a control circuit for the ring buffer circuit. The ring buffer circuit includes: a read and write memory having addresses specified by N bits; a write address counter pointer and a read address counter pointer which are provided for the read and write memory to count (N+1)-bit gray codes; and write and read address converter circuits provided to convert the (N+1)-bit gray codes output from the write and read address counter pointers into N-bit addresses which may be directly designated as write and read addresses of the read and write memory.