# US 2023/0236989 A1 · Methods for controlling asynchronous FIFO memory and data transmission system utilizing the same

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

- Number: US 2023/0236989 A1
- Document ID: US20230236989A1
- Status: Published application
- Kind: A1
- Application number: 17/881,634
- Filed: 2022-08-05
- Published: 2023-07-27
- Earliest claimed: 2022-01-27
- Assignees: Realtek Semiconductor Corp.
- Applicants: Realtek Semiconductor Corp.
- Inventors: YUEFENG CHEN; HUI GU
- Web page: https://patentgrep.com/patent/US20230236989A1

## CPC

- G06F 5/06: for changing the speed of data flow, i.e. speed regularising {or timing, e.g. delay lines, FIFO buffers; over- or underrun control therefor (G06F7/78 takes precedence)}
- G06F 12/124: {being minimized, e.g. non MRU}
- Y02D 10/00: Energy efficient computing, e.g. low power processors, power management or thermal management
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)
- Y02D: CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE

## Abstract

A method for controlling operations of an asynchronous FIFO memory includes: determining a current depth of the asynchronous FIFO memory according to at least one of a clock ratio, a burst length and a continuous transmission length, where the clock ratio is a ratio of a frequency of a first clock signal used by a master device to a frequency of a second clock signal used by a slave device; configuring one or more entries of the asynchronous FIFO memory to be used according to the current depth; and controlling a plurality of FIFO clock signals provided to the asynchronous FIFO memory according to the current depth. One FIFO clock signal corresponds to one entry, and one or more FIFO clock signals corresponding to one or more entries that are not configured according to the current depth are disabled.

## Claims

### Claim 1

A method for controlling operations of an asynchronous FIFO memory, wherein the asynchronous FIFO memory is coupled between a master device and a slave device for buffering data written by the master device, the method comprising:
determining a current depth of the asynchronous FIFO memory according to at least one of a clock ratio, a burst length and a continuous transmission length, wherein the clock ratio is a ratio of a frequency of a first clock signal used by a master device to a frequency of a second clock signal used by a slave device;
configuring one or more entries of the asynchronous FIFO memory to be used according to the current depth, wherein the asynchronous FIFO memory comprises a plurality of entries and the current depth is smaller than or equal to a total number of the entries; and
controlling a plurality of FIFO clock signals provided to the asynchronous FIFO memory according to the current depth, wherein one FIFO clock signal corresponds to one entry, and one or more FIFO clock signals corresponding to one or more entries that are not configured according to the current depth are disabled.

### Claim 2 (depends on 1)

The method for controlling operations of the asynchronous FIFO memory of claim 1, wherein the greater a difference between the frequency of the first clock signal and the frequency of the second clock signal, the smaller the current depth of the asynchronous FIFO memory.

### Claim 3 (depends on 1)

The method for controlling operations of the asynchronous FIFO memory of claim 1, wherein the longer the burst length, the greater the current depth.

### Claim 4 (depends on 1)

The method for controlling operations of the asynchronous FIFO memory of claim 1, wherein the longer the continuous transmission length, the greater the current depth.

### Claim 5 (depends on 1)

The method for controlling operations of the asynchronous FIFO memory of claim 1, further comprising:
updating a write pointer in response to a write operation of the master device, wherein the write pointer is represented by a plurality of bits;
updating a read pointer in response to a read operation of the slave device, wherein the read pointer is represented by a plurality of bits; and
generating a full flag according to the write pointer and the read pointer,
wherein when the write pointer and the read pointer have the same bits except for a most significant bit and a second most significant bit, the full flag is set to a predetermined value.

### Claim 6 (depends on 1)

The method for controlling operations of the asynchronous FIFO memory of claim 1, further comprising:
updating a write pointer in response to a write operation of the master device, wherein the write pointer is represented by a plurality of bits;
updating a read pointer in response to a read operation of the slave device, wherein the read pointer is represented by a plurality of bits; and
generating an empty flag according to the write pointer and the read pointer,
wherein when the write pointer and the read pointer have the same bits, the empty flag is set to a predetermined value.

### Claim 7 (depends on 1)

The method for controlling operations of the asynchronous FIFO memory of claim 1, further comprising:
updating a write pointer in response to a write operation of the master device;
updating a read pointer in response to a read operation of the slave device; and
generating a full flag according to the current depth, the write pointer and the read pointer,
wherein when an absolute value of a difference between a value corresponding to the write pointer and a value corresponding to the read pointer is equal to the current depth, the full flag is set to a predetermined value.

### Claim 8

A data transmission system, comprising:
a master device; and
an asynchronous FIFO memory, coupled between the master device and a slave device and comprising a plurality of entries for buffering data written by the master device,
wherein at least one of the master device and the asynchronous FIFO memory determines a current depth of the asynchronous FIFO memory according to at least one of a clock ratio, a burst length and a continuous transmission length, wherein the current depth is smaller than or equal to a total number of the entries and the clock ratio is a ratio of a frequency of a first clock signal a used by the master device to a frequency of a second clock signal used by the slave device, and
the asynchronous FIFO memory configures one or more entries to be used according to the current depth and controls a plurality of FIFO clock signals according to the current depth, wherein one FIFO clock signal corresponds to one entry, and one or more FIFO clock signals corresponding to one or more entries that are not configured according to the current depth are disabled.

### Claim 9 (depends on 8)

The data transmission system of claim 8, wherein the greater a difference between the frequency of the first clock signal and the frequency of the second clock signal, the smaller the current depth of the asynchronous FIFO memory.

### Claim 10 (depends on 8)

The data transmission system of claim 8, wherein the longer the burst length, the greater the current depth.

### Claim 11 (depends on 8)

The data transmission system of claim 8, wherein the longer the continuous transmission length, the greater the current depth.

### Claim 12 (depends on 8)

The data transmission system of claim 8, wherein the asynchronous FIFO memory updates a write pointer which is represented by a plurality of bits in response to a write operation of the master device, updates a read pointer which is represented by a plurality of bits in response to a read operation of the slave device and generates a full flag according to the write pointer and the read pointer, wherein when the write pointer and the read pointer have the same bits except for a most significant bit and a second most significant bit, the full flag is set to a predetermined value.

### Claim 13 (depends on 8)

The data transmission system of claim 8, wherein the asynchronous FIFO memory updates a write pointer which is represented by a plurality of bits in response to a write operation of the master device, updates a read pointer which is represented by a plurality of bits in response to a read operation of the slave device and generates an empty flag according to the write pointer and the read pointer, wherein when the write pointer and the read pointer have the same bits, the empty flag is set to a predetermined value.

### Claim 14 (depends on 8)

The data transmission system of claim 8, wherein the asynchronous FIFO memory updates a write pointer in response to a write operation of the master device, updates a read pointer in response to a read operation of the slave device and generates a full flag according to the current depth, the write pointer and the read pointer, wherein when an absolute value of a difference between a value corresponding to the write pointer and a value corresponding to the read pointer is equal to the current depth, the full flag is set to a predetermined value.
