# US 8,578,196 B2 · Zero indication forwarding for floating point unit power reduction

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

- Number: US 8,578,196 B2
- Document ID: US8578196B2
- Status: Granted
- Kind: B2
- Application number: 13/552,327
- Filed: 2012-07-18
- Published: 2012-11-08
- Granted: 2013-11-05
- Earliest claimed: 2008-07-18
- Assignees: International Business Machines Corporation
- Applicants: Harry S. Barowski; Maarten J. Boersma; Silvia M. Mueller; Tim Niggemeier; Jochen Preiss
- Inventors: Harry S. Barowski; Maarten J. Boersma; Silvia M. Mueller; Tim Niggemeier; Jochen Preiss
- Web page: https://patentgrep.com/patent/US8578196B2

## CPC

- G06F 1/3203: Power management, i.e. event-based initiation of a power-saving mode
- G06F 1/3246: by software initiated power-off
- G06F 1/3287: by switching off individual functional units in the computer system
- G06F 9/3001: {Arithmetic instructions}
- G06F 9/30105: {Register structure}
- G06F 9/30192: {according to data descriptor, e.g. dynamic data typing}
- Y02D 10/00: Energy efficient computing, e.g. low power processors, power management or thermal management
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)
- Y02D: CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE

## Abstract

A method and system for reducing power consumption when processing mathematical operations. Power may be reduced in processor hardware devices that receive one or more operands from an execution unit that executes instructions. A circuit detects when at least one operand of multiple operands is a zero operand, prior to the operand being forwarded to an execution component for completing a mathematical operation. When at least one operand is a zero operand or at least one operand is “unordered”, a flag is set that triggers a gating of a clock signal. The gating of the clock signal disables one or more processing stages and/or devices, which perform the mathematical operation. Disabling the stages and/or devices enables computing the correct result of the mathematical operation on a reduced data path. When a device(s) is disabled, the device may be powered off until the device is again required by subsequent operations.

## Claims

### Claim 1

In a data processor, a method for reducing power consumption when processing mathematical operations by utilizing processor hardware devices that receive one or more operands from an execution unit, the method comprising:
detecting when at least one operand of multiple operands is one of a zero operand and an unordered operand before the operand is forwarded to an execution component for completing a mathematical operation;
in response to at least one operand being a zero operand or being unordered, setting a first flag that triggers a gating of a clock signal to reduce an active floating point unit (FPU) data path by disabling select processing devices/stages of one or more processing stages/devices within the FPU data path and to enable a bypassing of the completion of the mathematical operation, wherein an operand is unordered if the operand is one of a non-number or infinity, wherein the first flag is one of an FE flag or an FU flag and is set in a processor, wherein the FE flag is set responsive to detecting that one of the operands is a zero, and wherein the FU flag is set responsive to one of the operands being unordered;
in response to the first flag being set, gating the clock signal to disable only select processing stages/devices of the one or more processing stages/devices within the FPU data path, wherein the select processing stages/devices are not needed to calculate a result of the mathematical operation, and wherein processing stages/devices that are needed for calculating the result are left active; and
reusing the FE/FU flags for gating of the clock signal in subsequent instructions.

### Claim 2 (depends on 1)

The method of claim 1, further comprising:
computing the first flag to yield a result in a first computation that indicates one or more of: a zero, not-a-number, and infinity, wherein the result is input as an operand in a second computation; and
storing one or more flags in a storage.

### Claim 3 (depends on 1)

The method of claim 1, further comprising:
in response to the at least one disabled processing stages/devices containing a multiplier circuit, forcing the multiplier output to zero during a second computation when the one or more operands yields a zero.

### Claim 4 (depends on 1)

The method of claim 1, further comprising:
in response to the at least one disabled processing stages/devices containing an adder circuit, forcing the adder output to a nonzero operand when the zero operand is input for one operand in the second computation.

### Claim 5 (depends on 1)

The method of claim 1, further comprising:
in response to the first flag being set, deterministically evaluating a result of the mathematical operation, without performing the mathematical operation based on known characteristics of the mathematical operation when one of the operands is a zero.

### Claim 6 (depends on 5)

The method of claim 5, wherein the deterministically evaluating further comprises:
in response to the mathematical operation being a multiply operation, automatically providing a zero as the result of the mathematical operation; and
in response to the mathematical operation being an add operation, automatically providing a sum of non-zero operands as the result of the mathematical operation.

### Claim 7 (depends on 1)

The method of claim 1, wherein the one or more processing stages/devices of the FPU data path comprises at least a multiplier, an aligner, and an adder.

### Claim 8

In a data processor, a system for reducing power consumption when processing mathematical operations by disabling one or more processing stages/devices of a floating point unit (FPU) data path of within at least one processor that receives one or more operands from an execution unit, the system having logic embodied therein that:
detects when at least one operand of multiple operands is one of a zero operand and an unordered operand before the operand is forwarded to an execution component for completing a mathematical operation;
in response to at least one operand being a zero operand or at least one operand being unordered, sets a first flag that triggers a gating of a clock signal to reduce an active floating point unit (FPU) data path by disabling select processing devices/stages of one or more processing stages/devices within the FPU data path that perform the mathematical operation and to enable a bypassing of the completion of the mathematical operation, wherein an operand is unordered if the operand is one of a non-number or infinity, wherein the first flag is one of an FE flag or an FU flag and is set in a processor, wherein the FE flag is set responsive to detecting that one of the operands is a zero, and wherein the FU flag is set responsive to one of the operands being unordered;
in response to the first flag being set, gates the clock signal to disable only select processing stages/devices of the one or more processing stages/devices within the FPU data path, wherein the select processing stages/devices are not needed to calculate a result of the mathematical operation, and wherein processing stages/devices that are needed for calculating the result are left active; and
reuses the FE/FU flags for gating of the clock signal in subsequent instructions.

### Claim 9 (depends on 8)

The system of claim 8, the logic further comprising logic that:
computes the first flag to yield a result in a first computation that indicates one or more of: a zero, not-a-number, and infinity, wherein the result is input as an operand in a second computation; and
stores one or more flags in a storage.

### Claim 10 (depends on 8)

The system of claim 8, the logic further comprising logic that:
in response to the at least one disabled processing stages/devices containing a multiplier circuit, forces the multiplier output to zero during a second computation when the one or more operands yields a zero.

### Claim 11 (depends on 8)

The system of claim 8, the logic further comprising logic that:
in response to the at least one disabled processing stages/devices containing an adder circuit, forces the adder output to a nonzero operand when the zero operand is input for one operand in the second computation.

### Claim 12 (depends on 8)

The system of claim 8, the logic further comprising logic for that:
in response to the first flag being set, deterministically evaluates a result of the mathematical operation, without performing the mathematical operation based on known characteristics of the mathematical operation when one of the operands is a zero.

### Claim 13 (depends on 12)

The system of claim 12, wherein the logic that deterministically evaluates a result of the mathematical operation further comprises logic that:
in response to the mathematical operation being a multiply operation, automatically provides a zero as the result of the mathematical operation; and
in response to the mathematical operation being an add operation, automatically provides a sum of non-zero operands as the result of the mathematical operation.

### Claim 14 (depends on 8)

The system of claim 8, wherein the one or more processing stages/devices of the FPU data path comprises at least a multiplier, an aligner, and an adder.
