# US 2023/0065528 A1 · Apparatus and method with multi-format data support

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

- Number: US 2023/0065528 A1
- Document ID: US20230065528A1
- Status: Published application
- Kind: A1
- Application number: 17/883,987
- Filed: 2022-08-09
- Published: 2023-03-02
- Earliest claimed: 2021-08-31
- Assignees: Samsung Electronics Co., Ltd.
- Applicants: Samsung Electronics Co., Ltd.
- Inventors: Hyeongseok YU; Donghyuk KWON; Channoh KIM; Seongwook PARK; Yeongon CHO
- Web page: https://patentgrep.com/patent/US20230065528A1

## CPC

- G06F 7/5443: {Sum of products (for applications thereof, see the relevant places, e.g. G06F17/10, H03H17/00)}
- 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/4876: {Multiplying}
- G06F 2207/382: Reconfigurable for different fixed word lengths
- G06F 2207/3824: Accepting both fixed-point and floating-point numbers
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

An apparatus with multi-format data support includes: a receiver configured to receive a plurality of data corresponding to a plurality of data formats; one or more processors configured to: multiply the plurality of data using one or more multipliers; perform a first alignment on a result of the multiplication based on an exponent value of the plurality of data; add a result of the first alignment; and perform a second alignment on a result of the addition based on the exponent value and an operation result of a previous cycle.

## Claims

### Claim 1

An apparatus with multi-format data support, the apparatus comprising:
a receiver configured to receive a plurality of data corresponding to a plurality of data formats; and
one or more processors configured to:
multiply the plurality of data using one or more multipliers;
perform a first alignment on a result of the multiplication based on an exponent value of the plurality of data;
add a result of the first alignment; and
perform a second alignment on a result of the addition based on the exponent value and an operation result of a previous cycle.

### Claim 2 (depends on 1)

The apparatus of claim 1, wherein, for the multiplying, the one or more processors are configured to:
multiply a first bit input and a second bit input included in the plurality of data;
convert a sign of a result of the multiplication of the first bit input and the second bit input; and
combine the result of the multiplication of the first bit input and the second bit input with the converted sign to generate the result of the multiplying of the plurality of data.

### Claim 3 (depends on 1)

The apparatus of claim 1, wherein, for the multiplying, the one or more processors are configured to multiply a plurality of first bit inputs of the plurality of data.

### Claim 4 (depends on 1)

The apparatus of claim 1, wherein the one or more processors are configured to:
add the exponent value;
obtain a maximum exponent value based on the exponent value;
determine a sum of remaining exponent values; and
determine a difference between the maximum exponent value and the sum.

### Claim 5 (depends on 1)

The apparatus of claim 1, wherein, for the performing of the first alignment, the one or more processors are configured to shift the result of the multiplication based on a difference between a maximum exponent value obtained based on the exponent value and a sum of remaining exponent values.

### Claim 6 (depends on 2)

The apparatus of claim 2, wherein, for the performing of the second alignment, the one or more processors are configured to shift the result of the addition based on a maximum exponent value obtained based on the exponent value and the operation result of the previous cycle.

### Claim 7 (depends on 6)

The apparatus of claim 6, wherein, for the shifting of the result of the addition, the one or more processors are configured to shift the result of the addition based on a difference between the maximum exponent value and an exponent value stored according to the operation result of the previous cycle.

### Claim 8 (depends on 1)

The apparatus of claim 1, wherein, for the performing of the second alignment, the one or more processors are configured to:
extend a sign bit of the plurality of data based on a predetermined radix point; and
add the extended sign bit to the exponent value.

### Claim 9 (depends on 1)

The apparatus of claim 1, wherein the one or more processors are configured to accumulate a result of the second alignment.

### Claim 10 (depends on 9)

The apparatus of claim 9, wherein the one or more processors are configured to:
remove a sign bit with a predetermined length from an output of a result of the accumulation; and
perform normalization on the output in which the sign bit is removed.

### Claim 11 (depends on 1)

The apparatus of claim 1, wherein the one or more processors comprises:
one or more multipliers configured to perform the multiplying of the plurality of data;
a first aligner configured to perform the first alignment on a result of the multiplication;
an adder tree configured to perform the adding of the result of the first alignment; and
a second aligner configured to perform the second alignment on the result of the addition.

