Apparatus and method for estimating a shift amount when performing floating-point subtraction

US10140093B2 · US · B2

Patent metadata
FieldValue
Publication numberUS-10140093-B2
Application numberUS-201715473841-A
CountryUS
Kind codeB2
Filing dateMar 30, 2017
Priority dateMar 30, 2017
Publication dateNov 27, 2018
Grant dateNov 27, 2018

How to read this patent

A practical reading order for non-experts. Skip the full description unless you need deep technical detail.

  1. Title

    What the patent document calls the invention.

  2. Abstract

    A short plain-language summary of the technical disclosure.

  3. Assignees and inventors

    Who owns or filed the patent and who is credited as inventor.

  4. Key dates

    Filing, priority, publication, and grant dates set the timeline.

  5. First independent claim

    The legal scope of protection — read this for what is actually claimed.

  6. CPC / IPC classifications

    Technology tags used to group this patent with similar filings.

  7. Citations and related patents

    Prior art links and similar publications in this corpus.

Abstract

Official abstract text for this publication.

An apparatus and method are provided for estimating a shift amount when employing processing circuitry to perform a subtraction operation to subtract a second significand value of a second floating-point operand from a first significand value of a first floating-point operand in order to generate a difference value. Shift estimation circuitry then determines an estimated shift amount to be applied to the difference value. The shift estimation circuitry comprises significand analysis circuitry to generate, from analysis of the significand values of the two floating-point operands, a first bit string identifying a most significant bit position within the difference value that is predicted to have its bit set to a determined value. In parallel, shift limiting circuitry generates from an exponent value a second bit string identifying a shift limit bit position. The shift limiting circuitry has computation circuitry to perform, for each bit position in at least a subset of bit positions of the second bit string, an associated computation using bits of the exponent value to determine a value for that bit position within the second bit string. The associated computation is different for different bit positions. Combining circuitry then generates a combined bit string from the first and second bit strings, and shift determination circuitry determines the estimated shift amount from the combined bit string.

First claim

Opening claim text (preview).

