主权项 |
1. A semiconductor integrated circuit that, when normalizing a plurality of block floating point data included in a block by a common exponent, calculates the exponent of the plurality of data, comprising:
a bit string storage unit; a plurality of bit string generators that generate a second bit string containing bits having a transition value indicating that values of adjacent bits are different or a non-transition value indicating that values of adjacent bits are not different for each pair of adjacent bits of a first bit string constituting the data, in each operation cycle; a bit string composer that, based on a plurality of second bit strings corresponding to the number of the plurality of bit string generators generated by the plurality of bit string generators, generates a third bit string in which, when a bit in the same position is the transition value in at least one of the plurality of second bit strings, a bit corresponding to the position has a first value, and, when a bit in the same position is the non-transition value in all of the plurality of second bit strings, a bit corresponding to the position has a second value, and stores the third bit string into the bit string storage unit, in each operation cycle; and a bit position detector that calculates the exponent of the plurality of data based on a bit position of the first value in the third bit string stored in the bit string storage unit,wherein
when the third bit string is stored in the bit string storage unit, the bit string composer generates the third bit string in which, when a bit in the same position is the transition value in at least one of the plurality of second bit strings and the third bit string, a bit corresponding to the position has the first value, and, when a bit in the same position is the non-transition value in all of the plurality of second bit strings and the third bit string, a bit corresponding to the position has the second value, and updates the third bit string stored in the bit string storage unit to the generated third bit string, the bit position detector calculates the exponent according to an input of a block end signal indicating the last operation cycle in the block, and the bit string storage unit deletes the third bit string stored in the bit string storage unit according to the input of the block end signal indicating the last operation cycle in the block. |