The invention relates to the field of
integrated circuit design, and discloses a processor
preamble and mantissa continuous bit parallel counting device and method. The device comprises a 32-bit bit sequence flipping module, a 32-bit bit
negation module, eight 4-bit
leading zero detection modules, four 8-bit
leading zero processing modules, two 16-bit
leading zero processing modules, a 32-bit leading zero
processing module and a 32-bit result output module. According to the invention, parallel counting can be carried out on leading zeros, leading 1, mantissa zeros or mantissa 1 of various data with different precisions in a single processor
clock period, so that the required
time sequence path length is greatly shortened, the higher processor
clock frequency is realized, the
multiplexing of a hardware circuit is realized, and the cost is reduced. The circuit greatly reduces the use of
transistor resources, reduces the area of a
chip, reduces the cost and
power consumption of the
chip, improves the operation efficiency, universality and adaptability of the processor, and is suitable for being applied to application scenes such as a high-performance
digital signal processor and a CPU (
Central Processing Unit).