Fast circuit and method for detecting predetermined bit patterns
First Claim
1. A processor for detecting a specified bit pattern in the contents of one or more registers, each register having a plurality of bits, said processor comprising a hierarchical array comprising a plurality of ordered levels of processors labeled 1, 2, . . . M, each level of processors having one or more processing modules, each processing module receiving a plurality of state inputs and generating therefrom a state output, said processing modules in level 1 of said processors having said state inputs connected to selected bits in said registers and said processing modules in the kth level of said hierarchy having said state inputs connected to state outputs of processing modules in level (k-1) of said hierarchy for k=2 to M, wherein each of said processing modules in said levels labeled with 2, 3, . . . , M further comprise means for receiving a plurality of input values and means for generating an output value based on said state inputs and said input values, said receiving means of said processing modules in the kth level of said hierarchy having said receiving means connected to said output generating means of processing modules in level (k-1) of said hierarchy for k=2 to M, said output value providing information on the potential location of said specified bit pattern, and wherein each said processing module in said level labeled 1 includes means for generating an output signal based on said selected bits connected thereto.
3 Assignments
0 Petitions
Accused Products
Abstract
A method and processor design for detecting a specified bit pattern based on the contents of one or more registers, each register having a plurality of bits. The invention is well suited for parallel processing. The method begins by combining successive sets of contiguous bits to generate a state value and output value representative of the values in each set of contiguous bits. The state values and output values so generated become the values for level 1 of a hierarchy of state and output values. The manner in which the states are assigned and the number of states will, in general, depend on the specific bit pattern being sought. At each successive level in the hierarchy, sets of continuous output values and state values from the previous level are combined to generate the output values and state values for the level in question. The number of output and state values is reduced by at least a factor of two at each level of the hierarchy. The process is terminated when only one output value and state value remains. The final output value specifies the location of the first bit of the bit pattern sought in the original bit string when the final state indicates that the bit pattern has been found. The method may be implement by a processor that includes a hierarchical array of processing elements arranged as a plurality of ordered levels of processors. Each level of processors has one or more processing modules. Each processing module receives a plurality of state inputs and generates therefrom a state output. The processing modules in level 1 have their state inputs connected to selected bits in the registers and the processing modules in the kth level of the hierarchy have their state inputs connected to state outputs of processing modules in level (k-1).
-
Citations
13 Claims
- 1. A processor for detecting a specified bit pattern in the contents of one or more registers, each register having a plurality of bits, said processor comprising a hierarchical array comprising a plurality of ordered levels of processors labeled 1, 2, . . . M, each level of processors having one or more processing modules, each processing module receiving a plurality of state inputs and generating therefrom a state output, said processing modules in level 1 of said processors having said state inputs connected to selected bits in said registers and said processing modules in the kth level of said hierarchy having said state inputs connected to state outputs of processing modules in level (k-1) of said hierarchy for k=2 to M, wherein each of said processing modules in said levels labeled with 2, 3, . . . , M further comprise means for receiving a plurality of input values and means for generating an output value based on said state inputs and said input values, said receiving means of said processing modules in the kth level of said hierarchy having said receiving means connected to said output generating means of processing modules in level (k-1) of said hierarchy for k=2 to M, said output value providing information on the potential location of said specified bit pattern, and wherein each said processing module in said level labeled 1 includes means for generating an output signal based on said selected bits connected thereto.
-
7. A method for operating a data processing system to determine the position of a predetermined bit pattern in a string of bits, said method comprising the steps of:
-
(a) combining successive sets of contiguous bits in said bit string to generate a state value and output value representative of the values in each said set of contiguous bits, said state values and output values comprising level 1 of a hierarchy of state and output values, each bit in said bit string being in precisely one of said successive sets; (b) combining successive sets of continuous output values and state values from level k to generate output values and state values in level (k+1) for k>
1, said output values and state values being determined by the output values and state values in level k, each output value and state value in level k being in precisely one of said successive sets, the number of said output values and said state values at level k being less than the number of said output values and state values at level (k-1); and(c) repeating (b) until only one output value and one state value are generated, said output value arid said state value being referred to as the final output value and the final state value, respectively. - View Dependent Claims (8, 9, 10, 11, 12, 13)
-
Specification