# US 2020/0394066 A1 · Context value retrieval prior to or parallel with expansion of previous symbol for context-decoding in range decoder

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

- Number: US 2020/0394066 A1
- Document ID: US20200394066A1
- Status: Published application
- Kind: A1
- Application number: 16/440,689
- Filed: 2019-06-13
- Published: 2020-12-17
- Earliest claimed: 2019-06-13
- Assignees: Fungible, Inc.
- Applicants: Fungible, Inc.
- Inventors: Gurumani Senthil Nayakam; Satyanarayana Lakshmipathi Billa; Rajan Goyal
- Web page: https://patentgrep.com/patent/US20200394066A1

## CPC

- G06F 9/3822: {Parallel decoding, e.g. parallel decode units}
- H04L 12/4625: {Single bridge functionality, e.g. connection of two networks over a single bridge}
- G06F 9/30025: {Format conversion instructions, e.g. Floating-Point to Integer, decimal conversion}
- G06F 9/3832: {Value prediction for operands; operand history buffers}
- 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

A highly programmable device, referred to generally as a data processing unit, having multiple processing units for processing streams of information, such as network packets or storage packets, is described. The data processing unit includes one or more specialized hardware accelerators configured to perform acceleration for various data-processing functions. This disclosure describes examples of retrieving values represented by one or more previous symbols needed for decoding a current symbol before or in parallel with the insertion of the values represented by the one or more previous symbols in the data stream.

## Claims

### Claim 1

An integrated circuit for context-coding, the integrated circuit comprising:
a range decoder circuit comprising:
a history buffer configured to store values represented by symbols in a data stream;
an expander circuit configured to insert the stored values into the data stream to expand the symbols in the data stream;
a decoder circuit configured to decode a current symbol of the data stream based on values represented by one or more previous symbols that are prior to the current symbol in the data stream; and
one or more pointer conversion circuits configured to determine one or more locations within the history buffer that store the values represented by the one or more previous symbols of the data stream prior to or in parallel with the expander circuit inserting the values represented by the one or more previous symbols into the data stream,
wherein the decoder circuit is configured to receive, from the history buffer, the values represented by the one or more previous symbols based on the locations within the history buffer determined by the one or more pointer conversion circuits.

### Claim 2 (depends on 1)

The integrated circuit of claim 1, wherein the expander circuit is configured to insert values represented by the one or more previous symbols into the data stream subsequent to or in parallel with the one or more pointer conversion circuits determining the one or more locations within the history buffer that store the values represented by the one or more previous symbols of the data stream.

### Claim 3 (depends on 1)

The integrated circuit of claim 1, wherein the one or more pointer conversion circuits are configured to:
receive a pointer value indicative of where values used for decoding the current symbol are to be retrieved from the history buffer; and
convert the pointer value into a converted pointer value based on whether the one or more previous symbols are a literal symbol or a length-distance symbol to determine the one or more locations in the history buffer.

### Claim 4 (depends on 3)

The integrated circuit of claim 3, wherein to convert the pointer value, the one or more pointer conversion circuits are configured to:
based on the one or more previous symbols being the length-distance symbol, convert the pointer value based on at least one of a length parameter or distance parameter of the length-distance symbol.

### Claim 5 (depends on 3)

The integrated circuit of claim 3, wherein the pointer value comprises a pointer value indicative of where values are to be stored in the history buffer for at least one of:
a match byte, wherein the match byte comprises values that are immediately subsequent to a set of values in the data stream defined by length and distance parameters of one or more of the previous symbols; and
a previous byte, wherein the previous byte comprises values in the data stream that are immediately prior to the current symbol.

### Claim 6 (depends on 3)

The integrated circuit of claim 3, further comprising:
one or more queue circuits configured to store information indicative of parameters of the one or more previous symbols, wherein each of the one or more queue circuits is associated with a respective one of the one or more pointer conversion circuits,
wherein to convert the pointer value into the converted pointer value, the one or more pointer conversion circuits are configured to convert the pointer value into the converted pointer value based on the parameters of the one or more previous symbols stored in respective ones of the one or more queue circuits.

### Claim 7 (depends on 1)

The integrated circuit of claim 1, wherein to decode the current symbol, the decoder circuit is configured to:
determine context values based on the values represented by the one or more previous symbols; and
decode the current symbol based on the determined context values.

### Claim 8 (depends on 1)

