# US 2019/0317766 A1 · Apparatuses for integrating arithmetic with logic operations

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

- Number: US 2019/0317766 A1
- Document ID: US20190317766A1
- Status: Published application
- Kind: A1
- Application number: 16/452,868
- Filed: 2019-06-26
- Published: 2019-10-17
- Earliest claimed: 2017-06-27
- Assignees: Via Alliance Semiconductor Co., Ltd.
- Applicants: VIA Alliance Semiconductor Co., Ltd.
- Inventors: Huaisheng ZHANG; Dacheng LIANG; Boming CHEN; Renyu BIAN
- Web page: https://patentgrep.com/patent/US20190317766A1

## CPC

- G06F 9/30014: {with variable precision}
- G06F 7/483: Computations with numbers represented by a non-linear combination of denominational numbers, e.g. rational numbers, logarithmic number system or floating-point numbers {(G06F7/4806, G06F7/4824, G06F7/49, G06F7/491, G06F7/544 take precedence)}
- G06F 7/57: Arithmetic logic units [ALU], i.e. arrangements or devices for performing two or more of the operations covered by groups G06F7/483 – G06F7/556 or for performing logical operations {(G06F7/49, G06F7/491 take precedence)}
- G06F 9/30021: {Compare instructions, e.g. Greater-Than, Equal-To, MINMAX}
- G06F 9/30029: {Logical and Boolean instructions, e.g. XOR, NOT}
- 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/30094: {Condition code generation, e.g. Carry, Zero flag}
- G06F 9/30185: {according to one or more bits in the instruction, e.g. prefix, sub-opcode}
- G06F 9/30189: {according to execution mode, e.g. mode flag}
- G06F 9/3887: {controlled by a single instruction for multiple data lanes [SIMD]}
- G06F 9/3888: {controlled by a single instruction for multiple threads [SIMT] in parallel}
- G06F 9/3893: {controlled in tandem, e.g. multiplier-accumulator}
- G06F 15/16: Combinations of two or more digital computers each having at least an arithmetic unit, a program unit and a register, e.g. for a simultaneous processing of several programs {(coordinating program control therefor G06F9/52; in regulating and control system G05B)}
- G06F 7/026: {Magnitude comparison, i.e. determining the relative order of operands based on their numerical value, e.g. window comparator}
- G06F 7/49936: {Normalisation mentioned as feature only}
- G06F 7/74: Selecting or encoding within a word the position of one or more bits having a specified value, e.g. most or least significant one or zero detection, priority encoders {(with shifting G06F5/01)}
- G06F 9/30134: {Register stacks; shift registers}
- G06F 2207/382: Reconfigurable for different fixed word lengths
- G06F 2207/3824: Accepting both fixed-point and floating-point numbers
- H04N 19/85: using pre-processing or post-processing specially adapted for video compression
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)
- H04N: PICTORIAL COMMUNICATION, e.g. TELEVISION

## Abstract

An apparatus integrates arithmetic with logic operations. The apparatus includes a calculation device that calculates source data to generate and output first destination data. The apparatus further includes a normalization unit, coupled to the calculation device, that normalizes the first destination data to generate second destination data of a first type when receiving a signal indicating an output of first-type data, and normalizing the first destination data to generate the second destination data of a second type when receiving the signal indicating an output of second-type data.

## Claims

### Claim 1

An apparatus for integrating arithmetic with logic operations, comprising:
a calculation device, calculating source data to generate and output first destination data; and
a normalization unit, coupled to the calculation device, normalizing the first destination data to generate second destination data of a first type when receiving a signal indicating an output of first-type data, and normalizing the first destination data to generate the second destination data of a second type when receiving the signal indicating an output of second-type data.

### Claim 2 (depends on 1)

The apparatus of claim 1, wherein the normalization unit is coupled to the calculation device via a delay circuit,
wherein the calculation device generates and outputs the first destination data at one cycle and the normalization unit normalizes the first destination data to generate the second destination data of the first type or the second type at the next cycle.

### Claim 3 (depends on 1)

The apparatus of claim 1, wherein the calculation device performs a calculation:
dest=Src0×Src1+Src2,
Src0, Src1 and Src2 represent the source data of three source memories, and dest represents the first destination data.

### Claim 4 (depends on 1)

The apparatus of claim 1, wherein the second destination data of the first type is 24-bit floating-point value, and the second destination data of the second type is 32-bit floating-point value.

### Claim 5 (depends on 1)

The apparatus of claim 1, wherein the normalization unit comprises:
a shifter;
an adder;
a comparator, coupled to the shifter and the adder, wherein the comparator, the shifter and the adder form a loop for performing a normalization of a floating-point value; and
a merger, coupled to the shifter and the adder, combining a sign bit, a mantissa output from the shifter and an exponent output from the adder to generate the second destination data.

### Claim 6 (depends on 5)

The apparatus of claim 5, wherein the shifter drops 7 bits from a mantissa of 34 bits of the first destination data and the adder drops 1 bit from an exponent of 10 bits of the first destination data when receiving the signal indicating an output of first-type data.

### Claim 7 (depends on 6)

The apparatus of claim 6, wherein the comparator repeatedly operates until the MSB (Most Significant Bit) of a output from the shifter is 1,
wherein, in each iteration, when the MSB of the output of the shifter is not 1, the comparator directs the shifter to left-shift the mantissa of the first destination data by one bit and directs the adder to add −1 to the exponent of the first destination data.