### Claim 12

A processor-implemented method with multi-format data support, the method comprising:
receiving a plurality of data corresponding to a plurality of data formats;
multiplying the plurality of data using one or more multipliers;
performing a first alignment on a result of the multiplication of the plurality of data based on an exponent value of the plurality of data;
adding a result of the first alignment; and
performing a second alignment on a result of the addition based on the exponent value and an operation result of a previous cycle.

### Claim 13 (depends on 12)

The method of claim 12, wherein the multiplying comprises:
multiplying a first bit input and a second bit input included in the plurality of data;
converting a sign of a result of the multiplication of the first bit input and the second bit input; and
combining the result of the multiplication of the first bit input and the second bit input with the converted sign to generate the result of the multiplying of the plurality of data.

### Claim 14 (depends on 12)

The method of claim 12, wherein the multiplying comprises multiplying a plurality of first bit inputs of the plurality of data.

### Claim 15 (depends on 12)

The method of claim 12, further comprising:
adding the exponent value;
obtaining a maximum exponent value based on the exponent value;
determining a sum of remaining exponent values; and
determining a difference between the maximum exponent value and the sum.

### Claim 16 (depends on 12)

The method of claim 12, wherein the performing of the first alignment comprises shifting the result of the multiplication based on a difference between a maximum exponent value obtained based on the exponent value and a sum of remaining exponent values.

### Claim 17 (depends on 12)

The method of claim 12, wherein the performing of the second alignment comprises shifting the result of the addition based on a maximum exponent value obtained based on the exponent value and the operation result of the previous cycle.

### Claim 18 (depends on 17)

The method of claim 17, wherein the shifting of the result of the addition comprises shifting the result of the addition based on a difference between the maximum exponent value and an exponent value stored according to the operation result of the previous cycle.

### Claim 19 (depends on 12)

The method of claim 12, wherein the performing of the second alignment comprises:
extending a sign bit of the plurality of data based on a predetermined radix point; and
adding the extended sign bit to the exponent value.

### Claim 20 (depends on 12)

The method of claim 12, further comprising accumulating a result of the second alignment.

### Claim 21 (depends on 20)

The method of claim 20, further comprising:
removing a sign bit with a predetermined length from an output of a result of the accumulation; and
performing normalization on the output in which the sign bit is removed.

### Claim 22 (depends on 12)

A non-transitory computer-readable storage medium storing instructions that, when executed by one or more processors, configure the one or more processors to perform the method of claim 12.

### Claim 23

An apparatus with multi-format data support, the apparatus comprising:
one or more processors configured to:
multiply a plurality of data corresponding to a plurality of data formats using one or more multipliers;
perform a first alignment on a result of the multiplication based on a difference between a maximum exponent value among exponent values of the plurality of data and a sum of remaining exponent values;
add a result of the first alignment; and
perform a second alignment on a result of the addition based on a difference between the maximum exponent value and an exponent value of an operation result of a previous cycle.

### Claim 24 (depends on 23)

The apparatus of claim 23, wherein the first alignment comprises a right-shift and the second alignment comprises a left-shift.

### Claim 25 (depends on 23)

The apparatus of claim 23, wherein the one or more processors are configured to:
add a predetermined value to an exponent value of an output of a result of an accumulation of a result of the second alignment; and
perform normalization on the output in which the sign bit is removed.

### Claim 26

An apparatus with multi-format data support, the apparatus comprising:
one or more processors configured to:
multiply the plurality of data by routing data of a plurality of data corresponding to a plurality of data formats to one or more corresponding multipliers of a multiplier-accumulator (MAC) array determined based on the plurality of data formats;
perform a first alignment on a result of the multiplication based on an exponent value of the plurality of data;
add a result of the first alignment; and
perform a second alignment on a result of the addition based on the exponent value and an operation result of a previous cycle.

### Claim 27 (depends on 26)

The apparatus of claim 26, wherein the multipliers of the MAC array comprise a plurality of multipliers corresponding a larger bit input and another multiplier corresponding to a smaller bit input.