The integrated circuit of claim 1, further comprising:
a first queue circuit and a second queue circuit, wherein the current symbol is the Nth symbol in the data stream, the first queue circuit stores information indicative of parameters of the N−1 symbol, and the second queue circuit stores information indicative of parameters of the N−2 symbol,
wherein the one or more pointer conversion circuits comprise a first pointer conversion circuit associated with the first queue circuit and a second conversion circuit associated with the second queue circuit,
wherein the first pointer conversion circuit is configured to:
receive, from the decoder circuit, a first pointer value and a second pointer value, wherein the first pointer value and the second pointer value are indicative of where values used for decoding the current symbol are to be retrieved from the history buffer;
convert the first pointer value into a first converted pointer value and the second pointer value into a second converted pointer value based on information indicative of parameters of the N−1 symbol stored in the first queue circuit; and
output the first converted pointer value and the second converted pointer value to the second pointer conversion circuit,
wherein the second conversion circuit is configured to:
receive the first converted pointer value and the second converted pointer value; and
convert the first converted pointer value into a third converted pointer value and the second converted pointer value into a fourth converted pointer value based on information indicative of parameters of the N−2 symbol stored in the second queue circuit,
wherein the integrated circuit further comprises a memory manager circuit configured to:
determine the one or more locations in the history buffer based on the third converted pointer value and the fourth converted pointer value; and
output the values represented by the one or more previous symbols stored in the determined one or more locations to the decoder circuit for the decoder circuit to decode the current symbol.

### Claim 9 (depends on 1)

The integrated circuit of claim 1, wherein the current symbol comprises a first symbol, the integrated circuit further comprising:
one or more queue circuits configured to store information indicative of parameters of the one or more previous symbols, wherein each of the one or more queue circuits is associated with a respective one of the one or more pointer conversion circuits;
a hit detection circuit configured to output parameters of the one or more previous symbols from the one or more queue circuit rather than from the history buffer for the decoder circuit to decode a second symbol based on the parameters of the one or more previous symbols being values needed to decode the second symbol.

### Claim 10 (depends on 1)

The integrated circuit of claim 1, further comprising a memory manager circuit coupled to the history buffer and the expander circuit,
wherein the one or more pointer conversion circuits, prior to or in parallel with the expander circuit inserting the values represented by the one or more previous symbols into the data stream, are configured to:
receive a pointer value indicative of where values used for decoding the current symbol are to be retrieved from the history buffer;
convert the pointer value into a converted pointer value based on whether the one or more previous symbols are a literal symbol or a length-distance symbol to determine the one or more locations in the history buffer; and
output the converted pointer value to the memory manger circuit,
wherein the memory manager circuit, prior to or in parallel with the expander circuit inserting the values represented by the one or more previous symbols into the data stream, retrieves the values represented by the one or more previous symbols from the history buffer based on the converted pointer value, and
wherein the expander circuit, subsequent to or in parallel with the one or more pointer conversion circuits converting the pointer value to the converted pointer value, is configured to:
receive the values represented by the one or more previous symbols from the memory manager circuit; and
insert the values represented by the one or more previous symbols into the data stream.

### Claim 11

A method for context-coding with an integrated circuit, the method comprising:
storing, with a history buffer of the integrated circuit, values represented by symbols in a data stream;
decoding, with a decoder circuit of the integrated circuit, a current symbol of the data stream based on values represented by one or more previous symbols that are prior to the current symbol in the data stream, wherein decoding the current symbol comprises, prior to or in parallel with an expander circuit inserting the values represented by the one or more previous symbols into the data stream:
receiving, from the history buffer, the values represented by the one or more previous symbols; and
determining, with one or more pointer conversion circuits, one or more locations within the history buffer that store the values represented by the one or more previous symbols of the data stream, wherein receiving, from the history buffer, the values represented by the one or more previous symbols comprises receiving, from the history buffer, the values represented by the one or more previous symbols based on the determined locations within the history buffer; and
inserting, with the expander circuit, the values represented by the one or more previous symbols into the data stream to expand the one or more previous symbols.

### Claim 12 (depends on 11)

The method of claim 11, wherein inserting the values represented by the one or more previous symbols into the data stream comprises inserting the values represented by the one or more previous symbols subsequent to or in parallel with determining the one or more locations within the history buffer that store the values represented by the one or more previous symbols of the data stream.

### Claim 13 (depends on 11)

The method of claim 11, determining the one or more locations within the history buffer that store the values represented by the one or more previous symbols of the data stream comprises:
receiving a pointer value indicative of where values used for decoding the current symbol are to be retrieved from the history buffer; and
converting the pointer value into a converted pointer value based on whether the one or more previous symbols are a literal symbol or a length-distance symbol to determine the one or more locations in the history buffer.

### Claim 14 (depends on 13)

