# US 6,366,530 B1 · Synchronizing data operations across a synchronization boundary between different clock domains using two-hot encoding

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

- Number: US 6,366,530 B1
- Document ID: US6366530B1
- Status: Granted
- Kind: B1
- Application number: 09/965,947
- Filed: 2001-09-28
- Granted: 2002-04-02
- Earliest claimed: 2001-04-09
- Assignees: LSI Logic Corporation
- Inventors: David O. Sluiter; Robert W. Moss
- Web page: https://patentgrep.com/patent/US6366530B1

## CPC

- G06F 5/10: having a sequence of storage locations each being individually accessible for both enqueue and dequeue operations, e.g. using random access memory {(G06F5/065 takes precedence)}
- G06F 5/14: for overflow or underflow handling, e.g. full or empty flags
- 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)

## Abstract

A digital logic circuit, such as a FIFO memory, includes pointers, or indicators, generated in two clock domains, between which information is transferred, to indicate a location in the digital logic circuit for transferring the information into or out of the digital logic circuit within either clock domain. Each pointer is encoded with a “2-hot” encoded value within one of the clock domains. The 2-hot encoded value of each pointer is sent to the other clock domain to synchronize the pointer to the other clock domain as well as to its original clock domain. Within each clock domain, the pointer generated therein and the pointer received from the other clock domain are used to determine whether the information can be transferred into or out of the digital logic circuit.

## Claims

### Claim 1

A circuit comprising:
a first pointer circuit configured to present a first pointer signal having a 2-hot encoding in response to a first clock signal;
a plurality of registers configured to store data in response to said first pointer signal; and
a selector circuit configured to select said data from said registers in response to a second clock signal.

### Claim 2 (depends on 1)

The circuit according to claim 1, further comprising a first decoder circuit configured to present a first select signal having a 1-hot encoding in response to said first pointer signal to select among said registers for storing said data.

### Claim 3 (depends on 2)

The circuit according to claim 2, further comprising an enable circuit configure to present an enable signal to said registers in response to said first select signal to enable one of said registers for storing said data.

### Claim 4 (depends on 2)

The circuit according to claim 2, further comprising a second pointer circuit configured to present a second pointer signal having said 2-hot encoding in response to said second clock signal to control selection of said data from said registers.

### Claim 5 (depends on 4)

The circuit according to claim 4, further comprising a second decoder circuit configured to present a second select signal having said 1-hot encoding to said selector circuit in response to said second pointer signal.

### Claim 6 (depends on 4)

The circuit according to claim 4, further comprising a first synchronizer circuit configured to synchronize said first pointer signal to said second clock signal to present a first synchronized signal.

### Claim 7 (depends on 6)

The circuit according to claim 6, further comprising a first generator circuit configured to present a first flag signal in response to said second pointer signal and said first synchronized signal.

### Claim 8 (depends on 7)

The circuit according to claim 7, further comprising a second synchronizer circuit configured to synchronize said second pointer signal to said first clock signal to present a second synchronized signal.

### Claim 9 (depends on 8)

The circuit according to claim 8, further comprising a second generator circuit configured to present a second flag signal in response to said first pointer signal and said second synchronized signal.

### Claim 10 (depends on 1)

The circuit according to claim 1, wherein said plurality of registers is an odd number of registers.

### Claim 11

A method of synchronizing data between a first clock signal and a second clock signal, the method comprising the steps of:
(A) generating a write signal having a 2-hot encoding in response to said first clock signal;
(B) storing said data among a plurality of storage units in response to said write signal; and
(C) selecting said data from said storage units in response to said second clock signal.

### Claim 12 (depends on 11)

The method according to claim 11, further comprising the step of generating a first select signal having a 1-hot encoding in response to a first pointer signal to select among said storage units for storing said data.

### Claim 13 (depends on 12)

The method according to claim 12, further comprising the step of generating an enable signal in response to said first select signal to enable one of said storage units for storing said data.

### Claim 14 (depends on 12)

The method according to claim 12, further comprising the step of generating a second pointer signal having said 2-hot encoding in response to said second clock signal to control selection of said data from said storage units.

### Claim 15 (depends on 14)

The method according to claim 14, further comprising the step of generating a second select signal having said 1-hot encoding in response to said second pointer signal to control selection of said data from said storage units.

### Claim 16 (depends on 14)

The method according to claim 14, further comprising the step of synchronizing said first pointer signal to said second clock signal to present a first synchronized signal.

### Claim 17 (depends on 16)

The method according to claim 16, further comprising the step of generating a first flag signal in response to said second pointer signal and said first synchronized signal.

### Claim 18 (depends on 17)

The method according to claim 17, further comprising the step of synchronizing said second pointer signal to said first clock signal to present a second synchronized signal.

### Claim 19 (depends on 18)

The method according to claim 18, further comprising the step of generating a second flag signal in response to said first pointer signal and said second synchronized signal.

### Claim 20

A circuit comprising:
means for generating a write signal having a 2-hot encoding in response to a first clock signal;
means for storing data in response to said write signal; and
means for selecting among said data as stored in response to a second clock signal.
