Quotient digit selection logic for floating point division/square root
AssigneeSun Microsystems, Inc.
InventorJ. Arjun Prabhu
Life of this patent
Estimating the term…
Loading patent…
AssigneeSun Microsystems, Inc.
InventorJ. Arjun Prabhu
Estimating the term…
Quotient digit selection logic using a three-bit carry propagate adder is presented. An enhanced quotient digit selection function prevents the working partial remainder from becoming negative if the result is exact. The enhanced quotient digit selection logic chooses a quotient digit of zero instead of a quotient digit of one when the actual partial remainder is zero. Using a four bit estimated partial remainder where the upper four bits are zero, a possible carry propagation into fourth most significant bit is detected. This can be accomplished by looking at the fourth most significant sum and carry bits of the redundant partial remainder. If they are both zero, then a carry propagation out of that bit position into the least significant position of the estimated partial remainder is not possible, and a quotient digit of zero is chosen. This provides a one cycle savings since negative partial remainders no longer need to be restored before calculating the sticky bit. Extra hardware is eliminated because it is no longer necessary to provide any extra mechanism for restoring the preliminary final partial remainder. Latency is improved because no additional cycle time is required to restore negative preliminary partial remainders. In an alternative embodiment, where the upper three bits of the estimated partial remainder are ones while the fourth most significant bit is zero, a quotient digit of negative one is chosen. This alternative embodiment allows correct exact results in all rounding modes including rounding toward plus or minus infinity.
A quotient digit selection circuit that determines a quotient digit in binary division and square root operations based upon a redundant partial remainder input, wherein the redundant partial remainder input includes first, second, third, and fourth sum bits and first, second, third, and fourth carry bits, and wherein the quotient digit chosen is output by asserting one of a minus output corresponding to a negative one quotient digit, a zero output corresponding to a zero quotient digit, and a plus output corresponding to a positive one quotient digit, the quotient digit selection circuit comprising:
A method of providing a quotient digit selection circuit that determines a quotient digit in binary division and square root operations based upon a redundant partial remainder input, wherein the redundant partial remainder input includes first, second, third, and fourth sum bits and first, second, third, and fourth carry bits, and wherein the quotient digit chosen is output by asserting one of a minus output corresponding to a negative one quotient digit, a zero output corresponding to a zero-quotient digit, and a plus output corresponding to a positive one quotient digit, the method comprising:
Dependencies are inferred from the claim text.