The method of claim 13, wherein converting the pointer value comprises:
based on the one or more previous symbols being the length-distance symbol, converting the pointer value based on at least one of a length parameter or distance parameter of the length-distance symbol.

### Claim 15 (depends on 13)

The method of claim 13, wherein the pointer value comprises a pointer value indicative of where values are to be stored in the history buffer for at least one of:
a match byte, wherein the match byte comprises values that are immediately subsequent to a set of values in the data stream defined by length and distance parameters of one or more of the previous symbols; and
a previous byte, wherein the previous byte comprises values in the data stream that are immediately prior to the current symbol.

### Claim 16 (depends on 13)

The method of claim 13, further comprising:
storing, with one or more queue circuits, information indicative of parameters of the one or more previous symbols, wherein each of the one or more queue circuits is associated with a respective one of the one or more pointer conversion circuits,
wherein converting the pointer value into the converted pointer value comprises converting the pointer value into the converted pointer value based on the parameters of the one or more previous symbols stored in respective ones of the one or more queue circuits.

### Claim 17 (depends on 11)

The method of claim 11, wherein decoding the current symbol comprises:
determining context values based on the values represented by the one or more previous symbols; and
decoding the current symbol based on the determined context values.

### Claim 18 (depends on 11)

The method of claim 11, wherein the current symbol is the Nth symbol in the data stream, the method further comprising:
storing, in a first queue circuit, information indicative of parameters of the N−1 symbol, and storing, in a second queue circuit, information indicative of parameters of the N−2 symbol,
wherein determining, with one or more pointer conversion circuits, one or more locations within the history buffer that store the values represented by the one or more previous symbols of the data stream comprises:
receiving, with a first pointer conversion circuit and from the decoder circuit, receive, from the decoder circuit, a first pointer value and a second pointer value, wherein the first pointer value and the second pointer value are indicative of where values used for decoding the current symbol are to be retrieved from the history buffer, and wherein the first pointer conversion circuit is associated with the first queue circuit;
converting, with the first pointer conversion circuit, the first pointer value into a first converted pointer value and the second pointer value into a second converted pointer value based on information indicative of parameters of the N−1 symbol stored in the first queue circuit;
outputting, with the first pointer conversion circuit, the first converted pointer value and the second converted pointer value to a second pointer conversion circuit;
receiving, with the second pointer conversion circuit, the first converted pointer value and the second converted pointer value; and
converting, with the second pointer conversion circuit, the first converted pointer value into a third converted pointer value and the second converted pointer value into a fourth converted pointer value based on information indicative of parameters of the N−2 symbol stored in the second queue circuit to wherein determine the one or more locations within the history buffer,
the method further comprising:
determining, with a memory manager circuit, the one or more locations in the history buffer based on the third converted pointer value and the fourth converted pointer value; and
outputting, with the memory manager circuit, the values represented by the one or more previous symbols stored in the determined one or more locations for decoding the current symbol.

### Claim 19 (depends on 11)

The method of claim 11, wherein the current symbol comprises a first symbol, method further comprising
storing, with one or more queue circuits, information indicative of parameters of the one or more previous symbols, wherein each of the one or more queue circuits is associated with a respective one of the one or more pointer conversion circuits;
outputting, with a hit detection circuit, parameters of the one or more previous symbols from the one or more queue circuit rather than from the history buffer for decoding a second symbol based on the parameters of the one or more previous symbols being values needed to decode the second symbol.

### Claim 20 (depends on 11)

The method of claim 11, wherein determining, with one or more pointer conversion circuits, one or more locations within the history buffer comprises, prior to or in parallel with the expander circuit inserting the values represented by the one or more previous symbols into the data stream:
receiving a pointer value indicative of where values used for decoding the current symbol are to be retrieved from the history buffer;
converting the pointer value into a converted pointer value based on whether the one or more previous symbols are a literal symbol or a length-distance symbol to determine the one or more locations in the history buffer; and
outputting the converted pointer value to a memory manger circuit coupled to the history buffer and the expander circuit,
the method further comprising:
prior to or in parallel with the expander circuit inserting the values represented by the one or more previous symbols into the data stream, retrieving, with the memory manager circuit, the values represented by the one or more previous symbols from the history buffer based on the converted pointer value,
wherein inserting, with the expander circuit, the values represented by the one or more previous symbols into the data stream to expand the one or more previous symbols comprises, subsequent to or in parallel with converting the pointer value to the converted pointer value:
receiving, with the expander circuit, the values represented by the one or more previous symbols from the memory manager circuit; and
inserting, with the expander circuit, the values represented by the one or more previous symbols into the data stream.
