# US 2023/0029065 A1 · Transaction layer circuit of pcie and operation method thereof

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

- Number: US 2023/0029065 A1
- Document ID: US20230029065A1
- Status: Published application
- Kind: A1
- Application number: 17/542,531
- Filed: 2021-12-06
- Published: 2023-01-26
- Earliest claimed: 2021-07-22
- Assignees: Faraday Technology Corp.
- Applicants: Faraday Technology Corporation; Faraday Technology Corp.
- Inventors: Bu-Qing Ping
- Web page: https://patentgrep.com/patent/US20230029065A1

## CPC

- G06F 13/4221: {being an input/output bus, e.g. ISA bus, EISA bus, PCI bus, SCSI bus}
- H04L 69/22: Parsing or analysis of headers
- H04L 69/324: in the data link layer [OSI layer 2], e.g. HDLC
- G06F 2213/0026: PCI express
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)
- H04L: TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION (arrangements common to telegraphic and telephonic communication H04M)

## Abstract

The invention provides a transaction layer circuit of a PCIe. The transaction layer circuit includes transaction layer processing channels, a channel selection circuit, and a merge circuit. The transaction layer processing channels are coupled to a data bus transmitting at least one packet data output by a data link layer circuit of the PCIe. The channel selection circuit receives packet start/end location information in a current clock cycle from the data link layer circuit, and distributes at least one packet data in the current clock cycle to at least one transaction layer processing channel according to the packet start/end location information. The merge circuit is coupled to the transaction layer processing channels and selectively merges transaction layer processing results output by the transaction layer processing channels based on the distribution of the packet data in the current clock cycle to the transaction layer processing channels via the channel selection circuit.

## Claims

### Claim 1

A transaction layer circuit of a PCIe, wherein the transaction layer circuit comprises:
a plurality of transaction layer processing channels coupled to a data bus, wherein the data bus is configured to transmit at least one packet data output by a data link layer circuit of the PCIe;
a channel selection circuit configured to receive a packet start location information and a packet end location information in a current clock cycle from the data link layer circuit and distribute the at least one packet data in the current clock cycle to at least one of the plurality of transaction layer processing channels according to the packet start location information and the packet end location information; and
a merge circuit coupled to the plurality of transaction layer processing channels, wherein the merge circuit selectively merges transaction layer processing results output by the plurality of transaction layer processing channels based on the distribution of the at least one packet data in the current clock cycle to the plurality of transaction layer processing channels via the channel selection circuit.

### Claim 2 (depends on 1)

The transaction layer circuit of claim 1, wherein the channel selection circuit counts a number of a valid packet start location indicated by the packet start location information and a number of a valid packet end location indicated by the packet end location information in the current clock cycle, the channel selection circuit distributes the at least one packet data in the current clock cycle to at least one of the plurality of transaction layer processing channels according to a packet start pointer and a packet end pointer, the channel selection circuit updates the packet start pointer according to the number of the valid packet start location, and the channel selection circuit updates the packet end pointer according to the number of the valid packet end location.

### Claim 3 (depends on 1)

The transaction layer circuit of claim 1, wherein the channel selection circuit comprises:
an error correction circuit configured to receive an error data location information, the packet start location information, and the packet end location information in the current clock cycle from the data link layer circuit, mask an invalid packet start location in the packet start location information according to the error data location information to generate an error-corrected packet start location information, and mask an invalid packet end location in the packet end location information according to the error data location information to generate an error-corrected packet end location information;
a packet start location search circuit coupled to the error correction circuit to receive the error-corrected packet start location information, and configured to search for any valid packet start location in the error-corrected packet start location information in the current clock cycle to generate a packet start location search result;
a packet end location search circuit coupled to the error correction circuit to receive the error-corrected packet end location information, and configured to search for any valid packet end location in the error-corrected packet end location information in the current clock cycle to generate a packet end location search result;
a round-robin circuit coupled to the packet start location search circuit and the packet end location search circuit, wherein the round-robin circuit counts a number of the valid packet start location in the current clock cycle according to the packet start location search result, the round-robin circuit updates the packet start pointer according to the number of the valid packet start location, the round-robin circuit counts a number of the valid packet end location in the current clock cycle according to the packet end location search result, and the round-robin circuit updates the packet end pointer according to the number of the valid packet end location; and
a channel distribution circuit coupled to the round-robin circuit, the packet start location search circuit, and the packet end location search circuit, wherein the channel distribution circuit transmits any valid packet start location in the packet start location search result to one corresponding transaction layer processing channel in the plurality of transaction layer processing channels according to the packet start pointer, and the channel distribution circuit transmits any valid packet end location in the packet end location search result to one corresponding transaction layer processing channel in the plurality of transaction layer processing channels according to the packet end pointer.

### Claim 4 (depends on 1)

The transaction layer circuit of claim 1, wherein the channel selection circuit distributes the at least one packet data in the current clock cycle to at least one of the plurality of transaction layer processing channels in a round-robin manner or a fixed priority manner according to the packet start location information and the packet end location information.

### Claim 5 (depends on 1)

The transaction layer circuit of claim 1, wherein the merge circuit stores the transaction layer processing results in a receive buffer.

### Claim 6

An operation method of a transaction layer circuit of a PCIe, wherein the transaction layer circuit comprises a channel selection circuit, a merge circuit, and a plurality of transaction layer processing channels, and the operation method comprises:
coupling the plurality of transaction layer processing channels to a data bus, wherein the data bus is configured to transmit at least one packet data output by a data link layer circuit of the PCIe;
receiving a packet start location information and a packet end location information in a current clock cycle from the data link layer circuit via the channel selection circuit;
distributing the at least one packet data in the current clock cycle to at least one of the plurality of transaction layer processing channels via the channel selection circuit according to the packet start location information and the packet end location information; and
merging transaction layer processing results output by the plurality of transaction layer processing channels selectively via the merge circuit based on the distribution of the at least one packet data in the current clock cycle to the plurality of transaction layer processing channels via the channel selection circuit.

### Claim 7 (depends on 6)

The operation method of claim 6, wherein the operation method further comprises:
counting a number of a valid packet start location indicated by the packet start location information and a number of a valid packet end location indicated by the packet end location information in the current clock cycle via the channel selection circuit;
distributing the at least one packet data in the current clock cycle to at least one of the plurality of transaction layer processing channels according to a packet start pointer and a packet end pointer via the channel selection circuit;
updating the packet start pointer according to the number of the valid packet start location via the channel selection circuit; and
updating the packet end pointer according to the number of the valid packet end location via the channel selection circuit.

### Claim 8 (depends on 6)

The operation method of claim 6, wherein the operation method further comprises:
distributing the at least one packet data in the current clock cycle to at least one of the plurality of transaction layer processing channels in a round-robin manner or a fixed priority manner via the channel selection circuit.

### Claim 9 (depends on 6)

The operation method of claim 6, wherein the operation method further comprises:
storing the transaction layer processing results in a receive buffer via the merge circuit.
