# US 2020/0394038 A1 · Look up table with data element promotion

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

- Number: US 2020/0394038 A1
- Document ID: US20200394038A1
- Status: Published application
- Kind: A1
- Application number: 17/008,456
- Filed: 2020-08-31
- Published: 2020-12-17
- Earliest claimed: 2017-12-28
- Assignees: Texas Instruments Incorporated
- Applicants: Texas Instruments Incorporated
- Inventors: Duc BUI; Dheera BALASUBRAMANIAN; Naveen BHORIA; Sahithi KRISHNA
- Web page: https://patentgrep.com/patent/US20200394038A1

## CPC

- G06F 9/3004: {to perform operations on memory}
- G06F 9/3016: {Decoding the operand specifier, e.g. specifier format}
- G06F 9/30025: {Format conversion instructions, e.g. Floating-Point to Integer, decimal conversion}
- G06F 9/30036: {Instructions to perform operations on packed data, e.g. vector, tile or matrix operations}
- G06F 9/30038: {using a mask}
- G06F 9/30043: {LOAD or STORE instructions; Clear instruction}
- G06F 16/9017: {using directory or table look-up (use of a directory or look-up table in file systems G06F16/13)}
- G06F 9/30014: {with variable precision}
- G06F 9/3012: {Organisation of register space, e.g. banked or distributed register file}
- G06F 9/30141: {Implementation provisions of register files, e.g. ports}
- G06F 9/355: Indexed addressing
- G06F 9/383: {Operand prefetching (cache prefetching G06F12/0862)}
- G06F 12/0292: {using tables or multilevel address translation means (G06F12/023 takes precedence; address translation in virtual memory systems G06F12/10)}
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

Disclosed embodiments relate to look up table operations implemented in a digital data processor. A look up table read instruction recalls data elements of a specified data size from table(s) and stores recalled data elements in successive slots in a destination register. Disclosed embodiments promote data elements to a larger size with selected sign or zero extension. A source operand register stores vector offsets from a table start address. A destination operand stores the results of the look up table read. The look up table instruction implies a base address register and a configuration register. The base address register stores a table base address. The configuration register sets various look up table read operation parameters.

## Claims

### Claim 1

A processor comprising:
a first memory configured to store instructions, wherein each instruction includes a data processing operation and at least one data operand field;
a second memory configured to store tables;
a data register file that includes a source index register and a destination register, wherein the source index register is operable to store an index for each of the tables that is independent of the indices of a remainder of the tables; and
at least one functional unit coupled to the data register file, to the second memory, and to a decoder, wherein in response to the decoder decoding a table read instruction, the at least one operation unit is configured to:
recall a set of data elements that includes an element from each of the tables at a respective address that is based on the index of the respective table in the source index register; and
storing the set of data elements in successive slots in the destination register.

### Claim 2 (depends on 1)

The processor of claim 1, wherein:
each table includes a table enable register field.

### Claim 3 (depends on 2)

The processor of claim 2, wherein:
the table enable register field enables either a read operation or a read and write operation.

### Claim 4 (depends on 1)

The processor of claim 1, wherein:
the storing the set of data elements in successive slots in the destination register is based on a promotion mode; and
the promotion mode specifies a data size factor of the data elements stored in successive slots in the destination register.

### Claim 5 (depends on 4)

The processor of claim 4, wherein:
the data size factor is selected from one of 0, 2, 4, and 8.

### Claim 6 (depends on 1)

The processor of claim 1, further comprising:
a temporary register configured to receive the set of data elements.

### Claim 7 (depends on 6)

The processor of claim 6, further comprising:
a plurality of multiplexers operably coupled between the temporary register and the destination register.

### Claim 8 (depends on 6)

The processor of claim 6, further comprising:
a plurality of extension elements operably coupled between the temporary register and the plurality of multiplexers.

### Claim 9 (depends on 8)

The processor of claim 8, wherein:
each extension element includes an extension multiplexer, wherein a first input of the extension multiplexer is configured to receive a sign bit of a data element form the set of data elements, and a second input of the extension multiplexer is configured to receive a 0; wherein the extension multiplexer is controlled by a signal based on a signed field of a corresponding look up table configuration register of the data register.

### Claim 10 (depends on 9)

The processor of claim 9, wherein:
the extension multiplexer selects the sign bit in response to the signed field being 1; and
the extension multiplexer selects the 0 input in response to the signed field being 0.

### Claim 11

A method comprising:
storing instructions in a first memory, wherein each instruction includes a data processing operation and at least one data operand field;
storing in a source index register, indices for a plurality of tables, wherein each index of the plurality of tables is independent of the indices of a remainder of the tables;
recalling a set of data elements that includes an element from each of the tables at a respective address that is based on the index of the respective table in the source index register; and
storing the set of data elements in successive slots in a destination register.

### Claim 12 (depends on 11)

The method of claim 11, wherein:
each table includes a table enable register field.

### Claim 13 (depends on 12)

The method of claim 12, wherein:
the table enable register field enables either a read operation or a read and write operation.

### Claim 14 (depends on 11)

The method of claim 11, wherein:
storing the set of data elements in successive slots in the destination register is based on a promotion mode; and
the promotion mode specifies a data size factor of the data elements stored in successive slots in the destination register.

### Claim 15 (depends on 14)

The method of claim 14, wherein:
the data size factor is selected from one of 0, 2, 4, and 8.

### Claim 16 (depends on 11)

The method of claim 11, further comprising:
receiving the set of data elements at a temporary register.

### Claim 17 (depends on 16)

The method of claim 16, further comprising:
providing the set of data elements from the temporary register to a plurality of multiplexers.

### Claim 18 (depends on 16)

The method of claim 16, further comprising:
providing the set of data elements from the temporary register to a plurality of extension elements.

### Claim 19 (depends on 18)

The method of claim 18, wherein:
each extension element includes an extension multiplexer, wherein a first input of the extension multiplexer is configured to receive a sign bit of a data element form the set of data elements, and a second input of the extension multiplexer is configured to receive a 0; wherein the extension multiplexer is controlled by a signal based on a signed field of a corresponding look up table configuration register of the data register.

### Claim 20 (depends on 19)

The method of claim 19, wherein:
the extension multiplexer selects the sign bit in response to the signed field being 1; and
the extension multiplexer selects the 0 input in response to the signed field being 0.