We claim: 1. An apparatus comprising: processing circuitry to perform a subtraction operation to subtract a second significand value of a second floating-point operand from a first significand value of a first floating-point operand in order to generate a difference value; and shift estimation circuitry to determine an estimated shift amount to be applied to the difference value, the shift estimation circuitry comprising: significand analysis circuitry to generate, from analysis of the first and second significand values, a first bit string identifying a most significant bit position within the difference value that is predicted to have its bit set to a determined value; shift limiting circuitry to generate from an exponent value a second bit string identifying a shift limit bit position, the shift limiting circuitry having computation circuitry to perform, for each bit position in at least a subset of bit positions of the second bit string, an associated computation using bits of the exponent value to determine a value for that bit position within the second bit string, the associated computation being different for different bit positions; combining circuitry to generate a combined bit string from the first and second bit strings; and shift determination circuitry to determine the estimated shift amount from the combined bit string. 2. An apparatus as claimed in claim 1 , wherein, prior to the subtraction operation being performed the first and second floating-point operands are arranged to have an exponent value that is the same, and that exponent value is the exponent value used by the shift limiting circuitry. 3. An apparatus as claimed in claim 1 , wherein said at least a subset of bit positions comprises a number of bit positions at least equal to the number of bit positions in the difference value. 4. An apparatus as claimed in claim 1 , wherein the associated computation for each bit position in said at least a subset of bit positions of the second bit string is at least logically equivalent to a computation that uses each bit of the exponent value at most once. 5. An apparatus as claimed in claim 4 , wherein the associated computation for each bit position in said at least a subset of bit positions of the second bit string performs a sequence of logical operations on the bits of the exponent value. 6. An apparatus as claimed in claim 5 , wherein the sequence of logical operations comprises one or more of AND, OR and NOT operations. 7. An apparatus as claimed in claim 1 , wherein the significand analysis circuitry and shift limiting circuitry are arranged to operate in parallel. 8. An apparatus as claimed in claim 7 , wherein the shift limiting circuitry has a logic depth no greater than the logic depth of the significand analysis circuitry. 9. An apparatus as claimed in claim 1 , wherein: the significand analysis circuitry is arranged to generate the first bit string such that a bit position within the first bit string is set to a first value to identify said most significant bit position; the shift limiting circuitry is arranged to generate the second bit string such that a bit position within the second bit string is set to the first value to identify the shift limit bit position; and the shift determination circuitry is arranged to determine the estimated shift amount by detecting a number of leading bit positions within the combined bit string that are set to a second value different to said first value. 10. An apparatus as claimed in claim 9 , wherein the shift limiting circuitry is arranged to generate the second bit string such that at most one bit position within the second bit string is set to the first value. 11. An apparatus as claimed in claim 9 , wherein said combining circuitry is arranged to perform a logical OR operation on the first and second bit strings to generate the combined bit string. 12. An apparatus as claimed in claim 9 , wherein said first value is a logic 1 value and said second value is a logic 0 value. 13. An apparatus as claimed in claim 1 , wherein said determined value is a logic 1 value. 14. An apparatus as claimed in claim 1 , wherein: said computation circuitry includes no limit detection circuitry to set a no limit flag when the exponent value is large enough to allow it to be adjusted by an amount sufficient to compensate for a maximum possible shift amount for the difference value; and the computation circuitry is arranged, when the no limit flag is set, to generate a default bit sequence for the second bit string that identifies absence of the shift limit bit position. 15. An apparatus as claimed in claim 14 , wherein the no limit detection circuitry performs a logical OR operation on a number of most significant bits of the exponent value, the number of most significant bits being dependent on a number of bits used to specify the exponent value and the maximum possible shift amount. 16. An apparatus as claimed in claim 14 , wherein the default bit sequence is an all zeros bit sequence. 17. An apparatus as claimed in claim 1 , wherein: the computation circuitry is arranged to set a most significant bit position in the second bit string to identify the shift limit bit position when the exponent value is one of a minimum exponent value for a normal floating-point value and a reserved exponent value used for a subnormal floating-point value, setting of the most significant bit position in the second bit string causing the shift determination circuitry to determine the estimated shift amount to indicate that no shift is to be applied to the difference value. 18. An apparatus as claimed in claim 17 , wherein the exponent value is expressed as a biased exponent value, and the computation circuitry is arranged to set a most significant bit position in the second bit string to identify the shift limit bit position when the biased exponent value is 1 or 0. 19. An apparatus as claimed in claim 1 , further comprising subnormal condition detection circuitry to determine when the estimated shift amount is constrained by the shift limit bit position, rather than the most significant bit position with the difference value that is predicted to have its bit set to a determined value, and on such detection to issue a signal to cause a result exponent to be set to a reserved exponent value used for a subnormal floating-point value.

Assignees

Inventors

Classifications

  • G06F7/485Primary

    Adding; Subtracting {(G06F7/4833, G06F7/4836 take precedence)} · CPC title

  • Saturation, i.e. clipping the result to a minimum or maximum value · CPC title

  • 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)} · CPC title

  • G06F7/504Primary

    in bit-serial fashion, i.e. having a single digit-handling circuit treating all denominations after each other · CPC title

  • in floating-point computations · CPC title

Patent family

Related publications grouped by family.

External sources

Frequently asked questions

Answers are generated from the same data shown on this page.

What does patent US10140093B2 cover?
An apparatus and method are provided for estimating a shift amount when employing processing circuitry to perform a subtraction operation to subtract a second significand value of a second floating-point operand from a first significand value of a first floating-point operand in order to generate a difference value. Shift estimation circuitry then determines an estimated shift amount to be appl…
Who is the assignee on this patent?
Advanced Risc Mach Ltd
What technology area does this patent fall under?
Primary CPC classification G06F7/485. Mapped technology areas include Physics.
When was this patent published?
Publication date Tue Nov 27 2018 00:00:00 GMT+0000 (Coordinated Universal Time) (B2). Legal status and post-grant events are not shown on this page.
What related patents are in patentsdb?
We list 8 related publications on this page (citations in our corpus or others sharing the same primary CPC).