Collating bits from a byte source
First Claim
Patent Images
1. A method for collating a bit-group having a plurality of bits, comprising:
- generating a bit-pattern corresponding to the plurality of bits in the bit-group, the bit pattern including bit-segments equal in number to the plurality of bits in the bit-group, each of the bit-segments having a first number of bit positions, and one bit position in each of the bit-segments occupied by a corresponding bit in the bit-group, all other positions in each of the bit-segments occupied by a selected bit value; and
combining the bit-pattern with contents of an accumulation register, placing a result thereof in the accumulation register.
2 Assignments
0 Petitions
Accused Products
Abstract
A bit collation method is disclosed which requires a substantially fewer number of clock cycles than the prior art method in separating the bits in a source of bytes and collating them by bit position. A static look-up table is used to spread out the bits in a byte being collated. The look-up table enables simultaneous collation of all bits in a byte using only five clock cycles.
12 Citations
25 Claims
-
1. A method for collating a bit-group having a plurality of bits, comprising:
-
generating a bit-pattern corresponding to the plurality of bits in the bit-group, the bit pattern including bit-segments equal in number to the plurality of bits in the bit-group, each of the bit-segments having a first number of bit positions, and one bit position in each of the bit-segments occupied by a corresponding bit in the bit-group, all other positions in each of the bit-segments occupied by a selected bit value; and combining the bit-pattern with contents of an accumulation register, placing a result thereof in the accumulation register. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8, 9, 10)
-
-
11. An apparatus for collating a bit-group having a plurality of bits, comprising:
-
means for generating a bit-pattern corresponding to the plurality of bits in the bit-group, the bit pattern including bit-segments equal in number to the plurality of bits in the bit-group, each of the bit-segments having a first number of bit positions, and one bit position in each of the bit-segments occupied by a corresponding bit in the bit-group, all other positions in each of the bit-segments occupied by a selected bit value; and means for combining the bit-pattern with contents of an accumulation register, and placing a result thereof in the accumulation register.
-
-
12. An apparatus for collating a bit-group having a plurality of bits, comprising a processor configured and arranged to generate a bit-pattern corresponding to the plurality of bits in the bit-group, the bit pattern including bit-segments equal in number to the plurality of bits in the bit-group, each of the bit-segments having a first number of bit positions, and one bit position in each of the bit-segments occupied by a corresponding bit in the bit-group, all other positions in each of the bit-segments occupied by a selected bit value, and combine the bit-pattern with contents of an accumulation register, and placing a result thereof in the accumulation register.
-
13. A method for locating a selected bit pattern in an input stream of bytes, the bit pattern sought in bits having a common position in the input bytes, comprising the steps of:
-
generating a multi-segment bit pattern corresponding to an input byte, the multi-segment bit pattern including a plurality of bit-segments, each having one bit position with a value indicated by a corresponding bit in the input byte, and all other bit positions in the bit-segments having a selected bit value; generating a new value for an accumulation register based on the multi-segment bit pattern and a present value of the accumulation register, the accumulation register having portions corresponding to bit positions in the input bytes; repeating the steps of generating the multi-segment bit pattern and generating the new value for the accumulation register until a selected number of input bytes have been processed; and locating the selected bit pattern in the accumulation register. - View Dependent Claims (14, 15, 16, 17, 18)
-
-
19. An apparatus for locating a selected bit pattern in an input stream of bytes, the bit pattern sought in bits having a common position in the input bytes, comprising:
-
means for generating a multi-segment bit pattern corresponding to an input byte, the multi-segment bit pattern including a plurality of bit-segments, each having one bit position with a value indicated by a corresponding bit in the input byte, and all other bit positions in the bit-segments having a selected bit value; means for generating a new value for an accumulation register based on the multi-segment bit pattern and a present value of the accumulation register, the accumulation register having portions corresponding to bit positions in the input bytes; means for continuing to generate the multi-segment bit pattern and generate the new value for the accumulation register until a selected number of input bytes have been processed; and means for locating the selected bit pattern in one of the portions of the accumulation register. - View Dependent Claims (20, 21, 22, 23, 24)
-
-
25. An system for locating a selected bit pattern in an input stream of bytes, the bit pattern sought in bits having a common position in the input bytes, comprising a processor configured and arranged to (a) generate a multi-segment bit pattern corresponding to an input byte, the multi-segment bit pattern including a plurality of bit-segments, each having one bit position with a value indicated by a corresponding bit in the input byte, and all other bit positions in the bit-segments having a selected bit value, (b) generate a new value for an accumulation register based on the multi-segment bit pattern and a present value of the accumulation register, the accumulation register having portions corresponding to bit positions in the input bytes, (c) continue to generate the multi-segment bit pattern and generate the new value for the accumulation register until a selected number of input bytes have been processed, and (d) locate the selected bit pattern in the accumulation register.
Specification