# US 2001/0025292 A1 · Apparatus and method for reducing precision of data

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

- Number: US 2001/0025292 A1
- Document ID: US20010025292A1
- Status: Published application
- Kind: A1
- Application number: 09/735,170
- Filed: 2000-12-11
- Published: 2001-09-27
- Earliest claimed: 1999-12-10
- Assignees: Broadcom Corporation
- Inventors: Tracy C. Denk; Jeffrey S. Putnam
- Web page: https://patentgrep.com/patent/US20010025292A1

## CPC

- G06F 7/49942: {Significance control}
- G06F 7/48: using non-contact-making devices, e.g. tube, solid state device; using unspecified devices
- G06F 7/49963: {Rounding to nearest (G06F7/49957 takes precedence)}
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

Methods and apparatus for reducing precision of an input signal, by comparing a portion of the input signal to a preselected threshold value, and determining a selectable bias responsive to the comparison. By combining a portion of the input signal with the selectable bias, a reduced precision signal, having minimized or eliminated rounding error, is generated. The selectable bias corresponds to a predetermined characteristic of one of bias, an error signal, the input datum, the reduced precision datum, and a combination thereof.

## Claims

### Claim 1

A method for reducing a precision of an input datum having precision portion and a loss portion, comprising:
a. comparing the loss portion to a preselected threshold value, ft;
b. determining a selectable bias, α, responsive to the loss portion being in a defined relation to the preselected threshold value, ft; and
c. combining the precision portion with α, creating a reduced precision datum thereby,
wherein α corresponds to a predetermined characteristic of one of α, the input datum, the reduced precision datum, and a combination thereof.

### Claim 2 (depends on 1)

The method of claim 1, wherein determining the selectable bias further comprises one of:
a. assigning a first value to α, responsive to the loss portion being substantially equal to ft;
b. assigning a second value to α, responsive to the loss portion being less than ft; and
c. assigning a third value to α, responsive to the loss portion being greater than ft.

### Claim 3 (depends on 1)

The method of claim 1, further comprising determining the selectable bias responsive to a predetermined characteristic of a plurality of input data relative to a corresponding plurality of reduced precision data.

### Claim 4 (depends on 1)

The method of claim 1, further comprising determining the selectable bias responsive to a predetermined characteristic attributable to reducing the precision of the input datum.

### Claim 5 (depends on 1)

The method of claim 1, further comprising determining the selectable bias responsive to the predetermined characteristic of the selectable bias, the predetermined characteristic being the mean value of a plurality of selectable bias values.

### Claim 6 (depends on 2)

The method of claim 2, further comprising determining the selectable bias responsive to a predetermined characteristic of a plurality of input data relative to a corresponding plurality of reduced precision data, and the predetermined characteristic being attributable to reducing the precision.

### Claim 7 (depends on 6)

The method of claim 6, wherein the predetermined characteristic is a predetermined mean error value.

### Claim 8 (depends on 2)

The method of claim 2, further comprising determining the selectable bias responsive to a predetermined characteristic of one of input data, a corresponding reduced precision data, and a combination thereof.

### Claim 9 (depends on 8)

The method of claim 8, wherein the predetermined characteristic comprises a predetermined statistical value.

### Claim 10 (depends on 4)

The method of claim 4, wherein the predetermined characteristic comprises a predetermined mean error value of the plurality of reduced precision data relative to a corresponding plurality of input data.

### Claim 11 (depends on 9)

The method of claim 9, wherein the predetermined statistical value comprises the mean value of the reduced precision data relative to a corresponding plurality of finite-precision fixed point input data.

### Claim 12 (depends on 2)

The method of claim 2, further comprising assigning a fourth value to α, responsive to a being substantially equal to ft, the fourth value being in a predefined relationship with the first value.

### Claim 13 (depends on 12)

The method of claim 12, further comprising determining the selectable bias responsive to a predetermined characteristic of input data relative to corresponding reduced precision data, and the predetermined characteristic being a preselected mean error value associated therewith.

### Claim 14 (depends on 12)

The method of claim 12, wherein:
a. the ft is approximately equal to 0.510;
b. the first value is 1 when the value of the loss portion substantially equals about 0.510, the input datum is a negative-valued datum, with the first value being added to the precision portion;
c. the second value is zero when value of the loss portion is less than about 0.510;
d. the third value is 1 when the value of the loss portion is greater than about 0.510, with the third value being added to the precision portion;
e. the fourth value is 0 when the loss portion substantially equals about 0.510, and the input datum is a positive-valued datum; and
f. the preselected mean error value relative to the input datum and the reduced precision datum is minimized.

### Claim 15 (depends on 11)

The method of claim 11, wherein:
a. ft is substantially equal to 0.510;
b. the first value is a current first value being selected to be one of ‘1’ and ‘0’ when the value of the loss portion substantially equals about 0.510, in a predefined relationship to a previous first value;
c. the second value is zero when the loss portion is less than about 0.510; and
d. the third value is 1 when the loss portion is greater than about 0.510, with the third value is added to the value of the precision portion.

