# US 2021/0342120 A1 · Transcendental function evaluation

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

- Number: US 2021/0342120 A1
- Document ID: US20210342120A1
- Status: Published application
- Kind: A1
- Application number: 17/378,916
- Filed: 2021-07-19
- Published: 2021-11-04
- Earliest claimed: 2018-06-05
- Assignees: Texas Instruments Incorporated
- Applicants: Texas Instruments Incorporated
- Inventors: Prasanth Viswanathan Pillai; Richard Mark Poley; Venkatesh Natarajan; Alexander Tessarolo
- Web page: https://patentgrep.com/patent/US20210342120A1

## CPC

- G06F 7/544: for evaluating functions by calculation {(G06F7/4824 takes precedence)}
- G06F 7/548: Trigonometric functions; Co-ordinate transformations
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

In described examples, an apparatus is arranged to generate a linear term, a quadratic term, and a constant term of a transcendental function with, respectively, a first circuit, a second circuit, and a third circuit in response to least significant bits of an input operand and in response to, respectively, a first, a second, and a third table value that is retrieved in response to, respectively, a first, a second, and a third index generated in response to most significant bits of the input operand. The third circuit is further arranged to generate a mantissa of an output operand in response to a sum of the linear term, the quadratic term, and the constant term.

## Claims

### Claim 1

A circuit, comprising:
an input coupled to a first register, wherein the first register stores an input operand having a mantissa, wherein the mantissa includes a set of most significant bits (MSBs) and a set of least significant bits (LSBs);
a first sub-circuit having a first sub-circuit input coupled to the input and a first sub-circuit output, wherein the first sub-circuit input is configured to receive the input operand and determine a linear term based on the input operand;
a second sub-circuit having a second sub-circuit input coupled to the input and a second sub-circuit output, wherein the second sub-circuit input is configured to receive the input operand and determine a quadratic term based on the input operand;
a third sub-circuit coupled to the first sub-circuit output and the second sub-circuit output and configured to receive the linear term, the quadratic term and determine a constant term based on the linear term and the quadratic term, the third sub-circuit generating an output operand based on the linear term, the quadratic term, and the constant term;
an output coupled to a second register, wherein the second register stores the output operand.

### Claim 2 (depends on 1)

The circuit of claim 1, wherein:
a type of a transcendental function is based on the first register in which the input operand is stored.

### Claim 3 (depends on 1)

The circuit of claim 1, wherein:
the third sub-circuit receives an instruction.

### Claim 4 (depends on 3)

The circuit of claim 3, wherein:
the third sub-circuit generates the output operand as an exponentiated result or a logarithmic result in response to the instruction.

### Claim 5 (depends on 1)

The circuit of claim 1, further comprising:
a table of values coupled to the input and configured to receive the input operand.

### Claim 6 (depends on 5)

The circuit of claim 5, wherein:
the first sub-circuit, the second sub-circuit, and the third sub-circuit are coupled to the table of values.

### Claim 7 (depends on 5)

The circuit of claim 5, wherein:
the first sub-circuit retrieves a first value from the table of values based on a first index determined by the input operand;
the second sub-circuit retrieves a second value from the table of values based on a second index determined by the input operand; and
the third sub-circuit retrieves a third value from the table of values based on a third index determined by the input operand.

### Claim 8 (depends on 1)

The circuit of claim 1, wherein:
the first sub-circuit and the second sub-circuit are configured to operate in parallel during a first time interval; and
the third sub-circuit is configured to operate during a second time interval.

### Claim 9

A transcendental execution method, comprising:
receiving, by an accelerator circuit, an input operand that includes a sign bit, an exponent bit, and a mantissa having least significant bits (LSBs) and most significant bits (MSBs);
generating, by the accelerator circuit, a linear term, a quadratic term, and a constant term in response to the input operand and table values;
summing, by the accelerator circuit, the linear term, the quadratic term, and the constant term to generate a sum; and
outputting, by the accelerator circuit, an output operand based on the sum.

### Claim 10 (depends on 9)

The transcendental execution method of claim 9, further comprising:
determining, by the accelerator circuit, an absolute value of LSBs.

### Claim 11 (depends on 9)

The transcendental execution method of claim 9, further comprising:
parsing, by the accelerator circuit, the input operand to determine if an error exists in the input operand.

### Claim 12 (depends on 9)

The transcendental execution method of claim 9, further comprising:
combining, by a combiner, the linear term and the quadratic term.

### Claim 13 (depends on 9)

The transcendental execution method of claim 9, further comprising:
adjusting, by the accelerator circuit, the sum.

### Claim 14 (depends on 13)

The transcendental execution method of claim 13, wherein:
the adjusting includes exception detection to determine data failures.

### Claim 15

An apparatus, comprising:
an input configured to receive an input operand that includes a sign bit, an exponent bit, and a mantissa having least significant bits (LSBs) and most significant bits (MSBs);
a table configured to generate table values;
circuitry to generate a linear term, a quadratic term, and a constant term based on the table values and the input operand, wherein the circuitry generates a sum of the linear term, the quadratic term, and the constant term; and
an output configured to output an output operand based on the sum.

### Claim 16 (depends on 15)

The apparatus of claim 15, further comprising:
logic configured to determine an absolute value of LSBs.

### Claim 17 (depends on 15)

The apparatus of claim 15, further comprising:
error detection logic configured to parse the input operand to determine if an error exists in the input operand.

### Claim 18 (depends on 15)

The apparatus of claim 15, further comprising:
a combiner configured to combine the linear term and the quadratic term.

### Claim 19 (depends on 15)

The apparatus of claim 15, further comprising:
an adjustment circuit configured to receive the sum and adjust the sum to generate the output operand.

### Claim 20 (depends on 19)

The apparatus of claim 19, wherein:
the adjustment circuit adjusting includes exception detection to determine data failures.
