Processor and method of determining a normalization count
First Claim
Patent Images
1. A method comprising:
- receiving an operand at a normalization logic circuit, the operand including a plurality of bits; and
generating a first shift amount having a value representing a number that is one less than a count of leading bits of the operand when a value of the operand is not equal to zero, wherein generating the first shift amount comprises;
extracting a most significant bit from the plurality of bits;
shifting remaining bits of the plurality of bits left by one bit to produce a plurality of shifted bits;
inserting a zero value in a least significant bit of the plurality of shifted bits;
counting a leading number of zeros in the plurality of shifted bits to produce a gross shift amount; and
masking a most significant bit of the gross shift amount.
1 Assignment
0 Petitions
Accused Products
Abstract
In a particular embodiment, a method is disclosed that includes receiving an operand to be normalized at a normalization logic circuit, where the operand includes a plurality of bits. The method further includes generating a zero output when a value of the operand is equal to zero and, when the value is not equal to zero, generating an output value representing a number that is one less than a count of leading bits of the operand.
14 Citations
27 Claims
-
1. A method comprising:
-
receiving an operand at a normalization logic circuit, the operand including a plurality of bits; and generating a first shift amount having a value representing a number that is one less than a count of leading bits of the operand when a value of the operand is not equal to zero, wherein generating the first shift amount comprises; extracting a most significant bit from the plurality of bits; shifting remaining bits of the plurality of bits left by one bit to produce a plurality of shifted bits; inserting a zero value in a least significant bit of the plurality of shifted bits; counting a leading number of zeros in the plurality of shifted bits to produce a gross shift amount; and masking a most significant bit of the gross shift amount. - View Dependent Claims (2, 3, 4, 5, 6, 7)
-
-
8. A processor comprising:
an instruction execution unit configured to execute a normalization instruction, the instruction execution unit comprising; an input adapted to receive an operand comprising a plurality of bits; a most significant bit extraction circuit coupled to the input and adapted to extract a most significant bit from the plurality of bits; a shifter circuit coupled to the input, the shifter circuit adapted to; shift remaining bits of the plurality of bits left by one bit to produce a plurality of shifted bits; and insert a zero value in a least significant bit of the plurality of shifted bits; a leading bit counting circuit adapted to count a leading number of zeros in the plurality of shifted bits to produce a gross shift amount; and a mask circuit adapted to mask a most significant bit of the gross shift amount. - View Dependent Claims (9, 10, 11, 12, 13)
-
14. A non-transitory computer readable medium storing a normalization instruction that, when executed by an execution unit of a processor, causes the execution unit to:
-
receive an operand including a plurality of bits; extract a most significant bit from the plurality of bits; shift remaining bits of the plurality of bits left by one bit to produce a plurality of shifted bits; insert a zero value in a least significant bit of the plurality of shifted bits; count a leading number of zeros in the plurality of shifted bits to produce a gross shift amount; and mask a most significant bit of the gross shift amount. - View Dependent Claims (15, 16, 17)
-
-
18. A method comprising:
-
receiving an operand including a plurality of bits at a normalization logic circuit; shifting, at a shifter circuit that is coupled to the normalization logic circuit, the plurality of bits left by one bit to generate a shifted plurality of bits; inserting, at the shifter circuit, a zero value at a least significant bit of the shifted plurality of bits; counting, at a leading bit counting circuit that is coupled to the normalization logic circuit, a leading number of bits in the shifted plurality of bits; and outputting, from the normalization logic circuit, a count representing the leading number of bits minus one when the received plurality of bits has a non-zero value. - View Dependent Claims (19, 20, 21)
-
-
22. A processor comprising:
-
means for receiving an operand including a plurality of bits; and means for generating an output value representing a number that is one less than a count of leading bits of the operand when a value of the operand is not equal to zero, wherein the means for generating comprises; means for extracting a most significant bit from the plurality of bits; means for shifting remaining bits of the operand left by one bit to produce a plurality of shifted bits; means for inserting a zero value in a least significant bit of the plurality of shifted bits; means for counting a leading number of zeros in the plurality of shifted bits to produce a shift amount; and means for masking a most significant bit of the shift amount. - View Dependent Claims (23, 24, 25)
-
-
26. A non-transitory computer readable medium storing processor executable instructions that, when executed by an execution unit of a processor, causes the execution unit to:
-
receive an operand at a normalization logic circuit, the operand including a plurality of bits; and generate, at a leading zeros counting circuit that is coupled to the normalization logic circuit, a first shift amount having a value representing a number that is one less than a count of leading bits of the operand when a value of the operand is not equal to zero, wherein generating the first shift amount comprises; extracting a most significant bit from the plurality of bits; shifting remaining bits of the plurality of bits left by one bit to produce a plurality of shifted bits; inserting a zero value in a least significant bit of the plurality of shifted bits; counting a leading number of zeros in the plurality of shifted bits to produce a gross shift amount; and masking a most significant bit of the gross shift amount. - View Dependent Claims (27)
-
Specification