Equality comparator using propagates and generates
First Claim
1. A method comprising:
- determining a first carry propagate value and a second carry generate value based on a first carry lookahead operation for a first operand and a second operand;
determining a second carry propagate value and a second carry generate value based on a second carry lookahead operation for the first operand and the second operand;
determining an equality relationship between the first operand and the second operand based on at least two of the first carry propagate value, the second carry propagate value, the first carry generate value and the second carry generate value; and
determining a first inequality relationship between the first operand and the second operand based on at least two of the first carry propagate value, the second carry propagate value, the first carry generate value and the second carry generate value.
3 Assignments
0 Petitions
Accused Products
Abstract
A carry lookahead adder is employed to determine an equality relationship and one or more inequality relationships between two operands. The carry lookahead adder includes a hierarchy of carry lookahead stages, each carry lookahead stage using either corresponding bits of the two operands or the carry generate values and carry propagate values from the prior stage to generate carry generate values and carry propagate values for use at the next stage. Equality logic receives a subset of the carry generate values and carry propagate values and, based on this subset of values, provides an equality relationship indicator that indicates the equality relationship between the two operands, or portions thereof. Further, inequality logic also receives a subset of the carry generate values and carry propagate values, and based on this subset of values, provides an inequality relationship indicator that indicates an inequality relationship between the two operands, or portions thereof.
-
Citations
20 Claims
-
1. A method comprising:
-
determining a first carry propagate value and a second carry generate value based on a first carry lookahead operation for a first operand and a second operand; determining a second carry propagate value and a second carry generate value based on a second carry lookahead operation for the first operand and the second operand; determining an equality relationship between the first operand and the second operand based on at least two of the first carry propagate value, the second carry propagate value, the first carry generate value and the second carry generate value; and determining a first inequality relationship between the first operand and the second operand based on at least two of the first carry propagate value, the second carry propagate value, the first carry generate value and the second carry generate value. - View Dependent Claims (2, 3, 4, 5, 6, 7)
-
-
8. A device comprising:
-
a carry lookahead adder comprising a first input to receive a first operand, a second input to receive a second operand, a plurality of carry lookahead stages, a first plurality of outputs and a second plurality of outputs, each of the first plurality of outputs to provide a corresponding carry propagate value of a corresponding carry lookahead stage of the plurality of hierarchical carry lookahead stages and each of the second plurality of outputs to provide a corresponding carry generate value of a corresponding carry lookahead stage of the plurality of carry lookahead stages; and logic having a first plurality of inputs, each coupled to a corresponding one of the first plurality of outputs, a second plurality of inputs, each coupled to a corresponding one of the second plurality of outputs, and an output to provide an equality relationship indicator based on at least a first subset of the carry propagate values and at least a first subset of the carry generate values of the carry lookahead adder. - View Dependent Claims (9, 10, 11, 12, 13, 14, 15)
-
-
16. A processing device comprising:
-
logic to determine a first carry propagate value and a second carry generate value based on a first carry lookahead operation for a first operand and a second operand; logic to determine a second carry propagate value and a second carry generate value based on a second carry lookahead operation for the first operand and the second operand; logic to determine an equality relationship between the first operand and the second operand based on at least two of the first carry propagate value, the second carry propagate value, the first carry generate value and the second carry generate value; and logic to determine a first inequality relationship between the first operand and the second operand based on at least two of the first carry propagate value, the second carry propagate value, the first carry generate value and the second carry generate value. - View Dependent Claims (17, 18, 19, 20)
-
Specification