EP0352279A1 - Parallel string processor and method for a minicomputer - Google Patents

Parallel string processor and method for a minicomputer

Info

Publication number
EP0352279A1
EP0352279A1 EP88902641A EP88902641A EP0352279A1 EP 0352279 A1 EP0352279 A1 EP 0352279A1 EP 88902641 A EP88902641 A EP 88902641A EP 88902641 A EP88902641 A EP 88902641A EP 0352279 A1 EP0352279 A1 EP 0352279A1
Authority
EP
European Patent Office
Prior art keywords
register
string
shift register
bit
byte
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Withdrawn
Application number
EP88902641A
Other languages
German (de)
French (fr)
Other versions
EP0352279A4 (en
Inventor
David Methvin
Angus Mclagan
Chong Sam Un
Gei-Jon Pao
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Davin Computer Corp
Original Assignee
Davin Computer Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Davin Computer Corp filed Critical Davin Computer Corp
Publication of EP0352279A1 publication Critical patent/EP0352279A1/en
Publication of EP0352279A4 publication Critical patent/EP0352279A4/en
Withdrawn legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/30Arrangements for executing machine instructions, e.g. instruction decode
    • G06F9/30003Arrangements for executing specific machine instructions
    • G06F9/30007Arrangements for executing specific machine instructions to perform operations on data operands
    • G06F9/30021Compare instructions, e.g. Greater-Than, Equal-To, MINMAX
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/903Querying
    • G06F16/90335Query processing
    • G06F16/90344Query processing by using string matching techniques
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F7/00Methods or arrangements for processing data by operating upon the order or content of the data handled
    • G06F7/02Comparing digital values
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2207/00Indexing scheme relating to methods or arrangements for processing data by operating upon the order or content of the data handled
    • G06F2207/02Indexing scheme relating to groups G06F7/02 - G06F7/026
    • G06F2207/025String search, i.e. pattern matching, e.g. find identical word or best match in a string

Definitions

  • the present invention relates generally to computer systems for processing strings of data, and also to a parallel string processor for a minicomputer and a method of searching strings of bits and bytes for the presence of a desired keyword.
  • Prior art computers and microprocessors process data strings one byte at a time.
  • One of the most frequently occurring processing tasks is to attempt to locate one or more control characters in a data string.
  • Prior art systems compare the data one byte at a time to the control or reference characters which are loaded into a CPU (central processing unit) register. After a byte is compared, the data string is rotated one byte so that the next byte in the data string is compared, continuing until all bytes are compared.
  • search and replace operations are also used in connection with automatic spelling check programs that are offered by many commercially available word processing programs.
  • each letter of the alphabet as well as each symbol such as an asterisk or hyphen is represented as a unique string of eight 1 or 0 logic bits, also known as a byte.
  • the corresponding bits in each byte are compared to determine whether they are the same. If all of the bits in the two byte strings are identical, the two byte strings represent the same word.
  • a portion of text can be thought of and is represented as a long, continuous string of bytes, one byte for each letter appearing in the portion of text. To determin whether a particular word, or "keyword,” appears in portion of text, current string processors typically
  • the keyword does not usually appear as th first word in the portion of text being searched. Consequently, one of the bytes of the keyword will not matc one of the bytes in the character string (the keyword is not the first word in the portion of text) .
  • the character string is shifted one byte relative to the keyword so that the first byte of the keyword is compared "to the second byte of the character string. If these two bytes match, then the second byte of the keyword is compared to the third byte of the character string, and so on. If one of the pairs of bytes do not match, then the character string is again shifted one byte relative to the keyword so that the first byte of the keyword is now compared to the third byte of the character string. This general process repeats, usually until all occurrences of the keyword in the portion of text have been found.
  • these encryption and decryption algorithms may perform similar search and replace operations as described above in connection with word processing programs.
  • Processors such as those described above in connection with word processing programs do not even have this capability since they shift strings of bits eight bits, or one byte, at a time. Even if such processors had the capability to shift strings of data one bit at a time, their use as described above on strings of bits would be even slower due to the large number of comparisons that would be necessary.
  • the bit string "11001110011011" is to be searched for the presence of the keyword "1101." Initially, as described above, the first bit of the keyword would be compared to the first bit in the bit string as set forth below:
  • the processor would need to make four comparisons before it could determine that the four bits in the keyword do not match the first four bits in the bit string. Again, as described above, the processor would then shift the bit string relative to the keyword string as set forth below and compare the respective bits again:
  • bit string the "4" above the first "1" in the bit string means that four comparisons were required in order to determine that the keyword did not match. After the keyword was shifted as shown above, two comparisons would be required to test the next portion of the bit string. As shown below, 22 comparisons would be needed to find the portion of the bit string that matched the keyword.
  • the present invention comprises a portion of a computer system for comparing a number of bytes simultaneously.
  • the parallel processor of the present invention includes a first register for receiving bytes of data, a second register for storing a number of copies of a byte representing a selectable control or reference character and a comparison circuit for simultaneously comparing the data in the two registers to determine whether any of the bytes in the first register are equal to the bytes representing the control character in the second register, and generating control bits which are in a first state if the corresponding byte in the first register is equal to the control character in the second register, and in a second state when the corresponding byte in the first register is not equal to the control character in said second register.
  • the parallel byte processor has the ability to branch to a predetermined memory location if any of the byte pairs being simultaneously compared are equal. If any byte of data in the first register is equal to the bytes comprising the control characters in the second register, the microcode instruction branches or proceeds to a predetermined memory location.
  • the instruction branches or proceeds to a second predetermined memory location.
  • a number of bytes may be moved and checked for control characters with a single instruction, thereby substantially reducing the processing time.
  • eight bytes of data are simultaneously compared.
  • Another aspect of the invention is directed towards a novel parallel bit and byte string processor for a minicomputer.
  • the processor In its byte mode, stores a portion of a string of bytes that is to be tested for the presence of a desired keyword in a first register location and stores the keyword in a second register location. Instead of testing the portion of the byte string one byt at a time, the processor simultaneously tests each byte i the keyword with a respective byte in the byte string Thus only -a single comparison is required to determin whether the keyword is present in any portion of the byt string. If the keyword is not present in the portion of th byte string tested, then the processor shifts the byt string with respect to the keyword and then makes a singl comparison of the keyword with the new portion of the byt string.
  • This single-compare-and-test process continue until either the keyword is found or the end of the byt string is reached.
  • the processing time is kept to an absolute minimum.
  • the processor stores portion of a bit string that is to be tested for th presence of a desired string of bytes in a first registe location and the desired keyword in a second registe location.
  • the processor simultaneously tests each bit i the keyword with a respective bit in the bit string. As result of this simultaneous testing, only one comparison i needed to determine whether the keyword is present in th portion of the bit string being tested.
  • the bit string is shifted one bit relative t the keyword and a single comparison of the keyword with th new portion of the bit string is made. This proces continues until the keyword is found or until the end of th bit string is reached. Because each bit in the keyword i simultaneously tested with a respective bit in the bi string, only a single comparison is required to determin whether the keyword matches a portion of the bit string, an as a result, processing time is minimized.
  • Another feature of the invention is the capability o the processor to automatically function either as a paralle bit processor or as a parallel byte processor.
  • the processo When th processor is given a first control signal, the processo functions as a parallel byte processor, and when th processor is given a second control signal, the processo functions as a parallel bit processor.
  • tw separate processors are not required, thus resulting in cos saving that a separate processor would otherwise entail.
  • FIG. 1 and 2 are block diagrams of two registers of the parallel byte comparison processor
  • Fig. 3 is a circuit diagram of the comparison circuit of the parallel byte comparison processor
  • Fig. 4 is a representative instruction sequence of the parallel byte comparison processor
  • Fig. 5 is a schematic circuit diagram of a parallel string processor in accordance with the invention
  • Fig. 6 is a detailed circuit diagram of a portion of one embodiment of a shift register in accordance with the invention.
  • Fig. 7 is a detailed circuit diagram of a portion of the parallel string processor of Fig. 5;
  • Fig. 8 is a detailed flowchart of the operation of the parallel processor of Fig. 5 in its byte mode of operation;
  • Fig. 9 is a detailed flowchart of the operation of the parallel processor of Fig. 5 in its bit mode of operation.
  • a selected control character such as "EOS" (end of sector)
  • EOS end of sector
  • a selected control character such as "EOS" (end of sector)
  • an 8-byte (64 bit) data string is loaded into a Register B and compared to the "EOS" reference characters in Register A in order to determine whether there are any "EOS” characters in any byte of the data string in the Register A.
  • the results of the comparison whether any particular byte of Register A matches the corresponding byte in Register B, is stored in a Processor Status Register 100 (also referred to as the "hit register") .
  • any number of bytes may be simultaneously compared, the number depending on the particular computer system utilized.
  • the computer is a 64-bit machine; therefore, 8 bytes are simultaneously compared to determine whether they contain a control character.
  • Fig. 3 is a functional diagram to illustrate the invention. In the actual embodiment, an arithmetic logic unit (ALU) is utilized to perform the exclusive-OR function as shown in Fig. 5 and discussed in further detail hereinafter.
  • ALU arithmetic logic unit
  • the components of the exclusive-NOR circuit 109 ar also shown in Fig. 3 as comprising first and second AN gates 110 and 111, first and second inverters 112 and 113, and OR gate 114.
  • the bit pairs for example, A77 and B77, are input to the AND gate 110.
  • the bits A77 and B77 are also inverted by inverters 112 and 113, respectively, and are input into the second AND gate 111 of the exclusive-NOR circuit.
  • the output of the first AND gate 110 and the output of the second AND gate 111 are input to the OR gate 114.
  • the output of each OR gate is provided as an input to one of eight 8-input NAND gates 115-122 (the NAND gates 116- 121 are not shown) .
  • the output of any of the 8-input NAND gates 204-210 will be low or logical "0" only when all eight bits being compared are equal and thus will indicate that the particular byte pair is equal to each other (e.g., when all the bits A00-A07 of the Register A are equal to the corresponding bits B00-B07 of the Register B, the output of the 8-input NAND gate 115 will be low) .
  • An instruction causes the system to branch or proceed to a predetermined memory location when any of the bits in the Processor Status Register 100 indicate that any of the eight bytes being compared are equal. Alternatively, if there are no bits in the Processor Status Register 100, indicating that no byte pairs match and no control character was found, the system proceeds to execute the instruction found in the next sequential memory location in the control memory of the processor. If a hit occurs, the location of the particular bytes which do match can be determined by looking at which bits of the Processor Status Register 100 indicate a match. For example, if byte 3 of the Register A is equal to byte 3 of the Register B, bit 3 in the Processor Status Register will be zero, indicating that the byte 3 pair matches.
  • Fig. 4 shows a representative instruction sequence.
  • the left column corresponds to the line number in the control program of the processor.
  • the instruction at line 80 causes the control character being compared to be loaded into the Register A.
  • the instruction at line 82 causes the loading of Register B with the first eight bytes of data (data word 1, indicated as "DATAl” in Fig. 4) .
  • the instruction at line 84 performs the multibyte "exclusive- NOR" operation of the present invention on the data in the Register B and the Register A.
  • the instruction at line 86 causes the system to branch to a memory location 400 if any of the bits in the Processor Status Register 100 (Fig. 2) are zero indicating that a match was found between the Registers A and B.
  • At memory location 400 which is executed if a hit is found, is the beginning of a routine which examines the bits of the Processor Status Register 100 to determine the location of the characters within data word 1 which match the control character "EOS" for example.
  • Register A is loaded with a second control character and at line 90 the exclusive-NOR operation is performed to determine whether the second control character is present in any of the eight bytes of data in DATAl. If the second control character is found in DATAl, then at line 92 the program branches to memory location 400.
  • the instruction at line 94 is executed and the data in Register B is stored in a buffer. Thereafter, the system proceeds to execute the instruction at line 80 and the process described above repeats. Thus, eight bytes are checked for two different control characters with only two compare cycles in contrast to the 16 compare cycles require in prior art machines.
  • a "branch on no-hits” may be utilized as an undose "branch on any hit" instruction, which branches to memory location if none of the bytes in the data wor contain the control character.
  • the Register A When the data is checked for more than one set o characters, the Register A may be reloaded with th characters for each compare sequence. However, to increas the execution speed, reloading the register may be avoide by various methods known to those skilled in the art.
  • An n to-1 multiplexer may be substituted for the Register A, where n is the number of character sets to be searched fo in the data. For example, if the data is to be searched fo two sets of characters, "EOS" and "CR,” a 2-to-l multiplexe may be utilized, with the registers containing "EOS" and
  • the architecture of the CPU permits the selection of the desired register for input to the exclusive-NOR circuit. Instructions cause the CPU to route the contents of the selected register to the exclusive-NOR circuit. Alternatively, tri-state devices may be utilized.
  • an arithmetic logic unit (ALU) is utilized to perform the exclusive-OR function.
  • the End of Sector (EOS) or other control characters are loaded into the A register file.
  • the data which is to be searched for the End of Sector flag is loaded in register B via the B bus 172.
  • the EOS flag is input to the ALU through the A latch 142 and the data to be compared to determine whether it contains "EOS" characters is input to the ALU through B latch 144.
  • the ALU compares each bit of input from the A register to the corresponding bit of input from the B register. For each matching bit pair, the ALU will generate a zero on the respective output line.
  • the output of the ALU is input to the zero detect circuit (which comprises 8-input NOR gates) via the F bus 148.
  • the zero detect circuit determines whether all of the bits within a byte are zero.
  • a one is generated by the zero detect circuit indicating that a particular byte from the register matches the byte from the B register.
  • the foregoing embodiment utilizes inverse logic from th illustrative circuit shown in Fig. 3. In the circuit show in Fig. 3, a zero is generated when the byte pairs match.
  • a parallel string processor in accordance with anothe aspect of the invention is shown in Fig. 5.
  • the processo includes a dual register file 120 comprising an A registe file and a B register file. Although only nine registers are shown in each register file, each register file includes 1024 registers, and may include more if desired. In this embodiment, the processor of Fig.
  • the register file is shown to include an address register 122, a length register 124, a bit mask register 126, a byte mas register 128, and a test register 130.
  • the address registe 122 is used to store the address of a data string, either a bit string or a character string, that is to be searched by the processor for a particular keyword.
  • the length register 124 is used to store the length of the portion of the data string that remains to be tested.
  • the bit mask register 126 is used to store a desired pattern of bits that is used to mask the keyword.
  • bit mask register 126 might be used to ignore capital letters so that the processor would consider the letter "a” to be equivalent to the letter "A.”
  • the byte mask register 128 contains a desired pattern of bytes used to mask the keyword. For example, the byte mask register 128 might be used to ignore the second letter of a word so that the processor woul equate the word "string” with "spring.”
  • the test register 130 contains the desired keyword after it has been maske with the desired byte mask.
  • the B register file contains a bit count register 13 and a byte count register 134 which, as is explained in mor detail hereinafter, determine when the next portion of th data string being tested for the presence of the keywor needs to be fetched from memory.
  • a keyword register 136 contains the binary data string corresponding to the desire keyword, and the end-of-string (END) flag register 138 contains a flag that indicates whether or not a data strin has been completely searched for the presence of a desired keyword.
  • the A and B register files are connected to an arithmetic logic unit (ALU) 140 through an A latch 142 and a B latch 144, respectively.
  • the ALU 140 is a conventional arithmetic logic unit, which in this embodiment may include SN54LS381A ('381), SN54LS382 (*382), or similar integrated circuit chips commercially available from Texas Instruments of Dallas, Texas.
  • the arithmetic logic unit 140 performs various operations on the data supplied to its dual data inputs, depending upon the combination of binary signals supplied to its control inputs by an ALU function select circuit 146. For example, when the ALU 140 receives a particular combination of control inputs, the ALU 140 adds its two data inputs. In response to a different combination of its control inputs, the ALU 140 performs an exclusive-or operation on its data inputs.
  • the A and B register files are designed so that at any time, the binary information stored in each register is equal to the binary information stored in its adjacent register so that the A register file is a copy of the B register file, and vice-versa.
  • This register organization speeds up the operation of the processor. In order to perform an operation on two operands, one operand must be transmitted to the A latch 142 and the other to the B latch 144. If there were only an A register file, the processor would require an extra cycle to perform any given ALU operation.
  • the output of the ALU 140 is connected via an 64-bit- wide F-bus 148 to a zero-detect circuit 150 which detects 5 when all the outputs of the ALU 140 are zero.
  • the ALU 140, ALU function select circuit 146, and zero detect circuit 150 are shown in detail in Fig. 7.
  • the ALU function selec circuit 146 is shown functionally (in dotted lines) fo purposes of explaining the invention. In reality, th
  • function select circuit 146 is implemented with programmabl array logic integrated circuits commercially available fro Monolithic Memories, Inc. of Santa Clara, California, tha are programmed with many equations that do not facilitat explanation. These equations are, however, included in thi - 15 specification as Appendix 1, and they completely describ the actual embodiment of the ALU function select circui 146.
  • the ALU comprises 16 separate, 4-bit "381 integrate circuit chips 152. For purposes of clarity, the data input
  • each pair of the chip 152 is connected to a respective multiplexer 154 whic supplies the control inputs for the chips 152.
  • multiplexers 154 either supplies a desired 3-bit FUNCTIO signal or a 3-bit CLEAR signal to the control inputs of th pair of chips 152 to which it is connected, depending upo the value of its address signal sent from a register 15 which stores the 8 bits of the byte mask.
  • the byte mask causes the processor to ignore certai bytes in the data string being searched so that, fo example, the processor would equate the keyword "string” with the word “spring” in the data string, in which case th second bit of the byte mask would be set to logic "1" s
  • the fourth bit of the byte mask would be set to logic "1.
  • the multiplexers 154 either supply a specified FUNCTIO signal or a CLEAR .signal to the chips 152, depending upo -whether- the value of the particular bit of the byte mask i the register 156 is logic "1" or "0.” If the bit in the byt mask is logic "0,” the desired 3-bit FUNCTION signal i transmitted, and if the bit in the byte mask is logic "1,” the 3-bit CLEAR signal is sent, which causes the outputs of the ALU chips 152 to which it is connected to be forced to logic "0.”
  • the zero detect circuit 150 comprises 16 NOR gates 158 connected to receive the outputs of the ALU chips 152.
  • the outputs of the NOR gates 158 are connected to eight AND gates 160, which in turn are connected to a pair of NAND gates 162 which are connected to a NOR gate 164.
  • the particular logic gates used in the zero detect circuit 150 are not important to the invention since other circuits could be easily designed to detect that all outputs of the ALU chips were logic "0," such as, for example, a single 64-bit NOR gate.
  • the F-bus 148 is connected to an A-bus 168 via a buffer 170 and a B-bus 172 via another buffer 174.
  • the zero-detect circuit 150 is coupled to the B-bus 172 through a buffer 176.
  • a memory 178 is connected to the bus 180 that connects the output of the A latch 142 to the ALU 140 through a buffer 182 connected to an M-bus 184. Because this embodiment is for a 64 bit minicomputer, the A-bus 168, the B-bus 172, and the M-bus 184 are also 64 bits wide.
  • a pair of serially connected 64-bit shift registers comprising a J shift register 186 and a K shift register 188 are connected to the B-bus 172.
  • a mask register 190 is connected to the J shift register 186 via a mask bus 192. As is explained in more detail below, these shift registers are used to store portions of the data string to be tested for the presence of a desired keyword.
  • a trio of control signals is supplied to each of the two shift registers 186, 188.
  • a LOAD signal causes the register to which it is attached to be parallel-loaded with a portion of a data string.
  • the data is loaded into the registers 186, 188 from the memory 178 through a data route consisting of the ALU 140, the F-bus 148, the buffer 174, and the B-bus 172.
  • a second signal Si causes its respective shift register to be shifted left one bit
  • a third signal S8 causes its respective shift register to be shifted left eight bits, or one byte.
  • Fig. 6 is a portion of a substantially functional equivalent of the J shift register 186 used for purposes of explaining the invention.
  • the actual embodiment of the J and K shift registers 186, 188 comprises specially programmed conventional programmable array logic integrated circuits commercially available from Monolithic Memories, Inc. of Santa Clara, California, and the equations used to program these integrated circuits are included in this specification as Appendix 2 and completely describe the actual embodiment of the J and K shift registers 186, 188.
  • a portion of the J shift register 186 consisting of logic gates and flip-flops 196 is shown. Although only six flip-flops 196 are shown, the J shift register 186 is 64 bits wide and thus includes 64 serially connected flip-flops 196. In Fig. 6 the flip-flops 196 are numerically ordered, with the rightmost flip-flop being the Nth flip-flop, the flip-flop to the left of the Nth flip-flop being the (N+l)st flip-flop, etc. Each of the flip-flops 196 has a data input D connected to the output of a logic circuit 198 and a clock input C connected to receive a CLOCK signal that controls the speed of operation of the shift registers 186, 188.
  • the logic circuits 198 control the loading and shifting operations of the flip-flops 196.
  • Each of the logic circuits 198 comprises a three-input OR gate 200 and three two-input AND gates 202.
  • One of the AND gates 202a has a first input connected to one of the 64 lines of the B-bus 172 and its second input connected to the LOAD signal.
  • This AND gate 202a in each of the logic circuits 198 causes the flip-flop to which it is connected to be loaded with the binary value of the B-bus 172 when the LOAD signal is activated, which occurs when the LOAD signal is logic "1."
  • the output of the AND gate 202a which equals the binary value of the B-bus input, is supplied to its respective flip-flop 196 through its OR gate 200.
  • the outputs of the other two AND gates 202b, 202c do not interfere with this loading process since the SI and S8 signals are forced to logic "0" when the LOAD signal is activated.
  • the portion is periodically shifted either one bit or eight bits at a time, depending on whether the processor is performing a bit-by-bit comparison or a byte-by-byte comparison. If bit comparisons are being performed, the SI signal is activated to logic "1" while the LOAD and S8 signals remain at logic
  • Each AND gate 202c to which the Si signal is supplied has its other input connected to the output of the first upstream flip-flop, "upstream” meaning the direction from which data is being shifted.
  • upstream meaning the direction from which data is being shifted.
  • the first "upstream” flip-flop is the first flip-flop to the right of the circuit element
  • the first "downstream” flip-flop is the first flip-flop to the left of the circuit element.
  • the activation of the SI signal causes the shift registers 186, 188 to perform a one- bit logical left shift on the portion of the data string stored therein.
  • the activation of the S8 signal causes an eight-bit, or one-byte, logical left shift to be performed by the shift registers 186, 188.
  • Each AND gate 202b to which the S8 signal is connected has its other input connected to the output of the eighth upstream flip-flop so that when the S8 signal is logic "1," the output of each of the flip-flops 196 is passed to the eighth respective downstream flip-flop so that the portion of the data string is shifted eight bits to the left.
  • Another portion of the J shift register 186 performs a bit mask operation so that any desired bits of the string being searched may be ignored. For example, as described above, it might be desirable to ignore capital letters so that the processor would consider the letter "a" to be equivalent to the letter "A.”
  • the output of each of the flip-flops 196 is supplied to one input of a two-input AND gate 204 having its other input connected to receive the output of a NAND gate 206.
  • One input of the NAND gate 206 is connected to receive a respective bit of the bit mask from the mask register 190 connected to the J shift register via the mask bus 192.
  • the NAND gate 206 is also connected to receive a BIT MASK ENABLE signal that selectively activates or deactivates the bit mask operation.
  • each of these logic "0"s causes a forced match when the masked portion of the data string is compared to the keyword string by the processor.
  • the output of each of the AND gates 204 is connected to the B-bus 172 so that the masked or unmasked portion of the data string stored in the shift registers may be supplied to the ALU 140 for comparison to the keyword string.
  • the particular logic used for the masking functions is not important, and alternative logic could be used.
  • bit mask enable signal would be activated when logic "0" instead of logic "1.”
  • the functional circuit diagram of the K shift register 188 is substantially identical to the diagram of the J shift register shown in Fig. 6, except that the AND gates 204 and the NAND gates 206 used in connection with the bit mask and the BIT MASK ENABLE signal are not required since only the output of the J shift 186 register is sent to the ALU 140 for comparison to the keyword, as is explained in more detail below.
  • the processor compares a selected string of bytes to determine the presence of a selected keyword. Both the byte string and the keyword ar selectable by the user of the processor.
  • the basic process by which the processor tests for the presence of a selecte keyword string within a selected data string includes initially loading the J and K shift registers 186, 188 with the first portion of the data string to be tested.
  • the entire contents of the J shift register 186 are simultaneously compared with the keyword stored in the test register 130. If there is a match, the presence of a matc is indicated by the processor. Then, the contents of the and K registers 186, 188 are shifted left one byte and th contents of the J register 186 are again compared with th contents of the test register 130. Any match is indicated, and the process is repeated. Periodically, the K registe 188 will become empty since its contents are graduall shifted into the J register 186, and so the K register wil be periodically reloaded with the next portion of the dat string to be tested. In this manner, the entire keyword is simultaneously compared with a corresponding portion of th data string.
  • this particular example required 14 comparisons to find the keyword "the” in the character string "that time is the essence” in contrast to the 21 comparisons that were required by a conventional data string processor as show above. This reduction results from the entire keywor -23- simultaneously being compared with a portion of the dat string, instead of being compared one byte at a time.
  • Fig. 8 is a flowchart of the microcode that controls th operation of the processor shown in Fig. 5, and Table 1 includes a software program that is substantiall functionally equivalent to the microcode actually used. The operation is explained with reference to Table 1 and not the actual microcode used because the actual microcode would be incomprehensible since it is merely a collection of "l"s and "0"s.
  • the binary representation of the keyword is stored in the keyword register 136 in the B register file and the binary representation of the data string is stored in the memory 178.
  • the desired bit mask is stored in the bit mask register 126 and in the mask register 190
  • the desired byte mask is stored in the byte mask register 128 and in the register 156
  • the address of the byte string in memory 178 to be searched is stored in the address register 122
  • the length in bytes of the byte string being searched is stored in the length register 124.
  • the value of the end-of-string (END) flag indicates whether or not the data string has been completely searched for the presence of the keyword.
  • th value of the END flag is reset to indicate that the end o the string has not yet been reached.
  • th keyword is masked with the bit mask to ensure that th piocessor ignores any bits in any desired byte as selecte by the user.
  • This step is carried out by instructions 2-5 of Table 1. Instructions 2 and 3 supply the bit mask to one data input of the ALU 140 and the keyword to the other data input. Instruction 4 causes the appropriate control signal to be supplied to the ALU so that its two data inputs are logically "anded" together, and the ALU output, which is the value of the masked keyword, is stored in the test register
  • any bits of the keyword which are to be ignored by the processor are masked to logic "0,” and these masked zero bits will force a match with the corresponding bit position in the data string during subsequent comparisons as is explained in more detail below.
  • the J shift register 186 is loaded with the first word of the data string to be tested, "word" meaning a block of binary data eight bytes long to correspond to the eight byte width of the J shift register
  • step 216 is accomplished by instruction 6 in Table 1 which moves the contents of the memory at the address where the data string is stored to the J shift register 186 through a path including the memory buffer 182, the M-bus
  • step 218 the next word, or eight bytes, of the data string are loaded into the K shift register 188 from the memory 178 in a similar manner by instructions 7-11. Specifically, instructions 7-10 cause the address to be incremented by eight so that the incremented address will point to the next eight bytes of the data string in memory 178. Then instruction 11 causes the next eight bytes to be fetched from memory 178 and put into the K shift register 188 via the same data path as described in connection with the loading of the J shift register 186.
  • the numeric value eight is stored in the byte count register 134 since there are now eight bytes of string data in the K register 188. Because the contents of the K register 188 are periodically shifted left into the J shift register 186, it is important to know how many bytes of the data string are left in the K register 188 so that the processor will know when to reload the K register with the next portion of the data string.
  • step 222 the masked keyword stored in the test register 130 is compared to the portion of the data string stored in the J register 186.
  • This step is implemented by the instructions 13-16 of Table 1. Specifically, instruction 13 causes the masked keyword stored in the test register 130 to be sent to the A latch 142. Then, instruction 14 causes the contents of the J shift register 186 to be moved to the B latch 144 via the B- bus 172. If the BIT MASK ENABLE signal is logic "1," then the contents of the J register 186 are logically "anded” with the bit mask by the AND gates 204 prior to being sent to the B latch 144.
  • the binary value of the masked keyword is compared to the binary value of the masked portion of the data string by providing the ALU FUNCTION signal with the binary values that cause the ALU 140 to perform a bit-by-bit logical "exclusive-or" of its two data inputs.
  • the logical exclusive-or operation which is conventional and well known, is a sum modulo 2 operation.
  • a bit-by-bit logical exclusive-or provides a logic "0" output if its two bit inputs are both logic “1” or logic “0,” and hence match, and a logic "1” output if its two bit inputs are different.
  • a logic "0" will be produced in the corresponding byte position.
  • the processor proceeds to the user's program so that the user program may perform its programmed function, for example, replace the keyword that was located with a different word, whereupon the user program returns control to the processor so that any other occurrences of the keyword can be found.
  • the existence of a match is determined by the zero detect circuit at instruction 16.
  • Instruction 16 causes the contents of the ALU 140 to be sent to the zero detect circuit 150.
  • the zero detect circuit 150 tests each byte of the ALU to determine whether all bytes are zero, in which case all unmasked bytes of the keyword match all unmasked bytes of the data string portion.
  • the ALU output corresponding to each masked byte is forced to logic "0," which is the same logical output that the ALU provides in case of a match.
  • each logic "1" bit in the byte mask forces a match in its corresponding byte position in the keyword.
  • instruction 18 Upon a match, instruction 18 will cause a return to the user's program, and the user program will return control to the processor at instruction 19. If there is no match, instruction 17 will cause instructions 18 and 19 to be skipped.
  • the length of the data string will be decremented by one byte since one byte has just been tested and thus there is one less byte in the data string that needs to be tested.
  • This step is implemented by instructions 20-23.
  • Instruction 20 causes the number one to be moved to the B latch 144, and instruction 21 causes the current data string length to be sent to the A latch 142.
  • Instruction 22 causes the ALU 140 to subtract one from the current length, and the new length is stored in the length register 124 by instruction 23.
  • step 2208 the new data string length stored in the length register 124 is tested to determine whether all of the bytes in the data string have already been compared to the keyword, which will be the case if the numeric value of the length is zero. This is accomplished at instruction 24 which sends the output of the ALU 140 to the zero detect circuit 150. If the value of length is zero, then step 230 is executed, causing the END flag to be set to logic "1" to indicate that the end of the string has been reached, and control is returned to the user's program. This is accomplished by instructions 26 and 27.
  • step 232 the program branches to step 232 at which the contents of the J and K registers 186, 188 are shifted left by one byte. This is accomplished by instruction 28, which causes a logic "1" S8 signal to be sent to the shift registers 186, 188 so that their contents are shifted left one byte as explained above.
  • the contents of the byte count register 134 are then decremented by one at step 234 to indicate that there is one less byte in the K shift register 188 since it has just shifted one of its bytes into the J shift register. This step is accomplished by instructions 29-31.
  • Step 236 the numeric value of byte count is tested to determine if it is zero, in which case the next eight bytes of the data string need to be moved from the memory 178 into to K shift register 188, and so the program branches back to step 218 so that the K shift register 188 is reloaded. If the byte count is nonzero, the shift register 188 does not need to be reloaded, and the program branches to step 222 so that the current portion of the data string in the J register 186 may be compared to the masked keyword.
  • Step 236 is executed by instructions 32-35. Instruction 32 causes the contents of the ALU 140 to be sen to the zero detect circuit 150. If the zero detect circui
  • instruction 150 detects a zero, instruction 33 causes a branch t instruction 7.
  • Instruction 34 saves the decremented valu of the byte count if it is nonzero, and instruction 35 causes a branch back to instruction 13.
  • the bit mode of operation of the processor is generally similar to its byte mode of operation. In its bit mode of operation, the processor compares a selected string of bits to determine the presence of a selected keyword. Both the bit string and the keyword are selectable by the user of the processor.
  • the basic process by which the processor tests for the presence of a selected keyword within a selected bit string includes initially loading the J and K shift registers 186, 188 with the first portion of the bit string to be tested. Then, the entire contents of the J shift register 186 are simultaneously compared with the keyword stored in the test register 130. If there is a match, the presence of a match is indicated by the processor.
  • the contents of the J and K registers 186, 188 are shifted left one bit and the contents of the J register 186 are again compared with the contents of the test register. Any match is indicated, and the process is repeated.
  • the K register 188 will become empty since its contents are gradually shifted into the J register 186, and so the K register 188 will be periodically reloaded with the next portion of the bit string to be tested. In this manner, the entire keyword is simultaneously compared with a corresponding portion of the bit string.
  • this particular example required only 10 comparisons to find the keyword "1101" in the bit string "11001110011011” in contrast to the 22 comparisons that were required by a conventional bit string processor as shown above. This reduction results from the entire keyword simultaneously being compared with a portion of the bit string, instead of being compared one bit at a time.
  • bit mode of the processor is very similar to the byte mode, and can be understood with reference to Fig. 9 and Table 2 set forth below.
  • Fig. 9 which is a flowchart of the microcode that controls the operation of the processor, is very similar to the flowchart of Fig. 8, except that in a number of instances different operations are executed since the processor is in its bit mode of operation and not its byte mode.
  • the software implementation set forth in Table 2 is very similar to that of Table 1, so that only the differences need be explained to provide a clear understanding of the detailed operation of the bit mode of operation.
  • the contents of the bit count register 132 are set to 64 since the K shift register 188 will be shifted one bit at a time and 64 bits are initially loaded into the K register 188.
  • the contents of the J and ⁇ K shift registers 186, 188 are shifted left one bit instead of byte.
  • the contents of the bit count register 132 instead of the byte count register 34 are decremented by one.
  • the conditional branch occurs when the value of the bit count register 132 has reached zero, and not the byte count register 134.
  • the two modes of operation just described are invoked by a user by including appropriate software instructions in the user's program. Specifically, the byte mode of operation is invoked by the instruction "SCANS” and the bit mode of operation is invoked by the instruction "BITSCAN.”
  • Two further embodiments of the invention are identical to the embodiment just described, except that they are directed towards 16 and 32 bit parallel processors, respectively.
  • the differences between these embodiments include the data width of the buses, buffers, ALU, A and B latches, and registers. Otherwise, the operation of these additional embodiments is the same.

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • Computational Mathematics (AREA)
  • Databases & Information Systems (AREA)
  • Software Systems (AREA)
  • Mathematical Analysis (AREA)
  • Mathematical Optimization (AREA)
  • Pure & Applied Mathematics (AREA)
  • Computational Linguistics (AREA)
  • Data Mining & Analysis (AREA)
  • Executing Machine-Instructions (AREA)

Abstract

Un processeur en parallèle de chaînes alphanumériques dans un mini-ordinateur examine des parties de texte ou des chaînes binaires à la recherche de mots ou de chaînes binaires voulus. Le processeur comprend un premier registre (136) dans lequel est enregistrée une chaîne comportant un mot-clé et une paire de registres à décalage interconnectés (186 et 188) dans lesquels est enregistrée la chaîne que l'on doit rechercher afin de retrouver le mot-clé. Une unité logique arithmétique (140) compare le contenu du premier registre avec l'un des registres à décalage afin de déterminer si le mot-clé est présent dans la partie de la chaîne en train d'être examinée. Après cette compression, le contenu des registres à décalage interconnectés est décalé par rapport au mot-clé enregistré dans le premier registre. Lorsque le processeur recherche un mot-clé ayant un nombre prédéterminé d'octets, le contenu des registres à décalage est décalé d'un octet à la fois, et lorsque le processeur recherche un mot-clé ayant un nombre prédéterminé de bits, le contenu des registres à décalage est décalé d'un bit à la fois.A parallel processor of alphanumeric strings in a minicomputer examines parts of text or binary strings for words or binary strings. The processor comprises a first register (136) in which is recorded a chain comprising a keyword and a pair of interconnected shift registers (186 and 188) in which is recorded the chain which must be searched in order to find the word -key. An arithmetic logic unit (140) compares the contents of the first register with one of the shift registers to determine if the keyword is present in the part of the string being examined. After this compression, the content of the interconnected shift registers is shifted with respect to the keyword recorded in the first register. When the processor searches for a keyword having a predetermined number of bytes, the contents of the shift registers are shifted by one byte at a time, and when the processor searches for a keyword having a predetermined number of bits, the content shift registers is shifted one bit at a time.

Description

PARALLEL STRING PROCESSOR AND METHOD FOR A MINICOMPUTER This is a continuation-in-part of U.S. Serial No. 012,834, filed February 10, 1987.
A portion of the disclosure of this patent document contains material which is subject to copyright protection. The copyright owner has no objection to the facsimile reproduction by anyone of the patent document or the patent disclosure, as it appears in the Patent and Trademark Office patent file or records, but otherwise reserves all copyright rights whatsoever.
Background of the Invention
The present invention relates generally to computer systems for processing strings of data, and also to a parallel string processor for a minicomputer and a method of searching strings of bits and bytes for the presence of a desired keyword.
Prior art computers and microprocessors process data strings one byte at a time. One of the most frequently occurring processing tasks is to attempt to locate one or more control characters in a data string. Prior art systems compare the data one byte at a time to the control or reference characters which are loaded into a CPU (central processing unit) register. After a byte is compared, the data string is rotated one byte so that the next byte in the data string is compared, continuing until all bytes are compared.
The foregoing is a time-consuming procedure and utilizes a substantial amount of computer time as numerous repetitions of the comparison process are required to check each byte sequentially in order to determine whether it contains the reference character. For example, there may be only one "carriage return" (CR) character found per 80- character line, but all 80 characters must be compared one at a time. If a data string has 512 bytes, and each byte is separately compared to the control character, the comparison must be executed 512 times. Thus, a need exists for red cing .the amount of time required to compare strings of data and find control characters embedded in the strings.
Eight bytes of data are simultaneously compared. Thus, the number of comparisons necessary is reduced by a factor of 8 relative to a single byte comparison, resulting in a substantial reduction of processing time. Since the comparison procedure is commonly executed numerous times in any given program, a significant savings in processing time may be achieved by this simultaneous comparison of a number of bytes.
In other computer applications it is desirable to have the capability to search long strings of bytes for the presence of a selected pattern of bytes. One such application that is relatively well known is used in the word processing context. This application allows one to search a portion of text for a particular word or phrase. For example, one may want to find each occurrence of the word "country" within a particular document so that the word "county" can be substituted therefor. Alternatively, one may want to find each occurrence of "couty" so that it can be replaced with the proper spelling "county." These are known as search and replace operations. Search and replace operations are also used in connection with automatic spelling check programs that are offered by many commercially available word processing programs.
In word processing programs and other programs in which words and letters are used, each letter of the alphabet as well as each symbol such as an asterisk or hyphen is represented as a unique string of eight 1 or 0 logic bits, also known as a byte. In order to determine whether two byte strings represent the same word, the corresponding bits in each byte are compared to determine whether they are the same. If all of the bits in the two byte strings are identical, the two byte strings represent the same word. A portion of text can be thought of and is represented as a long, continuous string of bytes, one byte for each letter appearing in the portion of text. To determin whether a particular word, or "keyword," appears in portion of text, current string processors typically
• starting at the beginning of the byte string that represent the portion of text, or the "character string," compare th first byte of the keyword with the first byte of th character string. If these two bytes match (the firs letter of the keyword matches the first letter in th portion of text) , then the processor compares the secon byte in the keyword to the second byte in the characte string. If these two bytes match, then the processo compares the next pair of bytes in the two strings, and s on. If all of the respective bytes in the two string match, the processor has found an occurrence of the keywor in the portion of text.
However, the keyword does not usually appear as th first word in the portion of text being searched. Consequently, one of the bytes of the keyword will not matc one of the bytes in the character string (the keyword is not the first word in the portion of text) . In this case, the character string is shifted one byte relative to the keyword so that the first byte of the keyword is compared "to the second byte of the character string. If these two bytes match, then the second byte of the keyword is compared to the third byte of the character string, and so on. If one of the pairs of bytes do not match, then the character string is again shifted one byte relative to the keyword so that the first byte of the keyword is now compared to the third byte of the character string. This general process repeats, usually until all occurrences of the keyword in the portion of text have been found.
As an example, let the keyword be the word "the" and the character string be "that time is the essence."
Initially, as described above and set forth below, the byte representing the "t" in "the" will be compared to the byte representing the "t" in "this": -4-
Data String: that time is the essence Keyword: the
This comparison will yield a match, and so the byte representing the "h" in "the" will be compared with the byte representing the "h" in "that." These bytes will also match, and so the byte representing the "e" in "the" will be compared to the byte representing the "a" in "that." These bytes will not match, and so the character string will be shifted one byte with respect to the keyword so that the first byte of "the" will be compared with the second byte in the character string. The relative position of the keyword and the character string are set forth below, and the "3" above the letter "t" in the word "that" is the number of comparisons that were required to determine whether or not there was a match.
Comparisons: 3
Data String: that time is the essence
Keyword: the
Only one comparison will be needed at this point to determine that the keyword is not present at this portion of the character string, and the character string will be shifted again:
Comparisons: 31
Data String: that time is the essence Keyword: the
This process will continue to repeat until the match is found, at which point the character string will have been shifted to the position set forth below: -5-
Comparisons: 31121211111114 Data String: that time is the essence Keyword: the
Note that this particular example required 21 comparisons t find the keyword "the" in the character string "that time i the essence." In particular, four comparisons were require even where the keyword matched the same word in th character string (the blank space required one comparison) . In other computer applications it is desirable to tes bit patterns for the presence of a particular bit string. Examples of such applications are encryption and decryptio algorithms used to scramble and unscramble binar information to protect it from unauthorized reception. Suc algorithms are often used in the intelligence field to protect highly classified information from being intercepted and used by foreign countries having adverse interests. These algorithms are" also used by corporations to safeguard their valuable commercial information and trade secrets.
In general, these encryption and decryption algorithms may perform similar search and replace operations as described above in connection with word processing programs. In addition, it would be desirable to be able to perform operations on strings of binary information that are not an integral number of bytes long, for example, a string of five bits. Processors such as those described above in connection with word processing programs do not even have this capability since they shift strings of bits eight bits, or one byte, at a time. Even if such processors had the capability to shift strings of data one bit at a time, their use as described above on strings of bits would be even slower due to the large number of comparisons that would be necessary. As an example, assume that the bit string "11001110011011" is to be searched for the presence of the keyword "1101." Initially, as described above, the first bit of the keyword would be compared to the first bit in the bit string as set forth below:
Bit String: • 11001110011011 Keyword: 1101
The processor would need to make four comparisons before it could determine that the four bits in the keyword do not match the first four bits in the bit string. Again, as described above, the processor would then shift the bit string relative to the keyword string as set forth below and compare the respective bits again:
Comparisons: 4
Bit String: 11001110011011
Keyword: 1101
Again, the "4" above the first "1" in the bit string means that four comparisons were required in order to determine that the keyword did not match. After the keyword was shifted as shown above, two comparisons would be required to test the next portion of the bit string. As shown below, 22 comparisons would be needed to find the portion of the bit string that matched the keyword.
Comparisons: 4211242114 Bit String: 11001110011011
Key Word: 1101
A greater number of comparisons are required overall in bit searching than are in byte or character searching since it is more likely that a pair of bits each having one of two possible values will match than a pair of letters each having one of 26 possible values. Thus, a processor performing operations on bit strings in this manner would have an unduly large amount of computing overhead. Sum arv of the Invention
The present invention comprises a portion of a computer system for comparing a number of bytes simultaneously. The parallel processor of the present invention includes a first register for receiving bytes of data, a second register for storing a number of copies of a byte representing a selectable control or reference character and a comparison circuit for simultaneously comparing the data in the two registers to determine whether any of the bytes in the first register are equal to the bytes representing the control character in the second register, and generating control bits which are in a first state if the corresponding byte in the first register is equal to the control character in the second register, and in a second state when the corresponding byte in the first register is not equal to the control character in said second register.
The parallel byte processor has the ability to branch to a predetermined memory location if any of the byte pairs being simultaneously compared are equal. If any byte of data in the first register is equal to the bytes comprising the control characters in the second register, the microcode instruction branches or proceeds to a predetermined memory location.
If no control character is located in the data in the first register, the instruction branches or proceeds to a second predetermined memory location. Thus, a number of bytes may be moved and checked for control characters with a single instruction, thereby substantially reducing the processing time. In an exemplary embodiment of the present invention, eight bytes of data are simultaneously compared.
Another aspect of the invention is directed towards a novel parallel bit and byte string processor for a minicomputer. In its byte mode, the processor stores a portion of a string of bytes that is to be tested for the presence of a desired keyword in a first register location and stores the keyword in a second register location. Instead of testing the portion of the byte string one byt at a time, the processor simultaneously tests each byte i the keyword with a respective byte in the byte string Thus only -a single comparison is required to determin whether the keyword is present in any portion of the byt string. If the keyword is not present in the portion of th byte string tested, then the processor shifts the byt string with respect to the keyword and then makes a singl comparison of the keyword with the new portion of the byt string. This single-compare-and-test process continue until either the keyword is found or the end of the byt string is reached. As a result of simultaneously testin each byte in the keyword with a respective byte in the byt string, the processing time is kept to an absolute minimum. In its bit mode of operation, the processor stores portion of a bit string that is to be tested for th presence of a desired string of bytes in a first registe location and the desired keyword in a second registe location. The processor simultaneously tests each bit i the keyword with a respective bit in the bit string. As result of this simultaneous testing, only one comparison i needed to determine whether the keyword is present in th portion of the bit string being tested. If the keyword i not present, .the bit string is shifted one bit relative t the keyword and a single comparison of the keyword with th new portion of the bit string is made. This proces continues until the keyword is found or until the end of th bit string is reached. Because each bit in the keyword i simultaneously tested with a respective bit in the bi string, only a single comparison is required to determin whether the keyword matches a portion of the bit string, an as a result, processing time is minimized.
Another feature of the invention is the capability o the processor to automatically function either as a paralle bit processor or as a parallel byte processor. When th processor is given a first control signal, the processo functions as a parallel byte processor, and when th processor is given a second control signal, the processo functions as a parallel bit processor. As a result, tw separate processors are not required, thus resulting in cos saving that a separate processor would otherwise entail.
These and other objects, features, and advantages o this invention will be apparent in view of the followin detailed description of several preferred embodiments, which are explained with reference to the figures, a brief description of which is provided below.
Brief Description of the Drawings Figs. 1 and 2 are block diagrams of two registers of the parallel byte comparison processor;
Fig. 3 is a circuit diagram of the comparison circuit of the parallel byte comparison processor;
Fig. 4 is a representative instruction sequence of the parallel byte comparison processor;
Fig. 5 is a schematic circuit diagram of a parallel string processor in accordance with the invention; Fig. 6 is a detailed circuit diagram of a portion of one embodiment of a shift register in accordance with the invention;
Fig. 7 is a detailed circuit diagram of a portion of the parallel string processor of Fig. 5; Fig. 8 is a detailed flowchart of the operation of the parallel processor of Fig. 5 in its byte mode of operation; and
Fig. 9 is a detailed flowchart of the operation of the parallel processor of Fig. 5 in its bit mode of operation.
Detailed Description of Several Preferred Embodiments
Referring to Fig. 1, a selected control character, such as "EOS" (end of sector) , is loaded into a Register A. Referring to Fig. 2, an 8-byte (64 bit) data string is loaded into a Register B and compared to the "EOS" reference characters in Register A in order to determine whether there are any "EOS" characters in any byte of the data string in the Register A. The results of the comparison, whether any particular byte of Register A matches the corresponding byte in Register B, is stored in a Processor Status Register 100 (also referred to as the "hit register") .
It will be appreciated that with the present invention, any number of bytes may be simultaneously compared, the number depending on the particular computer system utilized. In the preferred embodiment discussed herein, the computer is a 64-bit machine; therefore, 8 bytes are simultaneously compared to determine whether they contain a control character.
Each bit in the data string in the Register B is compared to the bits comprising the control characters in Register A. This is shown in more detail in Fig. 3, wherein each bit of each byte 0-7 in the Register B is compared with the corresponding bit of each corresponding ^ontrol character byte 6-7 in the Register A, utilizing "exclusive- NOR" circuits 102-109, one "exclusive-NOR" circuit associated with each bit pair. It should be understood, however, that Fig. 3 is a functional diagram to illustrate the invention. In the actual embodiment, an arithmetic logic unit (ALU) is utilized to perform the exclusive-OR function as shown in Fig. 5 and discussed in further detail hereinafter. In Fig. 3, only the exclusive-NOR circuits 102a and 102h corresponding to byte 0, bit 0 (the least significant bit) and byte 0, bit 7 respectively, and 109a and 109h corresponding to byte 7, bits 0 and 7, respectively are shown. It should be understood, however, that there are 64 such exclusive-NOR circuits. In addition, only the portions of Registers A and B containing bytes 0 and 7, corresponding to the least significant bytes and mos significant bytes, respectively, are shown in Fig. 3. Th designations within Registers A and JB denote the register, the byte number and the bit within the bytes. For example, "A67"- refers to bit 7 of byte 6 of the Register A..
The components of the exclusive-NOR circuit 109 ar also shown in Fig. 3 as comprising first and second AN gates 110 and 111, first and second inverters 112 and 113, and OR gate 114. The bit pairs, for example, A77 and B77, are input to the AND gate 110. The bits A77 and B77 are also inverted by inverters 112 and 113, respectively, and are input into the second AND gate 111 of the exclusive-NOR circuit. The output of the first AND gate 110 and the output of the second AND gate 111 are input to the OR gate 114. The output of each OR gate is provided as an input to one of eight 8-input NAND gates 115-122 (the NAND gates 116- 121 are not shown) . There is one 8-input NAND gate for each byte being compared. The output of any of the 8-input NAND gates 204-210 will be low or logical "0" only when all eight bits being compared are equal and thus will indicate that the particular byte pair is equal to each other (e.g., when all the bits A00-A07 of the Register A are equal to the corresponding bits B00-B07 of the Register B, the output of the 8-input NAND gate 115 will be low) .
The output of NAND gates 115-122 are stored in the
Processor Status Register 100 or "hit" register (Fig. 2) .
An instruction (BAH) causes the system to branch or proceed to a predetermined memory location when any of the bits in the Processor Status Register 100 indicate that any of the eight bytes being compared are equal. Alternatively, if there are no bits in the Processor Status Register 100, indicating that no byte pairs match and no control character was found, the system proceeds to execute the instruction found in the next sequential memory location in the control memory of the processor. If a hit occurs, the location of the particular bytes which do match can be determined by looking at which bits of the Processor Status Register 100 indicate a match. For example, if byte 3 of the Register A is equal to byte 3 of the Register B, bit 3 in the Processor Status Register will be zero, indicating that the byte 3 pair matches. Fig. 4 shows a representative instruction sequence. The left column corresponds to the line number in the control program of the processor. The instruction at line 80 causes the control character being compared to be loaded into the Register A. The instruction at line 82 causes the loading of Register B with the first eight bytes of data (data word 1, indicated as "DATAl" in Fig. 4) . The instruction at line 84 performs the multibyte "exclusive- NOR" operation of the present invention on the data in the Register B and the Register A. The instruction at line 86 causes the system to branch to a memory location 400 if any of the bits in the Processor Status Register 100 (Fig. 2) are zero indicating that a match was found between the Registers A and B. At memory location 400, which is executed if a hit is found, is the beginning of a routine which examines the bits of the Processor Status Register 100 to determine the location of the characters within data word 1 which match the control character "EOS" for example.
Then at line 88, Register A is loaded with a second control character and at line 90 the exclusive-NOR operation is performed to determine whether the second control character is present in any of the eight bytes of data in DATAl. If the second control character is found in DATAl, then at line 92 the program branches to memory location 400.
When there are no control characters found in the data, the instruction at line 94 is executed and the data in Register B is stored in a buffer. Thereafter, the system proceeds to execute the instruction at line 80 and the process described above repeats. Thus, eight bytes are checked for two different control characters with only two compare cycles in contrast to the 16 compare cycles require in prior art machines.
A "branch on no-hits" may be utilized as an alternativ to the "branch on any hit" instruction, which branches to memory location if none of the bytes in the data wor contain the control character.
When the data is checked for more than one set o characters, the Register A may be reloaded with th characters for each compare sequence. However, to increas the execution speed, reloading the register may be avoide by various methods known to those skilled in the art. An n to-1 multiplexer may be substituted for the Register A, where n is the number of character sets to be searched fo in the data. For example, if the data is to be searched fo two sets of characters, "EOS" and "CR," a 2-to-l multiplexe may be utilized, with the registers containing "EOS" and
"CR" serving as input to the multiplexer.
In the preferred embodiment, the architecture of the CPU permits the selection of the desired register for input to the exclusive-NOR circuit. Instructions cause the CPU to route the contents of the selected register to the exclusive-NOR circuit. Alternatively, tri-state devices may be utilized.
In the actual embodiment, an arithmetic logic unit (ALU) is utilized to perform the exclusive-OR function.
Referring to Fig. 5, the End of Sector (EOS) or other control characters are loaded into the A register file. The data which is to be searched for the End of Sector flag is loaded in register B via the B bus 172. The EOS flag is input to the ALU through the A latch 142 and the data to be compared to determine whether it contains "EOS" characters is input to the ALU through B latch 144. The ALU compares each bit of input from the A register to the corresponding bit of input from the B register. For each matching bit pair, the ALU will generate a zero on the respective output line. The output of the ALU is input to the zero detect circuit (which comprises 8-input NOR gates) via the F bus 148. The zero detect circuit determines whether all of the bits within a byte are zero. If all of the bits within a particular byte are zero, a one is generated by the zero detect circuit indicating that a particular byte from the register matches the byte from the B register. The foregoing embodiment utilizes inverse logic from th illustrative circuit shown in Fig. 3. In the circuit show in Fig. 3, a zero is generated when the byte pairs match. A parallel string processor in accordance with anothe aspect of the invention is shown in Fig. 5. The processo includes a dual register file 120 comprising an A registe file and a B register file. Although only nine registers are shown in each register file, each register file includes 1024 registers, and may include more if desired. In this embodiment, the processor of Fig. 5 is for a 64 bit minicomputer, and so each of the registers in the A and B register files is 64 bits, or eight bytes, wide. The register file is shown to include an address register 122, a length register 124, a bit mask register 126, a byte mas register 128, and a test register 130. The address registe 122 is used to store the address of a data string, either a bit string or a character string, that is to be searched by the processor for a particular keyword. The length register 124 is used to store the length of the portion of the data string that remains to be tested. The bit mask register 126 is used to store a desired pattern of bits that is used to mask the keyword. For example, the bit mask register 126 might be used to ignore capital letters so that the processor would consider the letter "a" to be equivalent to the letter "A." The byte mask register 128 contains a desired pattern of bytes used to mask the keyword. For example, the byte mask register 128 might be used to ignore the second letter of a word so that the processor woul equate the word "string" with "spring." The test register 130 contains the desired keyword after it has been maske with the desired byte mask.
The B register file contains a bit count register 13 and a byte count register 134 which, as is explained in mor detail hereinafter, determine when the next portion of th data string being tested for the presence of the keywor needs to be fetched from memory. A keyword register 136 contains the binary data string corresponding to the desire keyword, and the end-of-string (END) flag register 138 contains a flag that indicates whether or not a data strin has been completely searched for the presence of a desired keyword.
The A and B register files are connected to an arithmetic logic unit (ALU) 140 through an A latch 142 and a B latch 144, respectively. The ALU 140 is a conventional arithmetic logic unit, which in this embodiment may include SN54LS381A ('381), SN54LS382 (*382), or similar integrated circuit chips commercially available from Texas Instruments of Dallas, Texas. The arithmetic logic unit 140 performs various operations on the data supplied to its dual data inputs, depending upon the combination of binary signals supplied to its control inputs by an ALU function select circuit 146. For example, when the ALU 140 receives a particular combination of control inputs, the ALU 140 adds its two data inputs. In response to a different combination of its control inputs, the ALU 140 performs an exclusive-or operation on its data inputs.
The A and B register files are designed so that at any time, the binary information stored in each register is equal to the binary information stored in its adjacent register so that the A register file is a copy of the B register file, and vice-versa. This register organization speeds up the operation of the processor. In order to perform an operation on two operands, one operand must be transmitted to the A latch 142 and the other to the B latch 144. If there were only an A register file, the processor would require an extra cycle to perform any given ALU operation.
The output of the ALU 140 is connected via an 64-bit- wide F-bus 148 to a zero-detect circuit 150 which detects 5 when all the outputs of the ALU 140 are zero. The ALU 140, ALU function select circuit 146, and zero detect circuit 150 are shown in detail in Fig. 7. The ALU function selec circuit 146 is shown functionally (in dotted lines) fo purposes of explaining the invention. In reality, th
10 function select circuit 146 is implemented with programmabl array logic integrated circuits commercially available fro Monolithic Memories, Inc. of Santa Clara, California, tha are programmed with many equations that do not facilitat explanation. These equations are, however, included in thi - 15 specification as Appendix 1, and they completely describ the actual embodiment of the ALU function select circui 146.
The ALU comprises 16 separate, 4-bit "381 integrate circuit chips 152. For purposes of clarity, the data input
20 of the ALU chips 152 that are connected to the A and latches 142, 144 have been omitted from Fig. 7, and only th outputs of the chips 152 are shown. Each pair of the chip 152 is connected to a respective multiplexer 154 whic supplies the control inputs for the chips 152. Each of th
25 multiplexers 154 either supplies a desired 3-bit FUNCTIO signal or a 3-bit CLEAR signal to the control inputs of th pair of chips 152 to which it is connected, depending upo the value of its address signal sent from a register 15 which stores the 8 bits of the byte mask. As explaine
30 above, the byte mask causes the processor to ignore certai bytes in the data string being searched so that, fo example, the processor would equate the keyword "string" with the word "spring" in the data string, in which case th second bit of the byte mask would be set to logic "1" s
35 that the "p" in "spring" is ignored. Similarly, if it wer desired that the fourth letter of a word were to be ignored, the fourth bit of the byte mask would be set to logic "1. The multiplexers 154 either supply a specified FUNCTIO signal or a CLEAR .signal to the chips 152, depending upo -whether- the value of the particular bit of the byte mask i the register 156 is logic "1" or "0." If the bit in the byt mask is logic "0," the desired 3-bit FUNCTION signal i transmitted, and if the bit in the byte mask is logic "1," the 3-bit CLEAR signal is sent, which causes the outputs of the ALU chips 152 to which it is connected to be forced to logic "0."
The zero detect circuit 150 comprises 16 NOR gates 158 connected to receive the outputs of the ALU chips 152. The outputs of the NOR gates 158 are connected to eight AND gates 160, which in turn are connected to a pair of NAND gates 162 which are connected to a NOR gate 164. If all outputs of the ALU chips 152 are logic "0," then it can be seen that the outputs of the NOR gates 158 will be forced to logic "1," which forces the outputs of the AND gates 160 to logic "1," the NAND gates 162 to logic "0," and the NOR gate 164 to logic "1." Thus, the output of the NOR gate 164 will be logic "1" only when all the outputs of the ALU chips 152 are logic "0." As set forth below, when the keyword matches a portion of the data string to which it is being compared using the exclusive-or function, all the ALU chip outputs will be logic "0," so that in essence a logic "1" output of the NOR gate signals a match. This logic "1" output is supplied to a flip-flop 166 which can then be checked to determine that there was a match.
The particular logic gates used in the zero detect circuit 150 are not important to the invention since other circuits could be easily designed to detect that all outputs of the ALU chips were logic "0," such as, for example, a single 64-bit NOR gate.
Referring now to Fig. 5, the F-bus 148 is connected to an A-bus 168 via a buffer 170 and a B-bus 172 via another buffer 174. The zero-detect circuit 150 is coupled to the B-bus 172 through a buffer 176. A memory 178 is connected to the bus 180 that connects the output of the A latch 142 to the ALU 140 through a buffer 182 connected to an M-bus 184. Because this embodiment is for a 64 bit minicomputer, the A-bus 168, the B-bus 172, and the M-bus 184 are also 64 bits wide. A pair of serially connected 64-bit shift registers comprising a J shift register 186 and a K shift register 188 are connected to the B-bus 172. A mask register 190 is connected to the J shift register 186 via a mask bus 192. As is explained in more detail below, these shift registers are used to store portions of the data string to be tested for the presence of a desired keyword.
A trio of control signals is supplied to each of the two shift registers 186, 188. A LOAD signal causes the register to which it is attached to be parallel-loaded with a portion of a data string. The data is loaded into the registers 186, 188 from the memory 178 through a data route consisting of the ALU 140, the F-bus 148, the buffer 174, and the B-bus 172. A second signal Si causes its respective shift register to be shifted left one bit, and a third signal S8 causes its respective shift register to be shifted left eight bits, or one byte.
Fig. 6 is a portion of a substantially functional equivalent of the J shift register 186 used for purposes of explaining the invention. The actual embodiment of the J and K shift registers 186, 188 comprises specially programmed conventional programmable array logic integrated circuits commercially available from Monolithic Memories, Inc. of Santa Clara, California, and the equations used to program these integrated circuits are included in this specification as Appendix 2 and completely describe the actual embodiment of the J and K shift registers 186, 188.
Referring now to Fig. 6, a portion of the J shift register 186 consisting of logic gates and flip-flops 196 is shown. Although only six flip-flops 196 are shown, the J shift register 186 is 64 bits wide and thus includes 64 serially connected flip-flops 196. In Fig. 6 the flip-flops 196 are numerically ordered, with the rightmost flip-flop being the Nth flip-flop, the flip-flop to the left of the Nth flip-flop being the (N+l)st flip-flop, etc. Each of the flip-flops 196 has a data input D connected to the output of a logic circuit 198 and a clock input C connected to receive a CLOCK signal that controls the speed of operation of the shift registers 186, 188.
The logic circuits 198 control the loading and shifting operations of the flip-flops 196. Each of the logic circuits 198 comprises a three-input OR gate 200 and three two-input AND gates 202. One of the AND gates 202a has a first input connected to one of the 64 lines of the B-bus 172 and its second input connected to the LOAD signal. This AND gate 202a in each of the logic circuits 198 causes the flip-flop to which it is connected to be loaded with the binary value of the B-bus 172 when the LOAD signal is activated, which occurs when the LOAD signal is logic "1." In this state, the output of the AND gate 202a, which equals the binary value of the B-bus input, is supplied to its respective flip-flop 196 through its OR gate 200. The outputs of the other two AND gates 202b, 202c do not interfere with this loading process since the SI and S8 signals are forced to logic "0" when the LOAD signal is activated.
After a portion of a data string is loaded into the flip-flops 196 of the shift registers 186, 188, the portion is periodically shifted either one bit or eight bits at a time, depending on whether the processor is performing a bit-by-bit comparison or a byte-by-byte comparison. If bit comparisons are being performed, the SI signal is activated to logic "1" while the LOAD and S8 signals remain at logic
"0." Each AND gate 202c to which the Si signal is supplied has its other input connected to the output of the first upstream flip-flop, "upstream" meaning the direction from which data is being shifted. In Fig. 6, data is being shifted from right to left, and thus with respect to any particular flip-flop or other circuit element, the first "upstream" flip-flop is the first flip-flop to the right of the circuit element and the first "downstream" flip-flop is the first flip-flop to the left of the circuit element. Thus, when the Si signal is activated, the output of the AND gate 202c to which it is connected is equal to the input of the upstream flip-flop. Since the output of the AND gate 202σ is passed through its respective OR gate 200 to the input of the downstream flip-flop, the activation of the SI signal causes the shift registers 186, 188 to perform a one- bit logical left shift on the portion of the data string stored therein.
The activation of the S8 signal causes an eight-bit, or one-byte, logical left shift to be performed by the shift registers 186, 188. Each AND gate 202b to which the S8 signal is connected has its other input connected to the output of the eighth upstream flip-flop so that when the S8 signal is logic "1," the output of each of the flip-flops 196 is passed to the eighth respective downstream flip-flop so that the portion of the data string is shifted eight bits to the left.
Another portion of the J shift register 186 performs a bit mask operation so that any desired bits of the string being searched may be ignored. For example, as described above, it might be desirable to ignore capital letters so that the processor would consider the letter "a" to be equivalent to the letter "A." To this end, the output of each of the flip-flops 196 is supplied to one input of a two-input AND gate 204 having its other input connected to receive the output of a NAND gate 206. One input of the NAND gate 206 is connected to receive a respective bit of the bit mask from the mask register 190 connected to the J shift register via the mask bus 192. The NAND gate 206 is also connected to receive a BIT MASK ENABLE signal that selectively activates or deactivates the bit mask operation. In particular, when the BIT MASK ENABLE signal is logic "0, the outputs of all of the NAND gates 206 are forced to logi "1" so that the outputs of the AND gates 204 equal th output of the flip-flops to which.they are connected and ar not affected by the outputs of the NAND gates 206. However, when the BIT MASK ENABLE signal is logic . "1" and th corresponding mask input bit is also logic "1," the outpu of the NAND gate 106 is forced to logic "0," and as result, the output of the AND gate 204 is also forced t logic "0." This operation thus causes logic "0"s to be placed in each bit of the data string which is to be ignored by the processor. As is described in more detail below, each of these logic "0"s causes a forced match when the masked portion of the data string is compared to the keyword string by the processor. Finally, the output of each of the AND gates 204 is connected to the B-bus 172 so that the masked or unmasked portion of the data string stored in the shift registers may be supplied to the ALU 140 for comparison to the keyword string. The particular logic used for the masking functions is not important, and alternative logic could be used. For example, selected bits in a bit string could be masked off if the corresponding bits in the bit mask were logic "0" instead of logic "1" if the NAND gates 206 were replaced with OR gates, in which case the bit mask enable signal would be activated when logic "0" instead of logic "1."
The functional circuit diagram of the K shift register 188 is substantially identical to the diagram of the J shift register shown in Fig. 6, except that the AND gates 204 and the NAND gates 206 used in connection with the bit mask and the BIT MASK ENABLE signal are not required since only the output of the J shift 186 register is sent to the ALU 140 for comparison to the keyword, as is explained in more detail below. In its byte mode of operation, the processor compares a selected string of bytes to determine the presence of a selected keyword. Both the byte string and the keyword ar selectable by the user of the processor. The basic process by which the processor tests for the presence of a selecte keyword string within a selected data string includes initially loading the J and K shift registers 186, 188 with the first portion of the data string to be tested. Then, the entire contents of the J shift register 186 are simultaneously compared with the keyword stored in the test register 130. If there is a match, the presence of a matc is indicated by the processor. Then, the contents of the and K registers 186, 188 are shifted left one byte and th contents of the J register 186 are again compared with th contents of the test register 130. Any match is indicated, and the process is repeated. Periodically, the K registe 188 will become empty since its contents are graduall shifted into the J register 186, and so the K register wil be periodically reloaded with the next portion of the dat string to be tested. In this manner, the entire keyword is simultaneously compared with a corresponding portion of th data string. This process reduces the number of comparison required as shown by the example shown below, in which th keyword, is "the," the data string is "that time is th essence," and each number above the data string represents the number of comparisons that were required to determin whether or not the keyword matched that particular portio of the data string:
Comparisons: 11111111111111
Data String: that time is the eTssence
Keyword: the
Note that this particular example required 14 comparisons to find the keyword "the" in the character string "that time is the essence" in contrast to the 21 comparisons that were required by a conventional data string processor as show above. This reduction results from the entire keywor -23- simultaneously being compared with a portion of the dat string, instead of being compared one byte at a time.
The detailed operation of the byte mode of th processor is explained with reference Fig. 8 and Table 1. Fig. 8 is a flowchart of the microcode that controls th operation of the processor shown in Fig. 5, and Table 1 includes a software program that is substantiall functionally equivalent to the microcode actually used. The operation is explained with reference to Table 1 and not the actual microcode used because the actual microcode would be incomprehensible since it is merely a collection of "l"s and "0"s.
TABLE 1
1 MOV $ 0 , ENDFLAG ;reset end-of-string flag to 0
2 MOV BITMASK, A ;mask keyword with bit mask
3 MOV KEYWORD, B
4 AND A, B
5 MOV ALU, TEST ;put masked keyword in test register
6 MOV @ ADDRESS, J ;load J with first 8 bytes of data string
7 LOADK: MOV ADDRESS, A
8 MOV #8, B ;increment address by to get next 8 bytes
9 ADD A,B of data string and then load in K
10 MOV ALU, ADDRESS
11 MOV @ ADDRESS, K
12 MOV #8, BYTECOUNT ;K now contains 8 bytes
13 COMPARE: MOV TEST, A ;compare masked keyword with J
14 MOV J,B
15 XOR A,B
16 MOV ALU,ZD ;zero output?
17 BNZ NOMATCH
18 MATCH: JMP USERPROGRAM -24-
19 RET 20 NOMATCH: MOV #1, B ;decrement length of data string tested
21 MOV LENGTH, A by 1 byte
22 SUB A, B
23 MOV ALU, LENGTH 24 MOV ALU, ZD 25 BNZ NEXT ;data string completely tested?
26 EOS: MOV §1 , ENDFLAG ;set end-of-data- string flag to 1
27 END
28 NEXT: LLS BYTE ;left-shift J, K by 1 byte
29 MOV #1, B ;decrement # of bytes in K by 1
30 MOV BYTECOUNT, A 31 SUB A, B 32 MOV ALU, ZD ;if no bytes left in K, get next 8 bytes
33 BZ LOADK of data string to load in K
34 MOV ALU, BYTECOUNT 35 BR COMPARE ;test for match again
© DAVIN COMPUTER CORP. 1987
At the start of the byte operation of the processor indicated by the start step 210 of Fig. 8, the binary representation of the keyword is stored in the keyword register 136 in the B register file and the binary representation of the data string is stored in the memory 178. Also, the desired bit mask is stored in the bit mask register 126 and in the mask register 190, the desired byte mask is stored in the byte mask register 128 and in the register 156, the address of the byte string in memory 178 to be searched is stored in the address register 122, and the length in bytes of the byte string being searched is stored in the length register 124.
The value of the end-of-string (END) flag indicates whether or not the data string has been completely searched for the presence of the keyword. At step 212 of Fig. 8, th value of the END flag is reset to indicate that the end o the string has not yet been reached. Then, at step 214, th keyword is masked with the bit mask to ensure that th piocessor ignores any bits in any desired byte as selecte by the user. This step is carried out by instructions 2-5 of Table 1. Instructions 2 and 3 supply the bit mask to one data input of the ALU 140 and the keyword to the other data input. Instruction 4 causes the appropriate control signal to be supplied to the ALU so that its two data inputs are logically "anded" together, and the ALU output, which is the value of the masked keyword, is stored in the test register
130 in the A register file via a data path consisting of the
F-bus 148, the F-A bus buffer 170, and the A-bus 168. Thus, any bits of the keyword which are to be ignored by the processor are masked to logic "0," and these masked zero bits will force a match with the corresponding bit position in the data string during subsequent comparisons as is explained in more detail below. Next, at step 216, the J shift register 186 is loaded with the first word of the data string to be tested, "word" meaning a block of binary data eight bytes long to correspond to the eight byte width of the J shift register
186. The step 216 is accomplished by instruction 6 in Table 1 which moves the contents of the memory at the address where the data string is stored to the J shift register 186 through a path including the memory buffer 182, the M-bus
184, the ALU 140, the F-bus 148, the F-to-B buffer 174, and the B-bus 172. Next, at step 218, the next word, or eight bytes, of the data string are loaded into the K shift register 188 from the memory 178 in a similar manner by instructions 7-11. Specifically, instructions 7-10 cause the address to be incremented by eight so that the incremented address will point to the next eight bytes of the data string in memory 178. Then instruction 11 causes the next eight bytes to be fetched from memory 178 and put into the K shift register 188 via the same data path as described in connection with the loading of the J shift register 186.
When the K shift register 188 has just been loaded, at step 220 and by instruction 12, the numeric value eight is stored in the byte count register 134 since there are now eight bytes of string data in the K register 188. Because the contents of the K register 188 are periodically shifted left into the J shift register 186, it is important to know how many bytes of the data string are left in the K register 188 so that the processor will know when to reload the K register with the next portion of the data string.
Next, at step 222, the masked keyword stored in the test register 130 is compared to the portion of the data string stored in the J register 186. This step is implemented by the instructions 13-16 of Table 1. Specifically, instruction 13 causes the masked keyword stored in the test register 130 to be sent to the A latch 142. Then, instruction 14 causes the contents of the J shift register 186 to be moved to the B latch 144 via the B- bus 172. If the BIT MASK ENABLE signal is logic "1," then the contents of the J register 186 are logically "anded" with the bit mask by the AND gates 204 prior to being sent to the B latch 144. At instruction 15 the binary value of the masked keyword is compared to the binary value of the masked portion of the data string by providing the ALU FUNCTION signal with the binary values that cause the ALU 140 to perform a bit-by-bit logical "exclusive-or" of its two data inputs. The logical exclusive-or operation, which is conventional and well known, is a sum modulo 2 operation.
Thus, a bit-by-bit logical exclusive-or provides a logic "0" output if its two bit inputs are both logic "1" or logic "0," and hence match, and a logic "1" output if its two bit inputs are different. As a result, for each byte of the data string that matches the corresponding byte in the keyword, a logic "0" will be produced in the corresponding byte position.
After the keyword is compared with the portion of the data word in the J register 186, upon a match at step 224 the processor proceeds to the user's program so that the user program may perform its programmed function, for example, replace the keyword that was located with a different word, whereupon the user program returns control to the processor so that any other occurrences of the keyword can be found. The existence of a match is determined by the zero detect circuit at instruction 16.
Instruction 16 causes the contents of the ALU 140 to be sent to the zero detect circuit 150. As mentioned above, for each byte position of the ALU 140 in which there was a match, the ALU output will be zero. Consequently, at instruction 17, the zero detect circuit 150 tests each byte of the ALU to determine whether all bytes are zero, in which case all unmasked bytes of the keyword match all unmasked bytes of the data string portion. When the masked bytes are compared by the ALU 140 during its exclusive-or operation, the ALU output corresponding to each masked byte is forced to logic "0," which is the same logical output that the ALU provides in case of a match. Thus, each logic "1" bit in the byte mask forces a match in its corresponding byte position in the keyword. Upon a match, instruction 18 will cause a return to the user's program, and the user program will return control to the processor at instruction 19. If there is no match, instruction 17 will cause instructions 18 and 19 to be skipped. At step 226, the length of the data string will be decremented by one byte since one byte has just been tested and thus there is one less byte in the data string that needs to be tested. This step is implemented by instructions 20-23. Instruction 20 causes the number one to be moved to the B latch 144, and instruction 21 causes the current data string length to be sent to the A latch 142. Instruction 22 causes the ALU 140 to subtract one from the current length, and the new length is stored in the length register 124 by instruction 23.
Next, at step 228, the new data string length stored in the length register 124 is tested to determine whether all of the bytes in the data string have already been compared to the keyword, which will be the case if the numeric value of the length is zero. This is accomplished at instruction 24 which sends the output of the ALU 140 to the zero detect circuit 150. If the value of length is zero, then step 230 is executed, causing the END flag to be set to logic "1" to indicate that the end of the string has been reached, and control is returned to the user's program. This is accomplished by instructions 26 and 27. If the value of length is nonzero and the data string has not been completely tested, the program branches to step 232 at which the contents of the J and K registers 186, 188 are shifted left by one byte. This is accomplished by instruction 28, which causes a logic "1" S8 signal to be sent to the shift registers 186, 188 so that their contents are shifted left one byte as explained above. The contents of the byte count register 134 are then decremented by one at step 234 to indicate that there is one less byte in the K shift register 188 since it has just shifted one of its bytes into the J shift register. This step is accomplished by instructions 29-31.
Next, at step 236, the numeric value of byte count is tested to determine if it is zero, in which case the next eight bytes of the data string need to be moved from the memory 178 into to K shift register 188, and so the program branches back to step 218 so that the K shift register 188 is reloaded. If the byte count is nonzero, the shift register 188 does not need to be reloaded, and the program branches to step 222 so that the current portion of the data string in the J register 186 may be compared to the masked keyword. Step 236 is executed by instructions 32-35. Instruction 32 causes the contents of the ALU 140 to be sen to the zero detect circuit 150. If the zero detect circui
150 detects a zero, instruction 33 causes a branch t instruction 7. Instruction 34 saves the decremented valu of the byte count if it is nonzero, and instruction 35 causes a branch back to instruction 13.
The bit mode of operation of the processor is generally similar to its byte mode of operation. In its bit mode of operation, the processor compares a selected string of bits to determine the presence of a selected keyword. Both the bit string and the keyword are selectable by the user of the processor. The basic process by which the processor tests for the presence of a selected keyword within a selected bit string includes initially loading the J and K shift registers 186, 188 with the first portion of the bit string to be tested. Then, the entire contents of the J shift register 186 are simultaneously compared with the keyword stored in the test register 130. If there is a match, the presence of a match is indicated by the processor. Then, the contents of the J and K registers 186, 188 are shifted left one bit and the contents of the J register 186 are again compared with the contents of the test register. Any match is indicated, and the process is repeated. Periodically, the K register 188 will become empty since its contents are gradually shifted into the J register 186, and so the K register 188 will be periodically reloaded with the next portion of the bit string to be tested. In this manner, the entire keyword is simultaneously compared with a corresponding portion of the bit string. This process reduces the number of comparisons required as shown by the example shown below, in which the keyword is "1101," the bit string is "11001110011011," and each number above the bit string represents the number of comparisons that were required to determine whether or not the keyword matched that particular portion of the bit string: -30-
Comparisons: 1111111111 Bit String: 11001110011011 Keyword: 1101
Note that this particular example required only 10 comparisons to find the keyword "1101" in the bit string "11001110011011" in contrast to the 22 comparisons that were required by a conventional bit string processor as shown above. This reduction results from the entire keyword simultaneously being compared with a portion of the bit string, instead of being compared one bit at a time.
The detailed operation of the bit mode of the processor is very similar to the byte mode, and can be understood with reference to Fig. 9 and Table 2 set forth below. Fig. 9, which is a flowchart of the microcode that controls the operation of the processor, is very similar to the flowchart of Fig. 8, except that in a number of instances different operations are executed since the processor is in its bit mode of operation and not its byte mode. Likewise, the software implementation set forth in Table 2 is very similar to that of Table 1, so that only the differences need be explained to provide a clear understanding of the detailed operation of the bit mode of operation.
TABLE 2
1 MOV #0, ENDFLAG ; reset end-of-string flag to 0 2 MOV BITMASK, A ;mask keyword with bit mask
3 MOV KEYWORD, B
4 AND A, B 5 MOV- ALU, TEST ;put masked keyword in test register
MOV @ ADDRESS, J ;lcad J with first 64 bits of data string -31-
7 LOADK: MOV ADDRESS, A 8 MOV #8, B ;increment address by to get next 64 bits of data
ADD A,B string and then load in K
10 MOV ALU, ADDRESS 11 MOV § ADDRESS, K 12 MOV #64, BITCOUNT ;K now contains 64 bits 13 COMPARE: MOV TEST, A ;compare masked keywor with J
14 MOV J,B 15 XOR A,B 16 MOV ALU,ZD ;zero output?
17 BNZ NOMATCH 18 MATCH: JMP USERPROGRAM 19 RET
20 NOMATCH: MOV #1, B /decrement length of data string tested by 1 bit
21 MOV LENGTH, A 22 SUB A, B 23 MOV ALU, LENGTH 24 MOV ALU, ZD 25 BNZ NEXT ;data string completely tested?
26 EOS: MOV #1, ENDFLAG ;set end-of-data-string 27 END flag to 1
28 NEXT: LLS BIT ;left-shift J, K by 1 bit
29 MOV #1, B /decrement # of bits in K by 1
30 MOV BITCOUNT, A 31 SUB A, B 32 MOV ALU, ZD ;if no bits left in K, get next 64 bits of data string to load in K
33 BZ LOADK
34 MOV ALU, BITCOUNT 35 BR COMPARE ;test for match again
© DAVIN COMPUTER CORP. 1987 In particular, at step 240 in Fig. 9 and instruction 12 in Table 2, the contents of the bit count register 132 are set to 64 since the K shift register 188 will be shifted one bit at a time and 64 bits are initially loaded into the K register 188. At step 242 and instruction 28, the contents of the J and^K shift registers 186, 188 are shifted left one bit instead of byte. At step 244 and instructions 29-31, the contents of the bit count register 132 instead of the byte count register 34 are decremented by one. Finally, at step 246 and instructions 32-35, the conditional branch occurs when the value of the bit count register 132 has reached zero, and not the byte count register 134.
The two modes of operation just described are invoked by a user by including appropriate software instructions in the user's program. Specifically, the byte mode of operation is invoked by the instruction "SCANS" and the bit mode of operation is invoked by the instruction "BITSCAN."
Two further embodiments of the invention are identical to the embodiment just described, except that they are directed towards 16 and 32 bit parallel processors, respectively. The differences between these embodiments include the data width of the buses, buffers, ALU, A and B latches, and registers. Otherwise, the operation of these additional embodiments is the same.
Modifications and alternative embodiments of the invention will be apparent to those skilled in the art in view of the foregoing description. Accordingly, this description is to be construed as illustrative only, and is for the purposes of teaching those skilled in the art the best mode of carrying out the invention. The details of the structure may be varied substantially without departing from the spirit of the invention, and the exclusive use of all modifications which come within the scope of the appended claims is reserved.

Claims

WHAT IS CLAIMED IS:
1. A parallel byte processing system for locating control character in a data word comprising a plurality o bytes, said system comprising: a first register to receive said bytes o data; a second register to store a selectable contro character; means for loading said data in said firs register and loading said control character i said second register; and comparison means which simultaneousl compares the bytes in said first register wit said control character in said second register an generates control bits which are in a first stat if the corresponding byte in the first register is equal to the control character in the second register, and in a second state when the corresponding byte in the first register is not equal to the control character in said second register.
2. The system of claim 1, further comprising: means to receive said control bits and generate indicator bits which are in a first state if all of said control bits are in said first state and in a second state if any of said control bits are in said second state.
3. The system of claim 2, further including: a processor status register to store said indicator bits.
4. The system of claim 3, further including: first instruction means to branch to a first memory location if said processor status register is in said first state.
5. The system of claim 4, further including: second instruction means to branch to a second memory location if all of the bits in said processor- status register are in said second state.'
6. The system of claim 4, further including: programming means for determining the location of said control character within said data word.
7. A method for locating a control character in a data word comprising a plurality of bytes, said method comprising the steps of: inputting bytes of data into a comparison means; inputting selectable control character bytes into said comparison means; simultaneously comparing said bytes of data with said control character bytes; and generating indicator bits which are in first state if said data byte is equal to said control character byte and in a second state if said data byte is not equal to said control character byte.
8. The method of Claim 7, further including: storing said control bits in a processor status register.
9. The method of Claim 8, further including: branching to a first memory location if said indicator bit register is in said first state.
10. The method of Claim 9, further including: branching to second memory location if all of said indicator bits in said processor status register are in said second state.
11. A character string processor that locates an occurrence of a keyword string within a character string, comprising: a first register that stores a keyword string having a plurality of bytes; a second register that stores a portion of a character string that is to be searched for the presence of said keyword string, said second register shifting said portion of said character string with respect to said keyword string one byte at a time; and a circuit that simultaneously compares said keyword string with said character string to determine the occurrence of said keyword string in said character string.
12. A character string processor as defined in claim 6 wherein the storage capacity of said first and said second registers is 8 bytes.
13. A character string processor as defined in claim 11 additionally comprising a third register coupled to said second register, said third register storing a portion of said character string, the contents of said third register being periodically shifted into said second register one byte at a time.
14. A character string processor as defined in claim 13 wherein said circuit is an arithmetic logic unit.
15. A character string processor as defined in claim 14 additionally comprising a zero detect circuit coupled to the output of said arithmetic logic unit.
16. A character string processor as.,defined in claim 15 wherein said zero detect circuit comprises an OR gate.
17. A character string processor as defined in claim 16 wherein said second register and said third register are implemented with programmable array logic.
18. A character string processor that locates an occurrence of a keyword string within a character string, comprising: a first register that stores a keyword string having a plurality of bytes; a first shift register that stores a first portion of a character string that is to be searched for the presence of said keyword string, said first shift register shifting said first portion of said character string with respect to said keyword string one byte at a time; a second shift register coupled to said first shift register that stores a second portion of said character string, said second shift register shifting said second portion into said first shift register one byte at a time, said second shift register being loaded with an additional portion of said character string when said second portion is completely shifted into said first shift register; and an arithmetic logic unit that simultaneously compares the contents of said first register with the contents of said first shift register to determine when the contents of said first register are equal to the contents of said first shift register.
19. A character string processor that locates an occurrence of a keyword string within a character string, comprising: a first eight-byte-wide register that stores a keyword string having a plurality of bytes; a first eight-byte-wide shift register that stores a first portion of a character string that is to be searched for the presence of said keyword string, said first shift register shifting said first portion of said character string with respect to said keyword string one byte at a time; a second eight-byte-wide shift register coupled to said first shift register that stores a second portion of said character string, said second shift register shifting said second portion into said first shift register one byte at a time, said second shift register being loaded with an additional portion of said character string when said second portion is completely shifted into said first shift register; and an arithmetic logic unit that simultaneously compares the contents of said first register with the contents of said first shift register to determine whe the contents of said first register are equal to th contents of said first shift register.
20. A character string processor that locates a occurrence of a keyword string within a character string, comprising: a first four-byte-wide register that stores a keyword string having a plurality of bytes; a first four-byte-wide shift register that stores a first portion of a character string that is to be searched for the presence of said keyword string, said first shift register shifting said first portion of said character string with respect to said keyword string one byte at a time; a second four-byte-wide shift register coupled to said first shift register that stores a second portion of said character string, said second shift register shifting- said second portion into said first shift register one byte at a time, said second shift register being loaded with an additional portion of said character string when said second portion is completely shifted into said first shift register; and an arithmetic logic unit that simultaneously compares the contents of said first register with the contents of said first shift register to determine when the contents of said first register are equal to the contents of said first shift register.
21. A character string processor that locates an occurrence of a keyword string within a character string comprising: a first register that stores a keyword string; a second register that stores a portion of a character string that is to be searched for thepresence of said keyword string; a first circuit connected to said second register that shifts the contents of said second register with -38- respect to the contents of said first register an integral number of bytes at a time; and a second circuit that simultaneously compares the contents of- said first and second registers to determine the occurrence of said keyword string in said character string.
22. A character string processor as defined in claim 21 additionally comprising a third register connected to said second register, said third register storing a portion of said character
23. A method of identifying an occurrence of a particular word or combination of characters within a portion of text comprising the steps of:
(a) loading a keyword string into a first register location;
(b) loading a first portion of a character string into a second register location;
(c) after said loading steps, simultaneously comparing the contents of said first register location with the contents of said second register location to determine whether said keyword string is present in said first portion of said character string;
(d) shifting the contents of said second register location with respect to the contents of said first register location by a single byte; and
(e) repeating said steps (c) and (d) at least once.
24. A method as defined in claim 23 additionally comprising the steps of: (f) loading a second portion of said character string into a third register location prior to said step (c) ; and
(g) simultaneously with said step (d) , shifting the contents of said third register location into said second register location by a single byte.
25. A method as defined in claim 24 additionall comprising the step of (h) reloading said third registe location when the contents of said third register locatio have been completely shifted into said second registe location.
26. A method as defined in claim 25 wherein sai repeating step is performed until said keyword string i found to be present in said character string.
27. A method as defined in claim 26 wherein said ste (e) is performed until said character string has bee completely compared with said keyword string.
28. A bit string processor that locates an occurrenc of a keyword string within a bit string, comprising: a first register that stores a keyword strin having a plurality of bits; a first shift register that stores a portion of a bit string which is to be searched for the presence of said keyword string, said first shift register shifting said portion of said bit string with respect to said keyword string one bit at a time; and a second circuit that simultaneously compares said keyword string with said bit string to determine when said keyword string matches said bit string.
29. A bit string processor as defined in claim 28 wherein said second circuit comprises an arithmetic logic unit.
30. A bit string processor as defined in claim 29 wherein said second circuit additionally comprises a zero detect circuit coupled to said arithmetic logic unit.
31. A bit string processor as defined in claim 29 additionally comprising a second shift register coupled to said first shift register, said second shift register storing an additional portion of said bit string and shifting said additional portion into said first shift register, said second shift register being reloaded when said additional portion of said bit string is comple shifted into said first shift register.
32. A bit string processor comprising:
- a first- register that stores a keyword st having a plurality of bits; a first shift register that stores a first por of a bit string that is to be searched for the pres of said keyword string, said first shift regi shifting said first portion of said bit string respect to said keyword string one bit at a time; a second shift register connected to said f shift register that stores a second portion of said string, said second shift register shifting said se portion into said first shift register one bit a time, said second shift register being loaded with additional portion of said character string when second portion is completely shifted into said f shift register; and an arithmetic logic unit that simultaneo compares the contents of said first register with contents of said first shift register to determine the contents of said first register are equal to contents of said first shift register.
33. A bit string processor comprising: a first eight-byte-wide register that store keyword string having a plurality of bits; a first eight-byte-wide shift register that st a first portion of a bit string that is to be sear for the presence of said keyword string, said f shift register shifting said first portion of said string with respect to said keyword string one bit time; a second eight-byte-wide shift register conne to said first shift register that stores a se portion of said bit string, said second shift regi shifting said second portion into said first s register one bit at a time, said second shift regis being loaded with an additional portion of s character string when said second portion is complet shifted into said first shift register; and an arithmetic logic unit that simultaneou compares the contents of said first register with contents of said first shift register to determine w the contents of said first register are equal to contents of said first shift register.
34. A bit string processor comprising: a first four-byte-wide register that stores keyword string having a plurality of bits; a first four-byte-wide shift register that sto a first portion of a bit string that is to be searc for the presence of said keyword string, said fi shift register shifting said first portion of said string with respect to said keyword string one bit a time; a second four-byte-wide shift register connec to said first shift register that stores a sec portion of said bit string, said second shift regis shifting said second portion into said first sh register one bit at a time, said second shift regis being loaded with an additional portion of s character string when said second portion is complet shifted into said first shift register; and an arithmetic logic unit that simultaneou compares the contents of said first register with contents of said first shift register to determine w the contents of said first register are equal to contents of said first shift register.
35. A bit string processor comprising: a first two-byte-wide register that stores keyword string having a plurality of bits; a first two-byte-wide shift register that stores a first portion of a bit string that is to be searched for the presence of said keyword string, said first shift register shifting said first portion of said bit string with respect to said keyword string one bit at a time; a second two-byte-wide shift register connected said first shift register that stores a second port of said bit string, said second shift register shift said second portion into said first shift register bit at a time, said second shift register being loa with an additional portion of said character str when said second portion is completely shifted i said first shift register; and an arithmetic logic unit that simultaneou compares the contents of said first register with contents of said first shift register to determine w the contents of said first register are equal to contents of said first shift register.
36. A method of identifying an .occurrence of predetermined bit pattern within a bit string comprising steps of:
(a) loading a keyword string into a first regis location;
(b) loading a first portion of a bit string int second register location; (c) after said loading steps, simultaneou comparing the contents of said first register locat with the contents of said second register location determine whether said keyword string is present said first portion of said bit string; (d) shifting the contents of said second regis location with respect to the contents of said fi register location by a single bit; and
(e) repeating said steps (c) and (d) at le once.
37. A method as defined in claim 36 additionally comprising the steps of: (f) loading a second portion of said bit st into a third register location prior to said step and
(g) simultaneously with said step (d) , shif the contents of said third register location into second register location by a single bit.
38. A method as defined in claim 37 addition comprising the step of (h) reloading said third regi location when the contents of said third register loca have been completely shifted into said second regi location.
39. A method as defined in claim 38 wherein said s (e) is performed until said bit string has been complet compared with said keyword string.
40. A parallel bit/byte string processor that loca an occurrence of a keyword string within a string of bin information, comprising: a first register that stores a keyword string binary information; a first shift register that stores a portion o second string of binary information that is to searched for the presence of said keyword string, s first shift register shifting said portion of s second string with respect to said keyword string bit at a time on a first condition and one byte a time on a second condition; and a second circuit that simultaneously compares s keyword string with said second string to determ when said keyword string matches said second string.
41. A parallel bit/byte string processor as defined claim 40 wherein said first condition is the receipt o first control signal and said second condition is receipt of a second control signal.
42. A parallel bit/byte string processor as defined claim 41 additionally comprising a second shift regis coupled to said first shift register, said second sh register storing an additional portion of said second str of binary information, the "contents of said second sh register being shifted into said first shift register bit at a time on said first condition and one byte at a t upon said second condition.
43. A parallel bit/byte string processor as defined claim 42 wherein said second circuit is an arithmetic lo unit.
EP19880902641 1987-02-10 1988-02-10 Parallel string processor and method for a minicomputer Withdrawn EP0352279A4 (en)

Applications Claiming Priority (4)

Application Number Priority Date Filing Date Title
US1283487A 1987-02-10 1987-02-10
US12834 1987-02-10
US8842187A 1987-08-20 1987-08-20
US88421 1987-08-20

Publications (2)

Publication Number Publication Date
EP0352279A1 true EP0352279A1 (en) 1990-01-31
EP0352279A4 EP0352279A4 (en) 1991-10-30

Family

ID=26684061

Family Applications (1)

Application Number Title Priority Date Filing Date
EP19880902641 Withdrawn EP0352279A4 (en) 1987-02-10 1988-02-10 Parallel string processor and method for a minicomputer

Country Status (4)

Country Link
EP (1) EP0352279A4 (en)
KR (1) KR890700870A (en)
AU (1) AU1486388A (en)
WO (1) WO1988006308A1 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP0363175A3 (en) * 1988-10-07 1991-11-21 International Business Machines Corporation Comparator apparatus
WO1990005334A1 (en) * 1988-11-04 1990-05-17 Davin Computer Corporation Parallel string processor and method for a minicomputer

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
GB2036390A (en) * 1978-12-07 1980-06-25 Standard Telephones Cables Ltd Improvements in or Relating to Telephone Exchanges
US4560974A (en) * 1981-09-28 1985-12-24 Hughes Aircraft Company Real-time ordinal-value filter utilizing reference-function comparison

Family Cites Families (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US3609703A (en) * 1969-06-30 1971-09-28 Ibm Comparison matrix
FR2293741A1 (en) * 1974-12-04 1976-07-02 Anvar METHOD AND SYSTEM FOR ITERATIVE AND SIMULTANEOUS RECONCILIATION OF DATA WITH A SET OF REFERENCE DATA
US4032885A (en) * 1976-03-01 1977-06-28 The United States Of America As Represented By The Secretary Of The Navy Digital correlator
GB1545117A (en) * 1976-05-25 1979-05-02 Nat Res Dev Comparison apparatus eg for use in character recognition
US4101903A (en) * 1976-08-02 1978-07-18 Rockwell International Corporation Method and apparatus for monitoring bcd continuously varying data
US4097844A (en) * 1977-04-04 1978-06-27 Hughes Aircraft Company Output circuit for a digital correlator
FR2459512A1 (en) * 1979-06-19 1981-01-09 Vidalin Jacques METHOD FOR CONTROLLING RECONCILIATION TO BE MADE BETWEEN LOGICAL REFERENCE ENTITIES AND LOGICAL ENTITIES OBTAINED FROM A FILE
JPS5652441A (en) * 1979-10-05 1981-05-11 Pioneer Electronic Corp Programmable bit shift circuit
US4334284A (en) * 1979-12-31 1982-06-08 Sperry Corporation Multiplier decoding using parallel MQ register
US4467444A (en) * 1980-08-01 1984-08-21 Advanced Micro Devices, Inc. Processor unit for microcomputer systems
JPS592143A (en) * 1982-06-29 1984-01-07 Hitachi Ltd Operation controlling system
JPS59149539A (en) * 1983-01-28 1984-08-27 Toshiba Corp Fixed-to-floating point converting device
US4524345A (en) * 1983-02-14 1985-06-18 Prime Computer, Inc. Serial comparison flag detector
US4550436A (en) * 1983-07-26 1985-10-29 At&T Bell Laboratories Parallel text matching methods and apparatus

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
GB2036390A (en) * 1978-12-07 1980-06-25 Standard Telephones Cables Ltd Improvements in or Relating to Telephone Exchanges
US4560974A (en) * 1981-09-28 1985-12-24 Hughes Aircraft Company Real-time ordinal-value filter utilizing reference-function comparison

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
See also references of WO8806308A1 *

Also Published As

Publication number Publication date
AU1486388A (en) 1988-09-14
KR890700870A (en) 1989-04-28
EP0352279A4 (en) 1991-10-30
WO1988006308A1 (en) 1988-08-25

Similar Documents

Publication Publication Date Title
US4896133A (en) Parallel string processor and method for a minicomputer
US5073864A (en) Parallel string processor and method for a minicomputer
US5379420A (en) High-speed data searching apparatus and method capable of operation in retrospective and dissemination modes
US7991987B2 (en) Comparing text strings
US5408626A (en) One clock address pipelining in segmentation unit
JP2668438B2 (en) Data retrieval device
EP1535197B1 (en) Programmable rule processing apparatus for conducting high speed contextual searches characterizations of patterns in data
KR100315407B1 (en) A first Boolean combination task of the second input task 3 input 2 a logical product of the second boolean combination of the input task 3 input a three input arithmetic logic unit
US5132898A (en) System for processing data having different formats
JPS62217321A (en) Fast search processor
US6112288A (en) Dynamic configurable system of parallel modules comprising chain of chips comprising parallel pipeline chain of processors with master controller feeding command and data
GB2263987A (en) End bit markers for instruction decode.
US5117493A (en) Pipelined register cache
JP3183669B2 (en) Processor for variable length character strings
CA1216070A (en) Enhanced alu test hardware
JPH08511640A (en) Method and apparatus for finding termination characters in strings of varying lengths in a processor
US4384343A (en) Firmware controlled search and verify apparatus and method for a data processing system
US4631672A (en) Arithmetic control apparatus for a pipeline processing system
JPS63155336A (en) Data processor
EP0352279A1 (en) Parallel string processor and method for a minicomputer
EP0395636A1 (en) Parallel string processor and method for a minicomputer
EP0441873A1 (en) Parallel string processor and method for a minicomputer
US5724572A (en) Method and apparatus for processing null terminated character strings
US5161230A (en) Multifield identification circuit and related method of operation
US5214598A (en) Unbiased bit disposal apparatus and method

Legal Events

Date Code Title Description
PUAI Public reference made under article 153(3) epc to a published international application that has entered the european phase

Free format text: ORIGINAL CODE: 0009012

17P Request for examination filed

Effective date: 19890809

AK Designated contracting states

Kind code of ref document: A1

Designated state(s): AT BE CH DE FR GB IT LI LU NL SE

RIN1 Information on inventor provided before grant (corrected)

Inventor name: MCLAGAN, ANGUS

Inventor name: PAO, GEI-JON

Inventor name: METHVIN, DAVID

Inventor name: UN, CHONG, SAM

A4 Supplementary search report drawn up and despatched

Effective date: 19910910

AK Designated contracting states

Kind code of ref document: A4

Designated state(s): AT BE CH DE FR GB IT LI LU NL SE

17Q First examination report despatched

Effective date: 19930309

STAA Information on the status of an ep patent application or granted ep patent

Free format text: STATUS: THE APPLICATION IS DEEMED TO BE WITHDRAWN

18D Application deemed to be withdrawn

Effective date: 19930720