# US 2023/0028953 A1 · Implementing functions in hardware

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

- Number: US 2023/0028953 A1
- Document ID: US20230028953A1
- Status: Published application
- Kind: A1
- Application number: 17/848,569
- Filed: 2022-06-24
- Published: 2023-01-26
- Earliest claimed: 2021-06-25
- Assignees: Imagination Technologies Limited
- Applicants: Imagination Technologies Limited
- Inventors: Rostam King
- Web page: https://patentgrep.com/patent/US20230028953A1

## CPC

- G06F 12/0802: Addressing of a memory level in which the access to the desired data or data block requires associative addressing means, e.g. caches
- G06F 30/30: Circuit design
- G06F 1/0356: {by using two or more smaller tables, e.g. addressed by parts of the argument}
- G06F 30/32: Circuit design at the digital level (reconfigurable circuits G06F30/34)
- G06F 30/33: Design verification, e.g. functional simulation or model checking
- G06F 2212/60: Details of cache memory
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

Methods for implementing or synthesizing functions in hardware and fixed-function hardware include generating a look-up table, LUT, representing the function and then applying a transform to the LUT to transform the LUT into a plurality of derived LUTs. The transform may be applied recursively. A hardware design implementing each of the derived LUTs in fixed-function hardware logic, along with a logic unit that performs the inverse transform, is then created.

## Claims

### Claim 1

A method of implementing a function in fixed-function hardware, the method comprising:
generating a look-up table, LUT, representing the function;
applying a transform to the LUT to transform the LUT into a plurality of derived LUTs; and
generating a hardware design implementing each of the derived LUTs in fixed-function hardware logic and further implementing an inverse transform to generate an output value by selectively combining one or more values output from the fixed-function hardware logic dependent on the input value.

### Claim 2 (depends on 1)

The method according to claim 1, wherein the transform is applied recursively to the LUT.

### Claim 3 (depends on 1)

The method according to claim 1, further comprising:
after performing one or more recursions, evaluating hardware metrics for the plurality of derived LUTs; and
selectively performing a further recursion dependent upon the evaluation.

### Claim 4 (depends on 1)

The method according to claim 1, wherein the plurality of derived LUTs comprises at least three LUTs and the method further comprising:
combining two or more of the derived LUTs to form a new derived LUT.

### Claim 5 (depends on 1)

The method according to claim 1, further comprising:
subtracting a fixed or linear term from a derived LUT to form a new derived LUT.

### Claim 6 (depends on 1)

The method according to claim 1, wherein generating a look-up table, LUT, representing the function comprises:
approximating the function with a different, prediction function; and
generating a LUT representing the prediction function.

### Claim 7 (depends on 6)

The method according to claim 6, wherein generating a look-up table, LUT, representing the function further comprises:
generating a LUT of differences between the function and the prediction function.

### Claim 8 (depends on 7)

The method according to claim 7, further comprising:
implementing the LUT of differences in fixed-function hardware logic.

### Claim 9 (depends on 7)

The method according to claim 7, further comprising:
applying a transform to the LUT of differences to transform the LUT of differences into a plurality of derived difference LUTs; and
implementing each of the derived difference LUTs in fixed-function hardware logic.

### Claim 10 (depends on 1)

The method according to claim 1, wherein the LUT representing the function comprises a LUT that approximates the function.

### Claim 11 (depends on 1)

The method according to claim 1, wherein generating a look-up table, LUT, representing the function comprises:
generating a LUT based on pre-defined characteristics of the function.

### Claim 12 (depends on 1)

The method according to claim 1, wherein the transform is a Haar transform.

### Claim 13 (depends on 1)

The method according to claim 1, further comprising:
creating the fixed-function hardware logic from the generated design.

### Claim 14

A hardware logic arrangement configured to implement a function in fixed-function hardware, the hardware logic comprising:
an input for receiving an input value for input to the function;
a plurality of hardware logic blocks, each hardware logic block implementing one of a plurality of look-up tables, LUTs, in fixed-function hardware and at least two of the plurality of LUTs being derived from a LUT representing the function by applying a transform; and
a logic unit arranged to perform an inverse transform to generate an output value by selectively combining one or more values output from the plurality of hardware logic blocks dependent on the input value.

### Claim 15 (depends on 14)

The hardware logic arrangement according to claim 14, wherein the logic unit is further arranged, as part of performing the inverse transform to:
add a fixed or linear term to the selective combination of one or more values output from the plurality of hardware logic blocks dependent on the input value.

### Claim 16 (depends on 14)

The hardware logic arrangement according to claim 14, wherein the at least two of the plurality of LUTs derived from a LUT representing the function are derived from a LUT that represents a prediction function that approximates the function.

### Claim 17 (depends on 16)

The hardware logic arrangement according to claim 16, wherein the plurality of LUTs further comprise a difference LUT, the difference LUT storing differences between the function and the prediction function.

### Claim 18 (depends on 16)

The hardware logic arrangement according to claim 16, wherein the plurality of LUTs further comprise two or more LUTs derived from a difference LUT, the difference LUT storing differences between the function and the prediction function.

### Claim 19 (depends on 16)

The hardware logic arrangement according to claim 16, wherein the logic unit comprises:
a first logic unit arranged to selectively combine one or more values output from the plurality of hardware logic blocks dependent on the input value;
a second logic unit arranged to selectively combine one or more different values output from the plurality of hardware logic blocks dependent on the input value; and
a third logic unit arranged to perform an inverse transform based on values output from the first and second logic units and the input value.

### Claim 20

A non-transitory computer readable storage medium having stored thereon computer readable code that when executed at a computer system, causes the computer system to perform a method of implementing a function in fixed-function hardware, the method comprising:
generating a look-up table, LUT, representing the function;
applying a transform to the LUT to transform the LUT into a plurality of derived LUTs; and
generating a hardware design implementing each of the derived LUTs in fixed-function hardware logic and further implementing an inverse transform to generate an output value by selectively combining one or more values output from the fixed-function hardware logic dependent on the input value.