### Claim 16 (depends on 14)

The method of claim 14, wherein the predefined relationship is an alternating relationship.

### Claim 17 (depends on 16)

The method of claim 16, wherein the alternating relationship is a toggle relationship with the current first value being zero if the previous first value was 1, and the current first value being 1 if the previous first value was zero, and wherein the preselected mean error value is minimized responsive to the alternating relationship.

### Claim 18 (depends on 15)

The method of claim 15, wherein the alternating relationship includes a selectable number of 1's being interleaved with a selectable number of zeros, the mean value of the reduced precision data being responsive to the alternating relationship.

### Claim 19 (depends on 2)

The method of claim 2, wherein each of the input datum and the reduced precision datum are represented by two's complement fixed point values.

### Claim 20 (depends on 16)

The method of claim 16, wherein the alternating relationship includes a selected pseudorandom sequence of data bits.

### Claim 21

A method for rounding a first datum, X, having precision of a digits, to a second datum, {circumflex over (X)}, having precision of b digits, wherein a>b, first b digits of X being a precision portion, and remaining a−b digits of X being a loss portion, the method comprising:
a. evaluating the loss portion relative to a preselected rounding threshold value;
b. if the loss portion is substantially equal to the preselected threshold, then defining {circumflex over (X)} according to the equation:
{circumflex over (X)}=X+2−(b+1)α,
where α is a selectable bias represented by a rounding digit;
c. if the loss portion is not substantially equal to the preselected threshold, then defining {circumflex over (X)} according to the equation:
{circumflex over (X)}=X+2−(b+1); and
d. eliminating the loss portion of X, producing {circumflex over (X)} thereby.

### Claim 22 (depends on 21)

The method of claim 21, wherein selectable bias α is representative of a predetermined characteristic of one of X, {circumflex over (X)}, α, and a combination thereof.

### Claim 23 (depends on 22)

The method of claim 22, wherein the preselected threshold is substantially equivalent to 0.510.

### Claim 24 (depends on 23)

The method of claim 23, wherein the predetermined characteristic comprises a preselected mean error value of {circumflex over (X)} relative to X.

### Claim 25 (depends on 24)

The method of claim 24, wherein the preselected mean error value, E(e), is substantially defined by the equation:
E(e)=2−a(E(α)−½),
where E(α) is a mean value of selectable bias α.

### Claim 26 (depends on 25)

The method of claim 25 wherein the mean value of the selectable bias is substantially within the range of
0.0≦E(α)<1.0

### Claim 27 (depends on 26)

The method of claim 26, wherein the mean value of the selectable bias, E(α), is approximately equal to preselected mean error value, E(e), and E(α) is approximately zero.

### Claim 28 (depends on 27)

The method of claim 27, wherein the predetermined characteristic further comprises a preselected error variance value, σe2, substantially defined by the equation: 1 σ e 2 = 2 - 2 ⁢ b + 2 - ( 2 ⁢ a - 1 ) 12

### Claim 29 (depends on 28)

The method of claim 28, wherein the rounding digit is selected from a alternating sequence of digits in the pair of digits <0,1>.

### Claim 30 (depends on 28)

The method of claim 28, wherein the rounding digit is selected from a pseudorandom sequence of binary digits.

### Claim 31

A method for rounding a first two's complement fixed point datum, X, having an integer part of n bits, a fractional part of a bits the integer part, and sign bit, si, to a second two's complement fixed point datum, {circumflex over (X)}, having a fractional part of b bits following the radix point, where a and b are representative of the respective precisions of X and {circumflex over (X)}, and where a>b, comprising:
a. evaluating the fractional part of X and defining Y as the most significant bit (MSB) of the a bits;
b. if the first bit following the radix point of X is equal to a 1 bit trailed by (a−1) zero bits, then defining {circumflex over (X)} according to the equation:
{circumflex over (X)}=n+si
and
c. otherwise, defining {circumflex over (X)} according to the equation:
{circumflex over (X)}=n+y

### Claim 32 (depends on 31)

The method of claim 31, wherein the occurrence of positive numbers and negative numbers in a plurality of the datum, X, is substantially equiprobable.

### Claim 33

A method for rounding signal values, comprising:
a. detecting a predetermined state value wherein rounding is desired; and
b. rounding the state value according to one of
i. an alternating round-up/round-down method and
ii. a sign addition round-up/round-down method.

### Claim 34

An arithmetic device, comprising a bias generator producing a selectable bias α, responsive to a predetermined signal characteristic, the device receiving an input signal and coupling the selectable bias α thereto.

### Claim 35 (depends on 34)

The arithmetic device of claim 34, further comprising a combiner coupled to the bias generator, the combiner receiving and combining the input signal and the selectable bias α, and producing an output signal.

### Claim 36 (depends on 34)

The arithmetic device of claim 34 further comprising wherein the bias generator further comprises a comparator for comparing the input signal to a preselected threshold value, the comparator urging the bias generator to produce the selectable bias α responsive to the preselected threshold value.
