WO1990005334A1 - Parallel string processor and method for a minicomputer - Google Patents
Parallel string processor and method for a minicomputer Download PDFInfo
- Publication number
- WO1990005334A1 WO1990005334A1 PCT/US1989/004963 US8904963W WO9005334A1 WO 1990005334 A1 WO1990005334 A1 WO 1990005334A1 US 8904963 W US8904963 W US 8904963W WO 9005334 A1 WO9005334 A1 WO 9005334A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- byte
- register
- bit
- data
- processor
- Prior art date
Links
- 238000000034 method Methods 0.000 title description 21
- 230000015654 memory Effects 0.000 claims abstract description 45
- 230000010076 replication Effects 0.000 claims description 8
- 230000006870 function Effects 0.000 description 26
- 238000013461 design Methods 0.000 description 21
- 238000012360 testing method Methods 0.000 description 20
- 239000000872 buffer Substances 0.000 description 19
- 230000008569 process Effects 0.000 description 14
- 238000010586 diagram Methods 0.000 description 13
- 238000012545 processing Methods 0.000 description 13
- 102100033896 Arylsulfatase H Human genes 0.000 description 12
- 101000925530 Homo sapiens Arylsulfatase H Proteins 0.000 description 12
- 101100315945 Saccharomyces cerevisiae (strain ATCC 204508 / S288c) UBS1 gene Proteins 0.000 description 11
- 101100208763 Oryza sativa subsp. japonica UDT1 gene Proteins 0.000 description 7
- 101000809513 Homo sapiens Ubiquitin recognition factor in ER-associated degradation protein 1 Proteins 0.000 description 6
- 101100117360 Saccharomyces cerevisiae (strain ATCC 204508 / S288c) DOA1 gene Proteins 0.000 description 6
- 102100038833 Ubiquitin recognition factor in ER-associated degradation protein 1 Human genes 0.000 description 6
- 101000808654 Homo sapiens Ubiquitin conjugation factor E4 A Proteins 0.000 description 5
- 101000809046 Homo sapiens Ubiquitin conjugation factor E4 B Proteins 0.000 description 5
- 102100038487 Ubiquitin conjugation factor E4 B Human genes 0.000 description 5
- 238000011144 upstream manufacturing Methods 0.000 description 5
- 230000009467 reduction Effects 0.000 description 3
- 230000004913 activation Effects 0.000 description 2
- 230000008901 benefit Effects 0.000 description 2
- 238000004883 computer application Methods 0.000 description 2
- 230000009977 dual effect Effects 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000004044 response Effects 0.000 description 2
- 101100020383 Oryza sativa subsp. japonica KS1 gene Proteins 0.000 description 1
- 230000002411 adverse Effects 0.000 description 1
- 230000004075 alteration Effects 0.000 description 1
- 230000008859 change Effects 0.000 description 1
- 238000006243 chemical reaction Methods 0.000 description 1
- 238000013498 data listing Methods 0.000 description 1
- 230000008570 general process Effects 0.000 description 1
- 230000006872 improvement Effects 0.000 description 1
- 238000002372 labelling Methods 0.000 description 1
- 238000002789 length control Methods 0.000 description 1
- 230000000873 masking effect Effects 0.000 description 1
- 239000000463 material Substances 0.000 description 1
- 230000008520 organization Effects 0.000 description 1
- 230000003362 replicative effect Effects 0.000 description 1
- 239000013598 vector Substances 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F7/00—Methods or arrangements for processing data by operating upon the order or content of the data handled
- G06F7/74—Selecting or encoding within a word the position of one or more bits having a specified value, e.g. most or least significant one or zero detection, priority encoders
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F7/00—Methods or arrangements for processing data by operating upon the order or content of the data handled
- G06F7/02—Comparing digital values
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements 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/30—Arrangements for executing machine instructions, e.g. instruction decode
- G06F9/30003—Arrangements for executing specific machine instructions
- G06F9/30007—Arrangements for executing specific machine instructions to perform operations on data operands
- G06F9/30018—Bit or string instructions
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements 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/30—Arrangements for executing machine instructions, e.g. instruction decode
- G06F9/30003—Arrangements for executing specific machine instructions
- G06F9/30007—Arrangements for executing specific machine instructions to perform operations on data operands
- G06F9/30036—Instructions to perform operations on packed data, e.g. vector, tile or matrix operations
- G06F9/30038—Instructions to perform operations on packed data, e.g. vector, tile or matrix operations using a mask
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F2207/00—Indexing scheme relating to methods or arrangements for processing data by operating upon the order or content of the data handled
- G06F2207/02—Indexing scheme relating to groups G06F7/02 - G06F7/026
- G06F2207/025—String 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.
- current string processors typically, starting at the beginning of the byte string that represents the portion of text, or the "character string,” compare the first byte of the keyword with the first byte of the character string. If these two bytes match (the first letter of the keyword matches the first letter in the portion of text), then the processor compares the second byte in the keyword to the second byte in the character string. If these two bytes match, then the processor compares the next pair of bytes in the two strings, and so on. If all of the respective bytes in the two strings match, the processor has found an occurrence of the keyword in the portion of text.
- the keyword does not usually appear as the first word in the portion of text being searched. Consequently, one of the bytes of the keyword will not match 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.
- the keyword be the word “the” and the character string be "that time is the essence.”
- the byte representing the “t” in “the” will be compared to the byte representing the "t” in “that”:
- Keyword the Note that this particular example required 21 comparisons to find the keyword "the” in the character string "that time is the essence.” In particular, four comparisons were required even where the keyword matched the same word in the character string (the blank space required one comparison).
- 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 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:
- 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:
- 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 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 byte at a time, the processor simultaneously tests each byte in the keyword with a respective byte in the byte string. Thus, only a single comparison is required to determine whether the keyword is present in any portion of the byte string. If the keyword is not present in the portion of the byte string tested, then the processor shifts the byte string with respect to the keyword and then makes a single comparison of the keyword with the new portion of the byte string. This single-compare-and-test process continues until either the keyword is found or the end of the byte string is reached. As a result of simultaneously testing each byte in the keyword with a respective byte in the byte string, the processing time is kept to an absolute minimum.
- the processor In its bit mode of operation, stores a portion of a bit string that is to be tested for the presence of a desired string of bytes in a first register location and the desired keyword in a second register location.
- the processor simultaneously tests each bit in the keyword with a respective bit in the bit string. As a result of this simultaneous testing, only one comparison is needed to determine whether the keyword is present in the portion of the bit string being tested. If the keyword is not present, the bit string is shifted one bit relative to the keyword and a single comparison of the keyword with the new portion of the bit string is made. This process continues until the keyword is found or until the end of the bit string is reached. Because each bit in the keyword is simultaneously tested with a respective bit in the bit string, only a single comparison is required to determine whether the keyword matches a portion of the bit string, and as a result, processing time is minimized.
- Another feature of the invention is the capability of the processor to automatically function either as a parallel bit processor or as a parallel byte processor.
- the processor When the processor is given a first control signal, the processor functions as a parallel byte processor, and when the processor is given a second control signal, the processor functions as a parallel bit processor.
- two separate processors are not required, thus resulting in cost saving that a separate processor would otherwise entail.
- Another aspect of the present invention is a set of novel instructions that are particularly useful for testing the outputs of byte comparisons.
- One such instruction finds the location of the first byte (i.e., most significant) in a first data word that is identical to the corresponding byte in a second data word.
- a similar instruction finds the location of the first byte in the first data word that does not match the corresponding byte in the second data word.
- a third instruction finds the first byte in the first data word that matches the corresponding byte in the second data word so long as the matching byte is less significant than a byte in the first data word that does not match the corresponding byte in the second data word.
- a fourth instruction finds the first byte in the first data word that does not match the corresponding byte in the second data word so long as the matching byte is less significant than a byte in the first data word that matches the corresponding byte in the second data word.
- the processor includes novel circuitry to implement these instructions.
- the processor includes a replication instruction and associated circuitry that duplicates a single input byte into all the bytes of a multiple byte data word.
- the replication instruction is particularly useful for comparing an input data string to a predetermined control character or other delimiter.
- Figures 1 and 2 are block diagrams of two registers of the parallel byte comparison processor
- Figure 3 is a circuit diagram of the comparison circuit of the parallel byte comparison processor
- Figure 4 is a representative instruction sequence of the parallel byte comparison processor
- Figure 5 is a schematic circuit diagram of a parallel string processor in accordance with the invention
- Figure 6 is a detailed circuit diagram of a portion of one embodiment of a shift register in accordance with the invention.
- Figure 7 is a detailed circuit diagram of a portion of the parallel string processor of Figure 5;
- Figure 8 is a detailed flowchart of the operation of the parallel processor of Figure 5 in its byte mode of operation
- FIG. 9 is a detailed flowchart of the operation of the parallel processor of Figure 5 in its bit mode of operation
- Figure 10 is a block diagram illustrating the circuitry to implement instructions to find specific occurrences of hits and misses in the hit register
- Figure 11 is a block diagram illustrating the operation of circuitry to implement a replicate instruction to cause the data in one byte to be replicated in all the bytes of a data word;
- Figure 12 is a logic diagram of the replication circuit of Figure 11 showing a particular implementation of the replication circuit.
- a selected control character such as "EOS" (end of sector) is loaded into a Register A.
- 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 is stored in a Processor Status Register 100 (also referred to as the "hit register") .
- 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 are also shown in Fig. 3 as comprising first and second AND 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 BOO-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 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.
- 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 corresp ⁇ nds 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 "DATA1" 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 DATA1. If the second control character is found in DATA1, then at line 92 the program branches to memory location 400.
- 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 required in prior art machines.
- a "branch on no-hits” may be utilized as an alternative to the "branch on any hit” instruction, which branches to a memory location if none of the bytes in the data word contain the control character.
- the Register A When the data is checked for more than one set of characters, the Register A may be reloaded with the characters for each compare sequence. However, to increase the execution speed, reloading the register may be avoided 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 for in the data. For example, if the data is to be searched for two sets of characters, "EOS" and "CR,” a 2-to-1 multiplexer may be utilized, with the registers containing "EOS" and "CR” serving as input to the multiplexer.
- 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 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. 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 A register matches the byte from the B register.
- the foregoing embodiment utilizes inverse logic from the illustrative circuit shown in Fig. 3. In the circuit shown in Fig. 3, a zero is generated when the byte pairs match.
- a parallel string processor in accordance with another aspect of the invention is shown in Fig. 5.
- the processor includes a dual register file 120 comprising an A register 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.
- 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 A register file is shown to include an address register 122, a length register 124, a bit mask register 126, a byte mask register 128, and a test register 130.
- the address register 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 would equate the word "string” with "spring.”
- the test register 130 contains the desired keyword after it has been masked with the desired byte mask.
- the B register file contains a bit count register 132 and a byte count register 134 which, as is explained in more detail hereinafter, determine when the next portion of the data string being tested for the presence of the keyword needs to be fetched from memory.
- a keyword register 136 contains the binary data string corresponding to the desired keyword, and the end-of-string (END) flag register 138 contains a flag that indicates whether or not a data string 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 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 select circuit 146 is shown functionally (in dotted lines) for purposes of explaining the invention. In reality, the function select circuit 146 is implemented with programmable array logic integrated circuits commercially available from Monolithic Memories, Inc. of Santa Clara, California, that are programmed with many equations that do not facilitate explanation. These equations are, however, included in this specification as Appendix 1, and they completely describe the actual embodiment of the ALU function select circuit 146.
- the ALU comprises 16 separate, 4-bit '381 integrated circuit chips 152.
- the data inputs of the ALU chips 152 that are connected to the A and B latches 142, 144 have been omitted from Fig. 7, and only the outputs of the chips 152 are shown.
- Each pair of the chips 152 is connected to a respective multiplexer 154 which supplies the control inputs for the chips 152.
- Each of the multiplexers 154 either supplies a desired 3-bit FUNCTION signal or a 3-bit CLEAR signal to the control inputs of the pair of chips 152 to which it is connected, depending upon the value of its address signal sent from a register 156 which stores the 8 bits of the byte mask.
- the byte mask causes the processor to ignore certain bytes in the data string being searched so that, for example, the processor would equate the keyword "string” with the word “spring” in the data string, in which case the second bit of the byte mask would be set to logic "1” so that the "p" in "spring” is ignored.
- the fourth bit of the byte mask would be set to logic "1.”
- the multiplexers 154 either supply a specified FUNCTION signal or a CLEAR signal to the chips 152, depending upon whether the value of the particular bit of the byte mask in the register 156 is logic "1" or "0.” If the bit in the byte mask is logic "0,” the desired 3-bit FUNCTION signal is 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 has 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 "0.”
- Each AND gate 202c to which the SI signal is supplied has its other input connected to the output of the firstt upstream flip-flop, "upstream" meaning the direction from which data is being shifted. In Fig.
- 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.
- the SI signal when the SI signal is activated, the output of the AND gate 202c to which it is connected is equal to the output of the upstream flip-flop. Since the output of the AND gate 202c is passed through its respective OR gate 200 to the input of the downstream flip-flop, the activation of the Sl 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.
- bit masking functions are 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.
- the processor compares a selected string of bytes to determine the presence of a selected keyword. Both the byte 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 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 match is indicated by the processor. Then, the contents of the J and K registers 186, 188 are shifted left one byte and the contents of the J register 186 are again compared with the contents of the test register 130.
- 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 shown above. This reduction results from the entire keyword simultaneously being compared with a portion of the data string, instead of being compared one byte at a time.
- Fig. 8 is a flowchart of the microcode that controls the operation of the processor shown in Fig. 5, and Table 1 includes a software program that is substantially functionally equivalent to the microcode actually used. The operation is explained with reference to Table l 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.
- the value of the END flag is reset to indicate that the end of the string has not yet been reached.
- the keyword is masked with the bit mask to ensure that the processor ignores any bits in any desired byte as selected 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.
- the ALU output which is the value of the masked keyword
- 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.
- 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.
- 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. As mentioned above, for each byte position of the ALU 140 in which there was a match, the ALU output will be zero.
- 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.
- 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.
- 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 sent to the zero detect circuit 150. If the zero detect circuit 150 detects a zero, instruction 33 causes a branch to instruction 7. Instruction 34 saves the decremented value 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.” De ⁇ cription of Branch Instructions that utilize Parallel Byte Checking
- any hit (BAH) instruction is particularly advantageous in determining when an input character string contains the byte or bytes in the keyword.
- the software can branch to a location to further process the input string.
- One of the first items of information that is desirable to determine related to the input string is the location of the first byte that matches the corresponding byte of the keyword.
- many programs parse input data by searching for certain delimiters (e.g., a space, a comma, a period, a semicolon, or the like). When a delimiter is found, the software will cause the input data up to the delimiter to be evaluated in accordance with a predetermined rule.
- the data following the delimiter may be evaluated according to a separate rule.
- the conventional manner of finding delimiters is to take the input string and search through it on a character-by-character basis (i.e., a byte-by-byte basis) until the delimiter is found.
- the parallel byte comparison operation of the present invention substantially reduces the amount of time required by identifying the multiple byte portion of the input string where the byte is located so that the byte-by-byte comparison need only be performed on that portion of the input string where the byte is located.
- a further improvement of the present invention comprises four instructions to greatly improve the efficiency of locating the precise byte where the delimiter is located or to find the first byte following the delimiter.
- the first instruction to improve the efficiency of the byte location operations is a "find first hit” (FFH) instruction.
- the FFH instruction operates upon the hit register portion of the processor status register 100 of Figure 2 to identify the first byte in the input data string that is equal to the byte or bytes to which the input data string is being compared. For example, in the case where a single character (such as a control character or a delimiter) is reproduced in all eight bytes of a 64-bit word, and the input data string is being compared to the single character, the FFH instruction will generate an output code that identifies the location of the first byte that is equal to the single character.
- the ASCII character code for a space i.e., the hexadecimal value 20 16
- the eight-bit hit register portion of the processor status register 100 of Figure 2 will comprise the following bits:
- a zero in the hit register portion of the processor status register 100 corresponds to a byte where the input data string matches the comparison byte and a one in the hit register portion of the processor status register 100 corresponds to a byte where the input data string does not match the comparison byte.
- there are two zeros in the hit register portion of the processor status register corresponding to the two spaces in the input data string.
- the FFH instruction causes a location value of "4" to be generated to indicate that byte 4 of the current portion of the input data string in the register B is the first byte that matches the corresponding byte of the register A.
- the bytes are numbered from left to right rather than right to left.
- "byte 0" refers to the most significant (i.e., leftmost) byte
- "byte 7" refers to the least significant (i.e., rightmost) byte in a 64-bit word. It should be noted that this convention is different from the labelling of the bits in which "bit 0" refers to the least significant bit and "bit 63" refers to the most significant bit.
- the value of 4 is stored in a selected register where it is available for subsequent instructions to operate upon the value.
- the preferred format of the FFH instruction is as follows:
- Rxx designates a particular register in the computer.
- the next novel instruction that is used in conjunction with the hit register portion of the processor status register 100 is a "find first miss" (FFM) instruction.
- the FFM instruction is similar to the FFH instruction; however, as its name implies, it identifies the location of the first byte in the input data string that is not equal to the byte or bytes to which the input data string is being compared.
- the FFM instruction has utility, for example, in finding the first non-blank character in an input line. As a specific example, assume once again that the register A of Figure 2 is loaded with eight bytes of data representing eight spaces, as follows:
- the pertinent eight-bit hit register portion of the processor status register 100 of Figure 2 will comprise the following bits:
- the location value generated by the FFM instruction will be a "5" to indicate that the first miss is in byte 5.
- the FFM instruction includes a register identifier to designate the register where the location value identifying the byte location of the first miss is to be stored. For example, the instruction:
- location value 5 causes the location value 5 to be stored in the register 23 for the example presented above. Again, a location value between 0 and 7 designates the location of the first miss. A location value of 8 indicates that there were no misses.
- the present invention also includes a "find first miss after first hit" (FFMAFH) instruction that is useful for finding the beginnings or words in a text stream and other similar operations.
- FFMAFH find first miss after first hit
- the FFMAFH instruction performs this operation as a single instruction. This can be understood by referring again to the original example wherein the register A is loaded with eight space characters as follows:
- the register B is again loaded with the string portion corresponding to "time is ", as follows:
- the pertinent eight-bit hit register portion of the processor status register 100 of Figure 2 will again comprise the following bits:
- the FFMAFH instruction causes a location value of 5 to be generated which is the first miss (i.e., first non-blank character) after the first hit.
- the location value generated by the FFMAFH instruction a text processing program can immediately go to the beginning of the next word without having to methodically search each of the eight bytes in the string portion to find the first blank character and then find the first non-blank character that follows the first blank character.
- the full FFMAFH instruction format specifies the register into which the generated value is to be stored as follows:
- Rxx is one of the registers in the register file, as discussed above.
- a location value between 0 and 7 identifies the location of the first miss after the first hit.
- a location value of 8 indicates that there was no first miss after a first hit.
- a similar instruction to the FFMAFH instruction is a "find first hit after first miss" (FFHAFM) instruction.
- the FFHAFM instruction looks for the first miss in the input string portion and then finds the first hit thereafter.
- a text processor can advantageously use this instruction to skip from the end of one word to the end of the next word. For example, all eight bytes of the register A is again filled with data representing the blank character as follows:
- the register B is loaded with an eight-byte portion of an input data string having the characters " is the " as follows:
- the hit register portion of the processor status register 100 will comprise the following bits:
- the FFHAFM instruction will cause a value of 3 to be generated indicating the first hit (byte 3) after the first miss (byte 1) in the eight-byte portion of the data string.
- the FFHAFM instruction has the format:
- Rxx designates a particular register into which the generated value will be loaded.
- a location value between 0 and 7 identifies the location of the first hit after the first miss.
- a location value of 8 indicates that there was no first hit after a first miss.
- find instructions also operate with string portions greater than a byte. For example, in some applications, it is desirable to determine whether a sixteen-bit portion of an input data string is equal to another sixteen-bit data string. In such applications, the find instructions operate on a sixteen-bit (i.e., double byte) basis. For example, assume that the register A is loaded with the following data:
- register B is loaded with the following data:
- REGISTER B FE78BC3CFE3C8D56
- the hit register portion of the processor status register 100 will comprise the following eight bits:
- the FFH instruction will cause a location value of 4 to be generated to indicate that the sixteen-bit portion that compared starts in byte 4 of the input data string.
- the single byte compares of byte 0 and 3 do not cause a location value to be output.
- the two compares in a row on bytes 3 and 4 will not cause a location value to be generated because the two bytes are in separate sixteen-bit groups. Since the FFH instruction operates on two-byte boundaries, the four possible location value outputs are 0, 2, 4 and 6 when a hit occurs and a value of 8 when no hit occurs.
- the find instructions also operate on a half-word (four-byte) basis by comparing 32 bits in the comparison register with 32 bits of the input data string. For example, assume that the register A is loaded with the following string:
- REGISTER B 1234567A12345678
- the hit register portion of the processor status register 100 will comprise the following bits:
- the FFH instruction will generate a location value of 4 to indicate that the second 32-bit half-word matches the comparison string.
- the two possible location value outputs when a hit occurs are 0 and 4 which are the two half-word boundaries. As before, a location value output of 8 indicates that no hit occurred for the two half-words.
- the FFH instruction also operates on a full word basis.
- the location value generated by the instruction When operating on a full word basis, the location value generated by the instruction will either be a 0 to indicate that the entire word matched beginning in byte 0 or an 8 to indicate that the word did not match.
- the FFM instruction operates in a similar manner to the FFH instruction on multiple byte lengths.
- the FFMAFH and FFHAFM instructions operate on the double-byte length in a manner similar to the operation on a single byte. However, it should be understood that the first miss after a first hit or the first hit after a first miss can only occur in bytes 2, 4 or 6. Thus, the only valid location values generated by these instructions when operating on double-byte lengths are 2, 4, 6 and 8. With respect to half-words, the only valid location value outputs are 4 and 8, since the first hit or miss after the first miss or hit respectively must necessarily occur in the second half-word beginning in byte 4 or not occur at all. With respect to full word operations, the FFMAFH and FFHAFM instructions always generate a location value of 8 since there can be no miss after a full word hit or a hit after a full word miss.
- the foregoing find instructions are implemented as single cycle instructions in the present invention in accordance with the block diagram of Figure 10. For simplification only the pertinent portions of the overall processor are shown. In particular, the processor status register 100 is shown along with a portion of the M-bus 184.
- the present invention further includes an address buffe circuit 500 that receives the eight bits from the hit register portion of the processor status register 100 via an eight-bit bus 502.
- the address buffer 500 further receives four bits from an instruction register 504 (shown in phantom) that latches the operation code data from an instruction memory (not shown) and holds it throughout an instruction cycle.
- the four bits from the instruction register 504 are labelled as A, B, C and D and are provided as inputs to the address buffer on respective lines 510, 511, 512 and 513.
- the output of the address buffer 500 comprises twelve bits on an address bus 520 that is provided to the address inputs of a PROM (programmable read only memory) 522.
- the PROM 522 is a 4096 word by 4-bit PROM. It can thus be seen that the address input to the PROM 522 comprises eight bits from the hit register portion of the processor status register 100 and four bits from the instruction register 504. Preferably, the least significant eight address bits applied to the PROM 522 comprise the hit register bits and the most significant four bits comprise the four bits from the instruction register 504.
- the eight bits from the hit register portion of the processor status register 100 are interchanged so that the least significant bit (bit 0) of the hit register is connected to address bit 7 of the PROM 522, bit 1 of the hit register is connected to address bit 6 of the PROM 522, and so on such that bit 7 of the hit register is connected to address bit 0 of the PROM 522.
- the interconnection of the hit register bits to the address bits of the PROM 522 is a matter of convenience in programming the PROM 522. It should be understood that the particular selection of address bits can be varied so long as the PROM 522 is programmed with the correct data for each address.
- the PROM 522 provides four output data bits on a four- bit PROM output bus 530.
- the PROM output bus 522 is provided as an input to a set of tri-state gates 532.
- the tri-state gates 532 have outputs that are connected to the M-bus 184.
- the tri-state gates 532 are enabled via an enable line 534 during the execution of the selected find instruction so that the output bits from the PROM 522 are enabled onto the M-bus 184.
- the enable line 534 is connected to an output of an instruction decode circuit 536 (shown in phantom) which receives instruction data from the instruction register 504 and provides a plurality of decoded instruction outputs, one of which is the output on the enable line 534.
- the enable output on the line 534 is activated when the operation code corresponding to the find instructions is decoded by the instruction decode circuit 536.
- the data on the M-bus 184 is transferred to a selected register via the buffer 170 and the A-bus 168 or via the buffer 174 and the B-bus 172 in a conventional manner in accordance with the destination register portion of the find instruction, as discussed above.
- bits A and B the two most significant pair of bits from the instruction register 502 are responsive to the particular find instruction and to the data length of the compares, as discussed above. Bits A and B, the two most significant pair of bits from the instruction register 502, define the particular find instruction as follows:
- bits C and D define the groupings of the data strings for finding the hits or the misses as follows:
- the entire memory area of the PROM 522 can be considered as being divided into four major groups with the addresses 000-3FF (hexadecimal) defining the memory locations for the FFH instruction, the addresses 400-7FF defining the memory locations for the FFM instruction, the addresses 800-BFF defining the memory locations for the FFMAFH instruction, and the addresses COO-FFF defining the memory locations for the FFHAFM instruction.
- the bits C and D define the memory locations for the various byte groupings.
- the memory locations 000- 0FF define the memory locations for the single byte FFH instruction
- the memory locations 100-lFF define the memory locations for the two byte FFH instructions
- the memory locations 200-2FF define the memory locations for the half word (four byte) FFH instructions
- the memory locations 300-3FF define the memory locations for the full word instructions. Similar groupings are provided for each of the FFM, FFMAFH and FFHAFM instructions.
- each of the four byte groupings for each of the four instructions comprises 256 memory locations.
- the 256 memory locations correspond to each of the 256 possible combinations of the eight bits from the hit register as provided by the eight least significant address bits to the PROM 522.
- the PROM 522 provides a unique four-bit output for each combination of data from the hit register for each byte grouping for each of the four instructions.
- the data programmed into the PROM 522 can be readily determined in accordance with the above-described rules for generating the location values for each instruction and each byte grouping.
- Appendix 3 provides a data listing for the 4096 addresses of the PROM 522 programmed in accordance with the above- described rules. In order to more clearly understand the PROM programming and the data conventions, a portion of the PROM listing for the addresses 000-OOF for the single byte FFH instruction is shown below:
- hit register bits have been reversed in the PROM addresses set forth above so that the least significant bit of the PROM address corresponds to the most significant bit of the hit register.
- a hit is represented in the foregoing hit register bits as a zero.
- address 000 above corresponds to all eight bytes of the two eight byte data strings being equal.
- address 00F corresponds to the least significant four bytes being equal (as represented by the zeros) and the four most significant bytes not being equal.
- the address 001 corresponds to the most significant byte not being equal and the seven least significant bytes being equal.
- the address 007 produces an location value output of "3" to indicate that byte 3 of the input string is the first byte to be equal to the corresponding byte in the comparison string.
- the location value output corresponding to the address 400 is an 8 to indicate that there were no misses.
- the location value outputs for the other addresses indicate the location of the first one counting from the right, thus corresponding to the first byte of the input string that is not equal to the corresponding byte of the comparison string.
- the remaining programming of the PROM 522 can be determined in accordance with the above- described rules and can be verified in Appendix 3.
- the PROM 522 Since the PROM 522 is responsive to the change in the input addresses in accordance with the instruction in the instruction register 502 and in accordance with the hit register portion of the processor status register 100, the data output from the PROM 522 can readily be provided in a single instruction cycle. Thus, it can be seen that a single find instruction quickly identifies a particular byte in an input string compared to the many instructions required in a conventional processor.
- find instructions can be used with processors having more or fewer bits per word with suitable alterations in the circuitry to accommodate the different numbers of bits.
- the present invention provides a novel replicate instruction that inserts the same data in all eight bytes in a single instruction cycle.
- the novel apparatus for replicating a single byte of data into all eight bytes of the 64-bit word is illustrated in Figure 11.
- the replication apparatus comprises a replication circuit 550 that has an input connected to receive eight bits (one byte) of data from the F-bus 148 and that generates 64 bits (eight bytes) of data as an output to the M-bus 184.
- the eight bits of input data from the F-bus 148 comprise the eight least significant bits of the F-bus 148 and thus comprise the eight least significant bits of the selected source that is enabled onto the F-bus 148.
- the data on the F-bus 148 can advantageously be the output of one of the registers in the A register file or the B register file gated through the ALU 140 of Figure 5, or alternatively, can be data from the M-bus 184.
- the 64 bits of output data generated by the replicate circuit 550 are gated onto the M-bus 184 in response to an active signal on an enable line 552, which is connected to an output of the instruction decode circuit 536 (shown in phantom).
- the instruction decode circuit 536 decodes the instruction data from the instruction register 504 ( Figure 10) and enables the enable line 552 whenever the operation code for the replicate instruction appears in the instruction register 504.
- the output circuits of the replicate circuit are tri-state output circuits that enable data onto the M-bus 184 whenever the enable line 552 is active.
- the operation of the replicate circuit is illustrated pictorially in Figure 11, wherein a first data word (i.e., eight bytes) on the F-bus 148 is illustrated as having the seven most significant bytes as X's, which designate don't cares in conventional terminology, and having a D in the least significant byte to illustrate the data to be replicated.
- the output data provided by the replicate circuit 550 onto the M-bus 184 is shown as an eight-byte output data word having a D in each of the eight bytes to indicate that the data byte D has been replicated in all eight bytes. Since the data has been gated onto the M-bus 184, the data can be transferred to a register in the A register file or the B register file in a conventional manner.
- Figure 12 illustrates a preferred implementation of the replicate circuit 550.
- the replicate circuit 550 comprises an eight-bit data buffer 560 that receives the eight bits of data from the eight least significant bits (i.e., bits 0-7) of the F-bus 148 and provides eight buffered output bits.
- the buffered output bits are provided as inputs to eight sets of tri-state bus drivers 570-577.
- Each set of tri-state bus drivers 570-577 comprises eight bus driver gates.
- the tri- state bus drivers 570-577 are advantageously SN74LS244 octal line drivers, available from Texas Instruments Incorporated, or an equivalent circuit.
- each octal line driver 570-577 receives all eight of the buffered output bits from the data buffer 560.
- Each octal line driver 570-577 provides one of the eight output bytes of the replicate circuit 550.
- the eight bits of each octal line driver 570-577 are connected to a respective eight-bit segment of the M-bus 184.
- the eight outputs of the octal line driver 570 are connected to bits 0-7 of the M-bus 184
- the eight outputs of the octal line driver 571 are connected to bits 8-15 of the M-bus 184
- so on such that the eight outputs of the octal line driver 577 are connected to bits 56-63 of the M-bus 184.
- Each of the octal line drivers has a pair of enable inputs, which, when activated by a logic 0 signal, enable the data inputs onto the respective data outputs.
- the enable inputs of each octal line driver 570-577 are connected to a replicate enable line 580, which is connected to the output of the instruction decode circuit 536 (shown in phantom).
- the instruction decode circuit 536 decodes the replicate instruction and activates the replicate enable line 580, the eight bits of data input to the data buffer 560 are replicated in the eight output bytes of the M-bus 184, as discussed above in connection wit Figure 11. Since there is relatively little propagatio delay through the data buffer 560 and the line drivers 570- 577, the replicate instruction is easily accomplished in a single processor instruction cycle.
- module _D8C7L8 flag '-r0';
- X,Z,C .X.,.Z.,.C.;
- ASUBB !UALU2 & !UALUl & UALUO ;
- X,Z,C .X.,.Z.,.C.;
- ZEROA DLHW & ZL ;
- ZEROB DLW & ZL & ZU ;
- JPAL device 'P16R4' JPAL device 'P16R4' ;
- X,Z,C .X.,.Z.,.C.;
- JS [JS2A , JSIA , JSOA] ;
- JCK JCLKA
- MUL MULDIVA ;
- module _KPAL flag '-r0'
- X,Z,C .X.,.Z.,.C.;
- KC KCLKB ;
- KS [KS2B , KS1B , KS0B];
- KL KCLRB ;
- KS [KS2B , KS1B , KSOB] ;
- 0 EN_KOUTB ;
- KL KCLRB ;
- module _KPALS flag '-r0'
- KPALS device 'P16R4'
- X,Z,C .X.,.Z.,.C.;
- KCK KCLKA ;
- KS [KS2A , KS1A , KSOA] ;
- KS [KS2A , KSIA KSOA] ;
- OUT EN KOUTA ;
- module _SH12B5L8 flag ' -r0 ' ;
- SD [ SD1 , SD0 ] ;
- SHCYX SHLEFT & SD1 & SD0 & SHJ63 & SHWAITRQ
- UGR [UGR2 , UGR1 , UGRO ] ;
- UGR [UGR2 , UGR1 , UGR0 ] ;
- X,Z,C .X.,.Z.,.C.;
- UGR [UGR2 , UGR1 , UGR0 ] ;
- GSIGN GCTRSGN ;
- GSIGN GCTRSGN ;
- module _SH12C1L8 flag ' -r0 ' ;
- UDATA [ UDATA3X UDATA2X , UDATAlX , UDATAOX ] ;
- LDK LD SHK
- KS2A !UDATA3X & !UDATA2X & UDATAlX & UDATAOX & SHRIGHTX & !GCTRCY
- KS1B !UDATA3X & !UDATA2X & UDATAlX & UDATAOX & SHLEFT & !GCTRCY
- KS2B !UDATA3X & !UDATA2X & UDATAlX & UDATAOX & SHRIGHTX & !GCTRCY
- UDATA [UDATA3X, UDAGA2X, UDATA1X, UDATA0X]
- LDK LD_SHK
- module _SH11C5L8 flag ' -r0 ' ;
- UDATA [ UDATA3X , UDATA2X , UDATAlX , UDATAOX ] ;
- MDABCD [MULDIVA , MULDIVB , MULDIVC , MULDIVD] ;
- MULDIVA UDATA3X & !UDATA2X & !UDATAlX & UDATAOX & SHLEFT
- MULDIVB UDATA3X & !UDATA2X & !UDATAlX & UDATAOX & SHLEFT
- MULDIVD UDATA3X & !UDATA2X & !UDATAlX & UDATAOX & SHLEFT
- UDATA [ UDATA3X , UDATA2X , UDATAlX , UDATAOX ] ;
- MDABCD [MULDIVA , MULDIVB , MULDIVC , MULDIVD] ;
- module _SH11B3L8 flag ' -r0 ' ;
- X,Z,G .X.,.Z.,.C.;
- SD [ SD1 , SDO] ;
- UDATA [ UDATA3X , UDATA2X , UDATAlX , UDATAOX ] ;
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- Software Systems (AREA)
- General Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- Mathematical Physics (AREA)
- Computational Mathematics (AREA)
- Mathematical Analysis (AREA)
- Mathematical Optimization (AREA)
- Pure & Applied Mathematics (AREA)
- Executing Machine-Instructions (AREA)
- Hardware Redundancy (AREA)
Abstract
A processor is disclosed for use in a computer system for comparing a number of bytes simultaneously in order to locate a particular character in a string of data. The processor includes a register (B) for holding the data bytes, a register (A) for storing the particular character, a comparison circuit (102, 109) for simultaneously comparing the bytes of the first register (B) with the bytes of the second register (A), and a circuit (115, 122) for generating indicator bits when a match has been found between the two registers. Microcode instructions cause the system to branch to a predetermined memory location when the control character has been located and to branch to a second predetermined memory location when no control character is found in the data string. A second portion of the processor finds the indicator bits generated from the circuit (115, 122) which have a predetermined characteristic and thus identifies the position of a particular byte in the data word that has the selected predetermined characteristic. In particular, four instructions are provided which find the first matching byte; the first non-matching byte; the first matching byte after the first non-matching byte: and the first non-matching byte after the first matching byte.
Description
PARALLEL STRING PROCESSOR AND METHOD FOR A MINICOMPUTER
Notice Regarding Copyrighted Subject Matter 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
reducing 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 saving 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 determine whether a particular word, or "keyword," appears in portion of text, current string processors typically, starting at the beginning of the byte string that represents the portion of text, or the "character string," compare the first byte of the keyword with the first byte of the character string. If these two bytes match (the first letter of the keyword matches the first letter in the portion of text), then the processor compares the second byte in the keyword to the second byte in the character string. If these two bytes match, then the processor compares the next pair of bytes in the two strings, and so on. If all of the respective bytes in the two strings match, the processor has found an occurrence of the keyword in the portion of text.
However, the keyword does not usually appear as the first word in the portion of text being searched. Consequently, one of the bytes of the keyword will not match 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 "that":
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:
Comparisons: 31121211111114
Data String: that time is the essence
Keyword: the
Note that this particular example required 21 comparisons to find the keyword "the" in the character string "that time is the essence." In particular, four comparisons were required even where the keyword matched the same word in the character string (the blank space required one comparison).
In other computer applications it is desirable to test bit patterns for the presence of a particular bit string. Examples of such applications are encryption and decryption algorithms used to scramble and unscramble binary information to protect it from unauthorized reception. Such 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 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 required 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.
Summary 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 byte at a time, the processor simultaneously tests each byte in the keyword with a respective byte in the byte string. Thus, only a single comparison is required to determine whether the keyword is present in any portion of the byte string. If the keyword is not present in the portion of the byte string tested, then the processor shifts the byte string with respect to the keyword and then makes a single
comparison of the keyword with the new portion of the byte string. This single-compare-and-test process continues until either the keyword is found or the end of the byte string is reached. As a result of simultaneously testing each byte in the keyword with a respective byte in the byte string, the processing time is kept to an absolute minimum.
In its bit mode of operation, the processor stores a portion of a bit string that is to be tested for the presence of a desired string of bytes in a first register location and the desired keyword in a second register location. The processor simultaneously tests each bit in the keyword with a respective bit in the bit string. As a result of this simultaneous testing, only one comparison is needed to determine whether the keyword is present in the portion of the bit string being tested. If the keyword is not present, the bit string is shifted one bit relative to the keyword and a single comparison of the keyword with the new portion of the bit string is made. This process continues until the keyword is found or until the end of the bit string is reached. Because each bit in the keyword is simultaneously tested with a respective bit in the bit string, only a single comparison is required to determine whether the keyword matches a portion of the bit string, and as a result, processing time is minimized.
Another feature of the invention is the capability of the processor to automatically function either as a parallel bit processor or as a parallel byte processor. When the processor is given a first control signal, the processor functions as a parallel byte processor, and when the processor is given a second control signal, the processor functions as a parallel bit processor. As a result, two separate processors are not required, thus resulting in cost saving that a separate processor would otherwise entail.
Another aspect of the present invention is a set of novel instructions that are particularly useful for testing the outputs of byte comparisons. One such instruction finds
the location of the first byte (i.e., most significant) in a first data word that is identical to the corresponding byte in a second data word. A similar instruction finds the location of the first byte in the first data word that does not match the corresponding byte in the second data word. A third instruction finds the first byte in the first data word that matches the corresponding byte in the second data word so long as the matching byte is less significant than a byte in the first data word that does not match the corresponding byte in the second data word. A fourth instruction finds the first byte in the first data word that does not match the corresponding byte in the second data word so long as the matching byte is less significant than a byte in the first data word that matches the corresponding byte in the second data word. The processor includes novel circuitry to implement these instructions.
In particularly preferred embodiments, the processor includes a replication instruction and associated circuitry that duplicates a single input byte into all the bytes of a multiple byte data word. The replication instruction is particularly useful for comparing an input data string to a predetermined control character or other delimiter.
These and other objects, features, and advantages of this invention will be apparent in view of the following 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
Figures 1 and 2 are block diagrams of two registers of the parallel byte comparison processor;
Figure 3 is a circuit diagram of the comparison circuit of the parallel byte comparison processor;
Figure 4 is a representative instruction sequence of the parallel byte comparison processor;
Figure 5 is a schematic circuit diagram of a parallel string processor in accordance with the invention;
Figure 6 is a detailed circuit diagram of a portion of one embodiment of a shift register in accordance with the invention;
Figure 7 is a detailed circuit diagram of a portion of the parallel string processor of Figure 5;
Figure 8 is a detailed flowchart of the operation of the parallel processor of Figure 5 in its byte mode of operation;
Figure 9 is a detailed flowchart of the operation of the parallel processor of Figure 5 in its bit mode of operation;
Figure 10 is a block diagram illustrating the circuitry to implement instructions to find specific occurrences of hits and misses in the hit register;
Figure 11 is a block diagram illustrating the operation of circuitry to implement a replicate instruction to cause the data in one byte to be replicated in all the bytes of a data word; and
Figure 12 is a logic diagram of the replication circuit of Figure 11 showing a particular implementation of the replication circuit.
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 control character byte 0-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 most significant bytes, respectively, are shown in Fig. 3. The designations within Registers A and B 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 are also shown in Fig. 3 as comprising first and second AND 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 BOO-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 correspσnds 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 "DATA1" 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 DATA1. If the second control character is found in DATA1, 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 required in prior art machines.
A "branch on no-hits" may be utilized as an alternative to the "branch on any hit" instruction, which branches to a memory location if none of the bytes in the data word contain the control character.
When the data is checked for more than one set of characters, the Register A may be reloaded with the characters for each compare sequence. However, to increase the execution speed, reloading the register may be avoided 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 for in the data. For example, if the data is to be searched for
two sets of characters, "EOS" and "CR," a 2-to-1 multiplexer 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 A register matches the byte from the B register. The foregoing embodiment utilizes inverse logic from the illustrative circuit shown in Fig. 3. In the circuit shown in Fig. 3, a zero is generated when the byte pairs match.
A parallel string processor in accordance with another aspect of the invention is shown in Fig. 5. The processor includes a dual register file 120 comprising an A register 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 A register file is shown to include an address register 122, a length register 124, a bit mask register 126, a byte mask register 128, and a test register 130. The address register 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 would equate the word "string" with "spring." The test register 130 contains the desired keyword after it has been masked with the desired byte mask.
The B register file contains a bit count register 132 and a byte count register 134 which, as is explained in more detail hereinafter, determine when the next portion of the data string being tested for the presence of the keyword needs to be fetched from memory. A keyword register 136 contains the binary data string corresponding to the desired keyword, and the end-of-string (END) flag register 138 contains a flag that indicates whether or not a data string 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 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 select circuit 146 is shown functionally (in dotted lines) for purposes of explaining the invention. In reality, the function select circuit 146 is implemented with programmable array logic integrated circuits commercially available from Monolithic Memories, Inc. of Santa Clara, California, that are programmed with many equations that do not facilitate explanation. These equations are, however, included in this specification as Appendix 1, and they completely describe
the actual embodiment of the ALU function select circuit 146.
The ALU comprises 16 separate, 4-bit '381 integrated circuit chips 152. For purposes of clarity, the data inputs of the ALU chips 152 that are connected to the A and B latches 142, 144 have been omitted from Fig. 7, and only the outputs of the chips 152 are shown. Each pair of the chips 152 is connected to a respective multiplexer 154 which supplies the control inputs for the chips 152. Each of the multiplexers 154 either supplies a desired 3-bit FUNCTION signal or a 3-bit CLEAR signal to the control inputs of the pair of chips 152 to which it is connected, depending upon the value of its address signal sent from a register 156 which stores the 8 bits of the byte mask. As explained above, the byte mask causes the processor to ignore certain bytes in the data string being searched so that, for example, the processor would equate the keyword "string" with the word "spring" in the data string, in which case the second bit of the byte mask would be set to logic "1" so that the "p" in "spring" is ignored. Similarly, if it were 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 FUNCTION signal or a CLEAR signal to the chips 152, depending upon whether the value of the particular bit of the byte mask in the register 156 is logic "1" or "0." If the bit in the byte mask is logic "0," the desired 3-bit FUNCTION signal is 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 compare using the exclusive-or function, all the ALU chip outputs will be logic "0," so that in essence a logic "l" 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 has 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 firstt 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 output of the upstream flip-flop. Since the output of the AND gate 202c is passed through its respective OR gate 200 to the input of the downstream flip-flop, the activation of the Sl 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 logic "1" so that the outputs of the AND gates 204 equal the output of the flip-flops to which they are connected and are not affected by the outputs of the NAND gates 206. However, when the BIT MASK ENABLE signal is logic "1" and the corresponding mask input bit is also logic "1," the output of the NAND gate 106 is forced to logic "0," and as a result, the output of the AND gate 204 is also forced to 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 are selectable by the user of the processor. The basic process by which the processor tests for the presence of a selected 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 match is indicated by the processor. Then, the contents of the J and K registers 186, 188 are shifted left one byte and the contents of the J register 186 are again compared with the contents of the test register 130. 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 will be periodically reloaded with the next portion of the data string to be tested. In this manner, the entire keyword is simultaneously compared with a corresponding portion of the data string. This process reduces the number of comparisons required as shown by the example shown below, in which the keyword is "the," the data string is "that time is the essence," and each number above the data string represents the number of comparisons that were required to determine whether or not the keyword matched that particular portion of the data string:
Comparisons: 11111111111111
Data String: that time is the essence
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 shown above. This reduction results from the entire keyword simultaneously being compared with a portion of the data string, instead of being compared one byte at a time.
The detailed operation of the byte mode of the processor is explained with reference Fig. 8 and Table 1. Fig. 8 is a flowchart of the microcode that controls the operation of the processor shown in Fig. 5, and Table 1 includes a software program that is substantially functionally equivalent to the microcode actually used. The operation is explained with reference to Table l 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.
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, the value of the END flag is reset to indicate that the end of the string has not yet been reached. Then, at step 214, the keyword is masked with the bit mask to ensure that the processor ignores any bits in any desired byte as selected 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 sent to the zero detect circuit 150. If the zero detect circuit 150 detects a zero, instruction 33 causes a branch to instruction 7. Instruction 34 saves the decremented value 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:
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.
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." Deεcription of Branch Instructions that utilize Parallel Byte Checking
The above-described branch on any hit (BAH) instruction is particularly advantageous in determining when an input character string contains the byte or bytes in the keyword. Thus, by using the BAH instruction, the software can branch to a location to further process the input string. One of the first items of information that is desirable to determine related to the input string is the location of the first byte that matches the corresponding byte of the keyword. For example, many programs parse input data by searching for certain delimiters (e.g., a space, a comma, a period, a semicolon, or the like). When a delimiter is
found, the software will cause the input data up to the delimiter to be evaluated in accordance with a predetermined rule. Thereafter, the data following the delimiter may be evaluated according to a separate rule. Thus, it is important to know where the delimiter is located in the input string. The conventional manner of finding delimiters is to take the input string and search through it on a character-by-character basis (i.e., a byte-by-byte basis) until the delimiter is found. As set forth above, the parallel byte comparison operation of the present invention substantially reduces the amount of time required by identifying the multiple byte portion of the input string where the byte is located so that the byte-by-byte comparison need only be performed on that portion of the input string where the byte is located. Nevertheless, in a 64-bit computer having word lengths of eight bytes, each of the eight bytes would have to be compared to find the particular byte where the delimiter is located. A further improvement of the present invention comprises four instructions to greatly improve the efficiency of locating the precise byte where the delimiter is located or to find the first byte following the delimiter.
The first instruction to improve the efficiency of the byte location operations is a "find first hit" (FFH) instruction. The FFH instruction operates upon the hit register portion of the processor status register 100 of Figure 2 to identify the first byte in the input data string that is equal to the byte or bytes to which the input data string is being compared. For example, in the case where a single character (such as a control character or a delimiter) is reproduced in all eight bytes of a 64-bit word, and the input data string is being compared to the single character, the FFH instruction will generate an output code that identifies the location of the first byte that is equal to the single character. As a specific example, assume that the ASCII character code for a space
(i.e., the hexadecimal value 2016) is reproduced in all eight bytes of the register A of Figure 2 as follows:
REGISTER A: 2020202020202020
and the following eight-byte portion of an input string, corresponding to "time is ", is loaded into the register B of Figure 2:
REGISTER B: 74696D6520697320
With this input data portion, after performing the exclusive-OR instruction described above, the eight-bit hit register portion of the processor status register 100 of Figure 2 will comprise the following bits:
Hit Register: 1 1 1 1 0 1 1 0
It should be recalled that in accordance with the convention chosen herein, a zero in the hit register portion of the processor status register 100 corresponds to a byte where the input data string matches the comparison byte and a one in the hit register portion of the processor status register 100 corresponds to a byte where the input data string does not match the comparison byte. Thus, there are two zeros in the hit register portion of the processor status register corresponding to the two spaces in the input data string.
Given the foregoing example, the FFH instruction causes a location value of "4" to be generated to indicate that byte 4 of the current portion of the input data string in the register B is the first byte that matches the corresponding byte of the register A. In the preferred embodiment of the present invention, the bytes are numbered from left to right rather than right to left. Thus, "byte 0" refers to the most significant (i.e., leftmost) byte and "byte 7" refers to the least significant (i.e., rightmost) byte in a 64-bit word. It should be noted that this convention is different from the labelling of the bits in which "bit 0" refers to the least significant bit and "bit
63" refers to the most significant bit. This convention also differs from the byte numbering convention illustrated in Figure 3 which refers to the byte number within the register. The choice of conventions relates to the particular application. In the description of the find instructions, the leftmost byte corresponds to the first data received in a string or a string portion and is thus identified as byte 0 since the following bytes are referenced to the first byte.
In the preferred embodiment of the present invention, the value of 4 is stored in a selected register where it is available for subsequent instructions to operate upon the value. For example, the preferred format of the FFH instruction is as follows:
FFH RXX
where Rxx designates a particular register in the computer. As a specific example, the instruction
FFH R27
when operating on the string example and character example set forth above, will cause the value of 4 to be generated and stored in the register 27 of the computer, where the register 27 is the destination for a particular register in the A or B register file of Figure 5.
From the foregoing, it can be seen that when the leftmost (most significant) byte of data in the register B matches the corresponding byte in the register A, a location value of 0 is generated; when the next most significant byte matches a location value of 1 is generated; and so on. Thus, when the rightmost (least significant) bytes matches, a location value of 7 is generated. If none of the bytes compare, then a location value of 8 is generated to indicate that none of the bytes compared. Thus, a four-bit location value or code provides all the information necessary to determine whether there is a hit, and, if there is a hit, the location of the first hit.
The next novel instruction that is used in conjunction with the hit register portion of the processor status register 100 is a "find first miss" (FFM) instruction. The FFM instruction is similar to the FFH instruction; however, as its name implies, it identifies the location of the first byte in the input data string that is not equal to the byte or bytes to which the input data string is being compared. The FFM instruction has utility, for example, in finding the first non-blank character in an input line. As a specific example, assume once again that the register A of Figure 2 is loaded with eight bytes of data representing eight spaces, as follows:
REGISTER A: 2020202020202020
The following eight-byte portion of an input string, corresponding to " ABC ", is loaded into the register B of Figure 2:
REGISTER B: 2020202020414243
With this input data portion, the pertinent eight-bit hit register portion of the processor status register 100 of Figure 2 will comprise the following bits:
Hit Register: 0 0 0 0 0 1 1 1
where a zero again represent s a hit and a one represents a miss. Thus, the location value generated by the FFM instruction will be a "5" to indicate that the first miss is in byte 5.
As with the FFH instruction, the FFM instruction includes a register identifier to designate the register where the location value identifying the byte location of the first miss is to be stored. For example, the instruction:
FFM R23
causes the location value 5 to be stored in the register 23 for the example presented above. Again, a location value
between 0 and 7 designates the location of the first miss. A location value of 8 indicates that there were no misses.
The present invention also includes a "find first miss after first hit" (FFMAFH) instruction that is useful for finding the beginnings or words in a text stream and other similar operations. For example, using the space character as an example, it is often desirable to skip to the next space character to find the end of a word and then skip over the next space character or characters to find the beginning of the next word. The FFMAFH instruction performs this operation as a single instruction. This can be understood by referring again to the original example wherein the register A is loaded with eight space characters as follows:
REGISTER A: 2020202020202020
The register B is again loaded with the string portion corresponding to "time is ", as follows:
REGISTER B: 74696D6520697320
With this input data portion, the pertinent eight-bit hit register portion of the processor status register 100 of Figure 2 will again comprise the following bits:
Hit Register: 1 1 1 1 0 1 1 0
Unlike the FFH hit instruction which generated a location value of 4 corresponding to the zero which indicates the byte where the first space character is located, the FFMAFH instruction causes a location value of 5 to be generated which is the first miss (i.e., first non-blank character) after the first hit. Thus, with the location value generated by the FFMAFH instruction, a text processing program can immediately go to the beginning of the next word without having to methodically search each of the eight bytes in the string portion to find the first blank character and then find the first non-blank character that follows the first blank character.
As with the previous instructions, the full FFMAFH instruction format specifies the register into which the generated value is to be stored as follows:
FFMAFH Rxx
where Rxx is one of the registers in the register file, as discussed above. A location value between 0 and 7 identifies the location of the first miss after the first hit. A location value of 8 indicates that there was no first miss after a first hit.
A similar instruction to the FFMAFH instruction is a "find first hit after first miss" (FFHAFM) instruction. Unlike the FFMAFH instruction, the FFHAFM instruction looks for the first miss in the input string portion and then finds the first hit thereafter. Using the space character as an example, a text processor can advantageously use this instruction to skip from the end of one word to the end of the next word. For example, all eight bytes of the register A is again filled with data representing the blank character as follows:
REGISTER A: 2020202020202020
The register B is loaded with an eight-byte portion of an input data string having the characters " is the " as follows:
REGISTER B: 2069732074686520
With the foregoing data in the register A and the register B, the hit register portion of the processor status register 100 will comprise the following bits:
Hit Regiεter: 0 1 1 0 1 1 1 0
The FFHAFM instruction will cause a value of 3 to be generated indicating the first hit (byte 3) after the first miss (byte 1) in the eight-byte portion of the data string.
As before, the FFHAFM instruction has the format:
FFHAFM Rxx
where Rxx designates a particular register into which the generated value will be loaded. A location value between 0 and 7 identifies the location of the first hit after the first miss. A location value of 8 indicates that there was no first hit after a first miss.
The foregoing find instructions also operate with string portions greater than a byte. For example, in some applications, it is desirable to determine whether a sixteen-bit portion of an input data string is equal to another sixteen-bit data string. In such applications, the find instructions operate on a sixteen-bit (i.e., double byte) basis. For example, assume that the register A is loaded with the following data:
REGISTER A: FE3CFE3CFE3CFE3C
Further assume that the register B is loaded with the following data:
REGISTER B: FE78BC3CFE3C8D56
The hit register portion of the processor status register 100 will comprise the following eight bits:
Hit Register: 0 1 1 0 0 0 1 1
Although there a four bytes with hits, only one sixteen-bit portion of the input data string matches the sixteen-bit pattern in the register A. Thus, the FFH instruction will cause a location value of 4 to be generated to indicate that the sixteen-bit portion that compared starts in byte 4 of the input data string. When the FFH instruction is operating on a double-byte basis, the single byte compares of byte 0 and 3 do not cause a location value to be output. For example, the two compares in a row on bytes 3 and 4 will not cause a location value to be generated because the two bytes are in separate sixteen-bit groups. Since the FFH instruction operates on two-byte
boundaries, the four possible location value outputs are 0, 2, 4 and 6 when a hit occurs and a value of 8 when no hit occurs.
The find instructions also operate on a half-word (four-byte) basis by comparing 32 bits in the comparison register with 32 bits of the input data string. For example, assume that the register A is loaded with the following string:
REGISTER A: 1234567812345678
Further assume that the input data string is loaded into the register B as follows:
REGISTER B: 1234567A12345678
The hit register portion of the processor status register 100 will comprise the following bits:
Hit regiεter: 0 0 0 1 0 0 0 0
The FFH instruction will generate a location value of 4 to indicate that the second 32-bit half-word matches the comparison string. The two possible location value outputs when a hit occurs are 0 and 4 which are the two half-word boundaries. As before, a location value output of 8 indicates that no hit occurred for the two half-words.
The FFH instruction also operates on a full word basis.
When operating on a full word basis, the location value generated by the instruction will either be a 0 to indicate that the entire word matched beginning in byte 0 or an 8 to indicate that the word did not match.
The FFM instruction operates in a similar manner to the FFH instruction on multiple byte lengths.
The FFMAFH and FFHAFM instructions operate on the double-byte length in a manner similar to the operation on a single byte. However, it should be understood that the first miss after a first hit or the first hit after a first miss can only occur in bytes 2, 4 or 6. Thus, the only valid location values generated by these instructions when
operating on double-byte lengths are 2, 4, 6 and 8. With respect to half-words, the only valid location value outputs are 4 and 8, since the first hit or miss after the first miss or hit respectively must necessarily occur in the second half-word beginning in byte 4 or not occur at all. With respect to full word operations, the FFMAFH and FFHAFM instructions always generate a location value of 8 since there can be no miss after a full word hit or a hit after a full word miss.
The foregoing find instructions are implemented as single cycle instructions in the present invention in accordance with the block diagram of Figure 10. For simplification only the pertinent portions of the overall processor are shown. In particular, the processor status register 100 is shown along with a portion of the M-bus 184. The present invention further includes an address buffe circuit 500 that receives the eight bits from the hit register portion of the processor status register 100 via an eight-bit bus 502. (Although described above only with respect to the hit register portion, it should be understood that the processor status register 100 includes other status bits such as a carry bit, an overflow bit, a zero bit and a sign bit, that are conventionally available from the arithmetic logic unit of a processor.) The address buffer 500 further receives four bits from an instruction register 504 (shown in phantom) that latches the operation code data from an instruction memory (not shown) and holds it throughout an instruction cycle. The four bits from the instruction register 504 are labelled as A, B, C and D and are provided as inputs to the address buffer on respective lines 510, 511, 512 and 513. The output of the address buffer 500 comprises twelve bits on an address bus 520 that is provided to the address inputs of a PROM (programmable read only memory) 522. In the preferred embodimen described herein, the PROM 522 is a 4096 word by 4-bit PROM. It can thus be seen that the address input to the PROM 522
comprises eight bits from the hit register portion of the processor status register 100 and four bits from the instruction register 504. Preferably, the least significant eight address bits applied to the PROM 522 comprise the hit register bits and the most significant four bits comprise the four bits from the instruction register 504. Also preferably, the eight bits from the hit register portion of the processor status register 100 are interchanged so that the least significant bit (bit 0) of the hit register is connected to address bit 7 of the PROM 522, bit 1 of the hit register is connected to address bit 6 of the PROM 522, and so on such that bit 7 of the hit register is connected to address bit 0 of the PROM 522. The interconnection of the hit register bits to the address bits of the PROM 522 is a matter of convenience in programming the PROM 522. It should be understood that the particular selection of address bits can be varied so long as the PROM 522 is programmed with the correct data for each address.
The PROM 522 provides four output data bits on a four- bit PROM output bus 530. The PROM output bus 522 is provided as an input to a set of tri-state gates 532. The tri-state gates 532 have outputs that are connected to the M-bus 184. The tri-state gates 532 are enabled via an enable line 534 during the execution of the selected find instruction so that the output bits from the PROM 522 are enabled onto the M-bus 184. The enable line 534 is connected to an output of an instruction decode circuit 536 (shown in phantom) which receives instruction data from the instruction register 504 and provides a plurality of decoded instruction outputs, one of which is the output on the enable line 534. The enable output on the line 534 is activated when the operation code corresponding to the find instructions is decoded by the instruction decode circuit 536.
The data on the M-bus 184 is transferred to a selected register via the buffer 170 and the A-bus 168 or via the
buffer 174 and the B-bus 172 in a conventional manner in accordance with the destination register portion of the find instruction, as discussed above.
The four most significant address bits to the PROM 522 from the instruction register 502 are responsive to the particular find instruction and to the data length of the compares, as discussed above. Bits A and B, the two most significant pair of bits from the instruction register 502, define the particular find instruction as follows:
Bit A Pit B Instruction
0 0 FFH
0 1 FFM
1 0 FFMAFH
1 1 FFHAFM
The second pair of bits from the instruction register, bits C and D, define the groupings of the data strings for finding the hits or the misses as follows:
Bit C Bit D Group Length
0 0 One Byte
00 11 Two Bytes
1 0 Four Bytes (half word)
1 1 Eight Bytes (full word)
Thus, the entire memory area of the PROM 522 can be considered as being divided into four major groups with the addresses 000-3FF (hexadecimal) defining the memory locations for the FFH instruction, the addresses 400-7FF defining the memory locations for the FFM instruction, the addresses 800-BFF defining the memory locations for the FFMAFH instruction, and the addresses COO-FFF defining the memory locations for the FFHAFM instruction. Within each group of memory locations, the bits C and D define the memory locations for the various byte groupings. For example, for the FFH instruction, the memory locations 000- 0FF define the memory locations for the single byte FFH instruction, the memory locations 100-lFF define the memory
locations for the two byte FFH instructions, the memory locations 200-2FF define the memory locations for the half word (four byte) FFH instructions, and the memory locations 300-3FF define the memory locations for the full word instructions. Similar groupings are provided for each of the FFM, FFMAFH and FFHAFM instructions.
As can be seen from the foregoing, each of the four byte groupings for each of the four instructions comprises 256 memory locations. The 256 memory locations correspond to each of the 256 possible combinations of the eight bits from the hit register as provided by the eight least significant address bits to the PROM 522. Thus, the PROM 522 provides a unique four-bit output for each combination of data from the hit register for each byte grouping for each of the four instructions. The data programmed into the PROM 522 can be readily determined in accordance with the above-described rules for generating the location values for each instruction and each byte grouping. For convenience, Appendix 3 provides a data listing for the 4096 addresses of the PROM 522 programmed in accordance with the above- described rules. In order to more clearly understand the PROM programming and the data conventions, a portion of the PROM listing for the addresses 000-OOF for the single byte FFH instruction is shown below:
For compactness, only the hexadecimal codes for the addresses are shown in Appendix 3. However, the conversion from the hexadecimal codes to the individual bits is readily accomplished, as illustrated above.
Before discussing the PROM programming in detail, it should be again noted that the hit register bits have been reversed in the PROM addresses set forth above so that the least significant bit of the PROM address corresponds to the most significant bit of the hit register. Furthermore, it is again noted that a hit is represented in the foregoing hit register bits as a zero. Thus, address 000 above corresponds to all eight bytes of the two eight byte data strings being equal. On the other hand, address 00F corresponds to the least significant four bytes being equal (as represented by the zeros) and the four most significant bytes not being equal. Similarly, the address 001 corresponds to the most significant byte not being equal and the seven least significant bytes being equal. Thus, for example, it can be seen that the address 007 produces an location value output of "3" to indicate that byte 3 of the input string is the first byte to be equal to the corresponding byte in the comparison string.
A similar listing for the first sixteen addresses for the single byte FFM instruction is set forth below:
It should be noted that the location value output corresponding to the address 400 is an 8 to indicate that there were no misses. The location value outputs for the other addresses indicate the location of the first one counting from the right, thus corresponding to the first byte of the input string that is not equal to the corresponding byte of the comparison string.
As set forth above, the remaining programming of the PROM 522 can be determined in accordance with the above- described rules and can be verified in Appendix 3.
Since the PROM 522 is responsive to the change in the input addresses in accordance with the instruction in the instruction register 502 and in accordance with the hit register portion of the processor status register 100, the data output from the PROM 522 can readily be provided in a single instruction cycle. Thus, it can be seen that a single find instruction quickly identifies a particular byte in an input string compared to the many instructions required in a conventional processor.
Although described above in connection with a 64-bit processor, it should be understood that the find instructions can be used with processors having more or fewer bits per word with suitable alterations in the circuitry to accommodate the different numbers of bits.
Description of Replicate Instruction
As set forth above, in many of the operations performed with the above-described parallel byte processor utilize a repeated character in all eight bytes of a particular register. Although there are known apparatus and method for duplicating the data in all eight bytes, such as using shift and OR instructions, the present invention provides a novel replicate instruction that inserts the same data in all eight bytes in a single instruction cycle.
The novel apparatus for replicating a single byte of data into all eight bytes of the 64-bit word is illustrated in Figure 11. The replication apparatus comprises a replication circuit 550 that has an input connected to receive eight bits (one byte) of data from the F-bus 148 and that generates 64 bits (eight bytes) of data as an output to the M-bus 184. Preferably, the eight bits of input data from the F-bus 148 comprise the eight least significant bits of the F-bus 148 and thus comprise the eight least significant bits of the selected source that is enabled onto the F-bus 148. For example, the data on the F-bus 148 can advantageously be the output of one of the registers in the A register file or the B register file gated through the ALU 140 of Figure 5, or alternatively, can be data from the M-bus 184. The 64 bits of output data generated by the replicate circuit 550 are gated onto the M-bus 184 in response to an active signal on an enable line 552, which is connected to an output of the instruction decode circuit 536 (shown in phantom). The instruction decode circuit 536 decodes the instruction data from the instruction register 504 (Figure 10) and enables the enable line 552 whenever the operation code for the replicate instruction appears in the instruction register 504. Preferably, as illustrated in Figure 12, the output circuits of the replicate circuit are tri-state output circuits that enable data onto the M-bus 184 whenever the enable line 552 is active.
The operation of the replicate circuit is illustrated pictorially in Figure 11, wherein a first data word (i.e., eight bytes) on the F-bus 148 is illustrated as having the seven most significant bytes as X's, which designate don't cares in conventional terminology, and having a D in the least significant byte to illustrate the data to be replicated. The output data provided by the replicate circuit 550 onto the M-bus 184 is shown as an eight-byte output data word having a D in each of the eight bytes to indicate that the data byte D has been replicated in all
eight bytes. Since the data has been gated onto the M-bus 184, the data can be transferred to a register in the A register file or the B register file in a conventional manner.
Figure 12 illustrates a preferred implementation of the replicate circuit 550. As illustrated, the replicate circuit 550 comprises an eight-bit data buffer 560 that receives the eight bits of data from the eight least significant bits (i.e., bits 0-7) of the F-bus 148 and provides eight buffered output bits. The buffered output bits are provided as inputs to eight sets of tri-state bus drivers 570-577. Each set of tri-state bus drivers 570-577 comprises eight bus driver gates. For example, the tri- state bus drivers 570-577 are advantageously SN74LS244 octal line drivers, available from Texas Instruments Incorporated, or an equivalent circuit. As illustrated, each octal line driver 570-577 receives all eight of the buffered output bits from the data buffer 560. Each octal line driver 570-577 provides one of the eight output bytes of the replicate circuit 550. Thus, the eight bits of each octal line driver 570-577 are connected to a respective eight-bit segment of the M-bus 184. For example, the eight outputs of the octal line driver 570 are connected to bits 0-7 of the M-bus 184, the eight outputs of the octal line driver 571 are connected to bits 8-15 of the M-bus 184, and so on, such that the eight outputs of the octal line driver 577 are connected to bits 56-63 of the M-bus 184.
Each of the octal line drivers has a pair of enable inputs, which, when activated by a logic 0 signal, enable the data inputs onto the respective data outputs. The enable inputs of each octal line driver 570-577 are connected to a replicate enable line 580, which is connected to the output of the instruction decode circuit 536 (shown in phantom). Thus, when the instruction decode circuit 536 decodes the replicate instruction and activates the replicate enable line 580, the eight bits of data input to
the data buffer 560 are replicated in the eight output bytes of the M-bus 184, as discussed above in connection wit Figure 11. Since there is relatively little propagatio delay through the data buffer 560 and the line drivers 570- 577, the replicate instruction is easily accomplished in a single processor instruction cycle.
Although the foregoing embodiments of the present invention have been described in connection with a 64-bit data width, it should be understood that the same advantages can be provided in machines having more or fewer bits per data word (e.g., 16-bit, 32-bit and 128-bit parallel processors). 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.
module _D8C7L8 ; flag '-r0';
title
'PAL16L8 PAL DESIGN SPECIFICATION
D8C7L8 U186 UN JAN 21, 1987
ALU FUNCTION SELECT BYTE 0, 1
DAVIN COMPUTER IRVINE, CALIFORNIA
-Translated by TOABEL- ' ;
D8C7L8 device 'P16L8 ' ;
"declarations
TRUE,FALSE = 1,0;
H,L = 1,0;
X,Z,C = .X.,.Z.,.C.;
GND,VCC
pin 10,20;
UALU0,UALU1,UALU2,WS0 ,WS1,DLB, ! ICMPR, !UDIV, SHCY,UAS
pin 1,2,3,4,5,6,8,9,11,7;
S0B1,S2B0
pin 12,19;
!ASUBB,ALUSUB, S2B1, S1B1, S1B0 , SOB0
pin 13,14,15,16,17,18;
equations
!S0B0 = !UALUO & !UDIV & !ICMPR
# JUALUO & !UDIV & ICMPR & !WS0
# WSO & !UDIV & ICMPR ;
"
!S1B0 = !UALU1 & !UDIV & !ICMPR
# !UALUl & !UDIV & ICMPR & !WS1
# WSO & !UDIV & ICMPR
# UDIV & !SHCY & !ICMPR ;
!S2B0 = !UALU2 & !UDIV & !ICMPR
# !UALU2 & !UDIV & ICMPR & !WS2
# WS2 & !UDIV & ICMPR
# UDIV & ! ICMPR ;
ASUBB = !UALU2 & !UALUl & UALUO ;
"UDIV => CONTROL FUNCTION SHT GROUP DIV
"ICMPR => INSTRUCTION STATUS UPDATE CLASS 3 , 4 OR MATCH ONLY
!S0B1 = !UALUO & !UDIV & ! ICMPR
# !UALUO & !UDIV & ICMPR & !WS0
# WSO & !UDIV & ICMPR
# DLB & !UAS & ! ICMPR ;
!S1B1 = !UALU1 & !UDIV & ! ICMPR
# IUALU1 & !WS1 & !UDIV & ICMPR
# WS1 & !UDIV & ICMPR
# UDIV & !SHCY & ! ICMPR
# DLB & !UAS & !ICMPR ;
!S2B1 = !UALU2 & !UDIV & !ICMPR
# JUALU2 & !WS2 & !UDIV & ICMPR
# WS2 & !UDIV & ICMPR
# UDIV & !ICMPR
# DLB & !UAS ;
!ALUSUB = UALU2
# !UALU2 & !UALU1 & !UALU0
# !UALU2 & UALU1 & UALU0 ;
"UDIV => CONTROL FUNCTION SHT GROUP DIV "ICMPR => INSTRUCTION STATUS UPDATE CLASS 3, 4 end _D8C7L8;
module _D13C3R4; flag '-r0';
title
'PAL16R4 PAL DESIGN SPECIFICATION
D13C3R4 U29 UN MAY 23 , 1987
Z, U BIT (PSR, USR)
DAVIN COMPUTER IRVINE, CALIFORNIA
-Translated by TOABEL-';
D13C3R4 device 'P16R4';
"declarations
TRUE,FALSE = 1,0;
H,L = 1,0;
X,Z,C= .X.,.Z.,.C.;
vcc
pin 20;
C1B, !FDPSR,F14, !ZL, !ZU, !UPDUSR, !UPDBZ, ! ENUSET,UDATA3 pin 1,2,3,6,7,8,9,4,5;
!ZERO, !USRZI,U,USRZ,ZBIT
pin 13,14,15,16,17;
!UPDCZ, !RSTD,F32
pin 12,18,19;
equations
!ZBIT := UPDBZ & !ZERO & !FDPSR
# FDPSR & !F14
# UPDCZ & ZERO & !ZBIT & !FDPSR
# UPDCZ & .ZERO & ZBIT & !FDPSR
# !UPDBZ & !FDPSR & !UPDCZ & !ZBIT ;
!USRZ := UPDUSR & .ZERO
# JUPDUSR & !USRZ ;
USRZI := UPDUSR & ZERO
# !UPDUSR & USRZI ;
!U := FDPSR & !F32 & !U
# ENUSET & !UDATA3
# RSTD
# ! FDPSR & !RSTD & ! ENUSET & !U ;
end _D13C3R4 ;
module _D13B4L8; flag '-r0';
title
'PAL16L8 PAL DESIGN SPECIFICATION
D13B4L8 U27.U53 UN FEB 27, 1988
N BIT (HALF WORD, WORD) MICRO N
DAVIN COMPUTER IRVINE, CALIFORNIA
-Translated by TOABEL-' ;
D13B4L8 device 'P16L8';
"declarations
TRUE, FALSE = 1,0;.
H,L = 1,0;
X , Z , C = .X. ,.Z.,.C.;
GND,VCC
pin 10,20;
DLW, F63 ,AL63 , BL63 , COUT, DLHW, F31,AL31 , BL31, CIN32
pin 1,2,3,4,5,6,7,8,9,11;
!UNA, !UNB
pin 12,19;
!ASUBB , ! ZEROA, !ZEROB ,N_C , ! ZU, ! ZL
pin 13,14,15,16,17,18;
equations
enable UNA = DLHW ;
UNA = !AL31 & BL31 & ASUBB
# !AL31 & !BL31 & !CIN32 & !ZL & ASUBB
# AL31 & BL31 & CIN32 & !ZL & ASUBB
# F31 & !ASUBB ;
"PIN 12
enable UNB = DLW ;
UNB = !AL63 & BL63 & ASUBB
# !AL63 & !BL63 & ! COUT & !ZL & !ZU & ASUBB
# AL63 & BL63 & COUT & !ZL & !ZU & ASUBB
# F63 & !ASUBB ;
enable ZEROA = DLHW ;
ZEROA = DLHW & ZL ;
enable ZEROB = DLW ;
ZEROB = DLW & ZL & ZU ;
"PIN 19
" SAME EQ AS B, DB
end D13B4L8 ;
module _JPAL; flag ' -r0 ' ;
title
'PAL16R4 PAL DESIGN SPECIFICATION
JPALR4 PAO AUG 07, 1986
SHIFTER J NUMBER 0 OF 31 (START WITH 0)
*** APPLY TO ALL SHIFTER J 16R4 ****
DAVIN COMPUTER IRVINE CALIFORNIA
-Translated by TOABEL- ' ;
JPAL device 'P16R4' ;
"declarations
TRUE,FALSE = 1,0;
H,L = 1,0;
X,Z,C = .X.,.Z.,.C.;
vcc
pin 20;
JCLKA,JSOA,JS1A,JS2A,EN_JOUTA, !MULDIVA,JOSL, SHJ02, SHK56 pin 1,2,3,4,5,6,7,8,9;
SHJ00,SHJ01,M0,M1
pin 14,15,16,17;
G,SHK57,B0,B1
pin 11,12,18,19;
JS = [JS2A , JSIA , JSOA] ;
JCK = JCLKA;
OUT = EN_JOUTA ;
MUL = MULDIVA ;
equations
enable B1 = EN_JOUTA ;
!B1 = !JS2A & JSOA & !SHJ01 & !MULDIVA
# JSIA & JSOA & !M1 & !MULDIVA
# JSIA & !JSOA & !SHJOl & !MULDIVA
# !JS2A & JSIA & !JSOA & !SHJOO & MULDIVA
# JS2A & JSIA & !JSOA & !SHJ02 & MULDIVA
# JS2A & JSIA & JSOA & !SHJOl & !MULDIVA
# JSIA & JSIA & JSOA & !M1 & !MULDIVA ;
"OUT J.BIT SCAN
"BIT,BYT SCN /(MSK*SHJ01)
"SHL J, SHR J
"DIV
"MUL
"BYT SCAN
enable B0 = EN_JOUTA ;
!BO = !JS2A & JSOA & !SHJOO & !MULDIVA
# JSIA & JSOA & !MO & !MULDIVA
# JSIA & !JSOA & !SHJOO & !MULDIVA
# !JS2A & JSIA & !JSOA & !JOSL & MULDIVA
# JS2A & JSIA & !JSOA & !SHJOl & MULDIVA
# JS2A & JSIA & JSOA & !SHJOO & !MULDIVA
# JSIA & JSIA & JSOA & IMO & !MULDIVA ;
"OUT J,BIT, BYT SCAN
"BIT,BYT SCN /(MSK*SHJ00)
"SHL J, SHR J
"DIV
"MUL
"BYT SCAN
IM1 := JS2A & !JSIA & JSOA & !B1
# !JS2A & !M1
# JSIA & !Ml
# !JSOA & !M1 ;
"LD MASK
"(ALL OTHER
"CASE EQ
"TO /Ml)
!MO := JS2A & !JSlA & JSOA & !BO
# !JS2A & !MO
# JSIA & !MO
# !JSOA & !MO ;
"LD MASK
"(ALL OTHER
"CASE EQ
"TO /MO)
!SHJOl := !JS2A & !JSIA & !SHJ01
# !JS2A & JSIA & !SHJ00
# JS2A & !JSIA & !JSOA & !B1
# JS2A & !JSIA & JSOA & !SHJ01
# JS2A & JSIA & !JSOA & !SHJ02
# JS2A & JSIA & JSOA & !SHK57 ;
"HOLD J, OUT J
"SHL J, BIT SCAN
"LOAD J
"LD MSK,
"SHR J
"BYT SCAN
!SHJ00 := !JS2A & !JSIA & !SHJ00
# !JS2A & JSIA & !JOSL
# JS2A & !JSIA & !JSOA & !B0
# JS2A & !JSIA & JSOA & !SHJ00
# JS2A & JSIA & !JSOA & !SHJ01
# JS2A & JSIA & JSOA & !SHK56 ;
"HOLD J, OUT J
"SHL J, BIT SCAN
"LOAD J
"LD MSK,
"SHR J
"BYT SCAN
" JS = [JS2A , JSIA , JSOA] " JCK = JCLKA;
" OUT = EN_JOUTA ;
" MUL = MULDIVA ;
title
'PAL20R4 PAL DESIGN SPECIFICATION
KPALR4 PAO OCT 29, 1986
SHIFTER K NUMBER 15 OF 15 (START WITH 0) *** APPLY TO SHK 2 TO 15 ****
DAVIN COMPUTER IRVINE CALIFORNIA
-Translated by TOABEL- ' ;
KPAL device 'P20R4';
"declarations
TRUE, FALSE = 1,0;
H,L = 1,0;
X,Z,C = .X.,.Z.,.C.;
VCC
pin 24;
KCLKB, !KSOB, !KSIB, !KS2B, !EN_KOUTB, !KCLRB
pin 1,2,3,4,5,6;
SHK59 ,K63SR, SHK55 , SHK54 , SHK53 , G, SHK52
pin 7,8,9,10,11,13,14;
SHK60 , SHK61 , SHK62 ,SHK63
pin 17,18,19,20;
B60,B61,B62,B63
pin 15,16,21,22;
KC = KCLKB ;
KS = [KS2B , KS1B , KS0B];
0 = EN_KOUTB ;
KL = KCLRB ;
K63 = SHK63
K62 = SHK62
K61 = SHK61
K60 = SHK60
K59 = SHK59
SR = K63SR
K55 = SHK55
K54 = SHK54
K53 = SHK53
K52 = SHK52
BIN = [B63,B62,B61 B60];
BOUT = [B63,B62,B61 B60];
equations
enable B63 = EN_ KOUTB ;
!B63 = !SHK63 & !KCLRB
# KCLRB ;
"OUT K
enable B62 = EN KOUTB
!B62 = !SHK62 & !KCLRB
# KCLRB ;
"OUT K
enable B61 = EN_KOUTB ;
!B61 = !SHK61 & !KCLRB
# KCLRB ;
"OUT K
enable B60 = EN_KOUTB ;
!B60 = !SHK60 & !KCLRB
# KCLRB ;
"OUT K
!SHK63 := !KSOB & !SHK63
# !KS2B & !KS1B & KSOB & !B63
# !KS2B & KS1B & KSOB & !SHK62
# KS2B & !KS1B & KSOB & !K63SR
# KS2B & KS1B & KSOB & !SHK55 ;
"HOLD PRESERVED
"LOAD K
"SH K LEFT
"SH K RIGHT
"BYT SCAN, SH K LEFT BYT
"K CLEAR
!SHK62 := !KSOB & !SHK62
# !KS2B & !KSIB & KSOB & !B62
# !KS2B & KS1B & KSOB & !SHK61
# KS2B & !KSIB & KSOB & !SHK63
# KS2B & KS1B & KSOB & !SHK54
"HOLD K,RESERVED
"LOAD K
"SH K LEFT
"SH K RIGHT
"BYT SCAN, SH K LEFT BYT
"K CLEAR
!SHK61 := !KSOB & !SHK61
# !KS2B & !KSIB & KSOB & !B61
# !KS2B & KS1B & KSOB & !SHK60
# KS2B & !KSIB & KSOB & !SHK62
# KS2B & KS1B & KSOB & !SHK53
"HOLD K,RESERVED
"LOAD K
"SH K LEFT
"SH K RIGHT
"BYT SCAN, SH K LEFT BYT
"K CLEAR
!SHK60 := !KSOB & !SHK60
# !KS2B & !KS1B & KSOB & !B60
# !KS2B & KS1B & KSOB & !SHK59
# KS2B & !KSIB & KSOB & !SHK61
# KS2B & KS1B & KSOB & !SHK52
"HOLD K,RESERVED
"LOAD K
"SH K LEFT
"SH K RIGHT
"BYT SCAN, SH K LEFT BYT
"K CLEAR " KC = KCLKB ;
" KS = [KS2B , KS1B , KSOB] ; " 0 = EN_KOUTB ;
" KL = KCLRB ;
" K63 = SHK63
" K62 = SHK62
" K61 = SHK61
" K60 = SHK60
" K59 = SHK59
" SR = K63SR
" K55 = SHK55
" K54 = SHK54
" K53 = SHK53
" K52 = SHK52
" BIN = [B63,B62,B61 B60]; " BOUT = [B63. B62, B61 B60];
title
'PAL16R4 PAL DESIGN SPECIFICATION
KPALSR4 PAO OCT 29, 1986
SHIFTER K NUMBER 0 OF 15 (START WITH 0) >>> APPLY TO SHK 0 & 1 <<<
DAVIN COMPUTER IRVINE CALIFORNIA
-Translated by TOABEL- ' ;
KPALS device 'P16R4' ;
"declarations
TRUE,FALSE = 1,0;
H,L = 1,0;
X,Z,C = .X.,.Z.,.C.;
vcc
pin 20;
KCLKA, !KSOA, !KSIA, !KS2A, !EN_KOUTA, !KCLRA,KOSL,SHK04
pin 1,2,3,4,5,6,7,8;
SHK00, SHK01, SHK02, SHK03
pin 14,15,16,17;
G,B0 ,B1,B2,B3
pin 11,12,13,18,19;
KCK = KCLKA ;
KS = [KS2A , KS1A , KSOA] ;
OUT = EN KOUTA ;
CLR = KCLRA ;
SK0 = SHK00;
SKI = SHK01;
SK2 = SHK02;
SK3 - SHK03 equations
enable B3 = EN_KOUTA ;
!B3 = !SHK03 & !KCLRA
# KCLRA ;
"OUT K
enable B2 = EN_KOUTA ;
!B2 = !SHK02 & !KCLRA
# KCLRA ;
"OUT K
enable B1 = EN_KOUTA ;
. !B1 = !SHK01 & !KCLRA
# KCLRA ;
"OUT K
enable B0 =EN_KOUTA
!B0 = !SHK00 & ! KCLRA
# KCLRA ;
"OUT K
!SHK03 := !KSOA & !SHK03
# !KS2A & !KSIA & KSOA & !B3
# !KS2A & KSIA & KSOA & !SHK02
# KS2A 6= !KSIA & KSOA & !SHK04
# KS2A & KSIA & KSOA ;
"HOLD K,RESERVED
"LOAD K
"SH K LEFT
"SH K RIGHT
"BYT SCAN 0 IN
"K CLEAR
!SHK02 := !KSOA & !SHK02
# !KS2A & !KSIA & KSOA & !B2
# !KS2A & KSIA & KSOA & !SHK01
# KS2A & !KSIA & KSOA & !SHK03
# KS2A & KSIA & KSOA ;
"HOLD K,RESERVED
"LOAD K
"SH K LEFT
"SH K RIGHT
"BYT SCAN 0 IN
"K CLEAR
!SHK01 := !KSOA & !SHK01
# !KS2A & !KSIA & KSOA & !B1
# !KS2A & KSIA & KSOA & ! SHK00
# KS2A & !KSIA & KSOA & !SHK02
# KS2A & KSIA & KSOA ;
"HOLD K,RESERVED
"LOAD K
"SH K LEFT
"SH K RIGHT
"BYT SCAN 0 IN
"K CLEAR
! SHKOO := !KSOA & ! SHKOO
# !KS2A & !KSIA & KSOA & !BO
# !KS2A & KSIA & KSOA & !KOSL
# KS2A & !KSIA & KSOA & !SHK01
# KS2A & KSIA & KSOA ;
"HOLD K,RESERVED
"LOAD K
"SH K LEFT
"SH K RIGHT
"BYT SCAN 0 IN
"K CLEAR
" KCK = KCLKA ;
" KS = [KS2A , KSIA KSOA] ; " OUT = EN KOUTA ;
" CLR = KCLRA ;
" SK0 = SHK00
" SKI = SHK01
" SK2 = SHK02
" SK3 = SHK03
module _SH12B5L8 ; flag ' -r0 ' ;
title
'PAL16L8 PAL DESIGN SPECIFICATION .
SH12B5L8 PAO MAY 05, 1986
SHIFTER CARRY GENERATOR
DAVIN COMPUTER IRVINE CALIFORNIA
-Translated by TOABEL-';
SH12B5L8 device 'P16L8';
"declarations
TRUE,FALSE = 1,0;
H,L = 1,0;
X., Z , C = .X.,.Z.,.C.;
GND,VCC
pin 10,20;
!SHRIGHTX, !SHLEFT,SD1,SD0, !SHWAITRQ, ! SHF_OP, SHKOO , !MUL, !LONG, SHJOO pin 1,2,3,4,5,6,7,8,9,11;
!SHCYX
pin 12;
SHJ07,SHJ15,SHJ31,SHJ63, !UCY
pin 13,14,15,16,18;
SR = SHRIGHTX ;
SL = SHLEFT ;
J63 = SHJ63
J31 = SHJ31
J15 = SHJ15
J7 = SHJ07
J0 = SHJ00
K0 = SHK00
SD = [ SD1 , SD0 ] ;
equations
SHCYX = SHLEFT & SD1 & SD0 & SHJ63 & SHWAITRQ
# SHLEFT & SD1 & I SD0 & SHJ31 & SHWAITRQ
# SHLEFT & ISD1 & SDO & SHJ15 & SHWAITRQ
# SHLEFT & ISD1 & ISD0 & SHJ07 & SHWAITRQ
# SHRIGHTX & ILONG & IMUL & SHJ00 & SHWAITRQ
# SHRIGHTX & ILONG & MUL & SHK00 & SHWAITRQ
# SHRIGHTX & LONG & SHK00 & SHWAITRQ;
"WORD & LONG LEFT
"HWORD LEFT
"DBYTE LEFT
"BYTE LEFT
"NOT LONG RIGHT NOT MUL
"NOT LONG RIGHT MUL
"LONG RIGHT
" ALL OF ABOVE ALSO QUALIFIED BY SHWAITRQ
" SR = SHRIGHTX ; " SL = SHLEFT ;
" J63 = SHJ63
" J31 = SHJ31
" J15 = SHJ15
" J7 = SHJ07
" J0 = SHJ00
" SD = [ SD1 , SD0 ] ; " K0 = SHK00 ;
modu l e _SH12B7R4; flag -r0' ;
title
' PAL16R4 PAL DESIGN SPECIFICATION
SH12B7R4 PAO MAY 12, 1987.
BEGIN OF SHIFTER OPERATION INDICATER DAVIN COMPUTER IRVINE CALIFORNIA
-Translated by TOABEL- ' ;
SH12B7R4 device 'P16R4' ;
"declarations
TRUE, FALSE = 1,0;
H,L = 1,0;
X, Z, C = .X.,.Z.,.C,;
VCC
pin 20;
C2SHB, ! SHRIGHTX,UGR2 ,UGR1 ,UGR0, !UDATAOX, !UDATA1X, !UDATA2X, !UDATA3X pin 1,2,3,4,5,6,7,8,9;
! SHF_OP , !SHCYX, !SHCYXD , DIVTST
pin 17,16,15,14 ;
G, !GCTRCY, !JOSLB, !SHCY,C2SHBX
pin 11,12,13,18,19;
C2 = C2SHB ;
UGR = [UGR2 , UGR1 , UGRO ] ;
equations
DIVTST := !GCTRCY & JOSLB
# GCTRCY & DIVTST ;
SHCYX := SHCY ;
SHCYXD := !UGR2 & UGR1 & UGR0 & SHCYX
# ! ( !UGR2 & UGR1 & UGR0 ) & SHCYXD ;
" WHEN IN SHIFTER GROUP UPDATE SHCYXD
" WHEN NOT IN SHIFTER GROUP HAVE SHCYXD THE SAME
SHF_OP := !UGR2 & UGR1 & UGR0 ;
C2 = C2SHB ;
UGR = [UGR2 , UGR1 , UGR0 ] ;
module _SH11C7L8; flag '-r0';
title
'PAL16L8 PAL DESIGN SPECIFICATION
SH11C7L8 PAO AUG 08, 1986
SHIFTER ENABLE, DIRECTION & DATA LENGTH CONTROL
DAVIN COMPUTER IRVINE CALIFORNIA
-Translated by TOABEL- ' ;
SH11C7L8 device 'P16L8';
"declarations
TRUE,FALSE - 1,0;
H,L = 1,0;
X,Z,C = .X.,.Z.,.C.;
GND,VCC
pin 10,20;
UGR2 ,UGR1 ,UGR0 ,MEQ1 ,UDATA5 ,UDATA4 , GCTRSGN,I5,I4,UDTO
pin 1,2,3,4,5,6,7,8,9,11;
! SHLEFT, !SHRIGHTY
pin 12,19;
UDT1 ,UDT2 , SDO , SD1 , ! SHRIGHTX, ! EN_SHIF
pin 13,14,15,16,17,18;
UGR = [UGR2 , UGR1 , UGR0 ] ;
SHR = [SHRIGHTX , SHRIGHTY ] ;
SHL = SHLEFT ;
GSIGN = GCTRSGN ;
UDT = [UDT2,UDT1,UDT0];
equations
"COMMENT: SDO, SD1 ARE DECODED FROM U-CODE TO INDICATE THE
" DATA LENGTH.
"
" SD1 SDO LENGTH
" ---------------------------- " 0 0 BYTE
" 0 1 DBYTE
" 1 0 HWORD
" 1 1 WORDe
EN_SHIF = !UGR2 & UGR1 & UGR0 & !MEQ1 ;
"EN SHJK
SHRIGHTX = !UGR2 & UGR1 & UGR0 & !MEQ1 & UDATA5 & !UDATA4
# !UGR2 & UGR1 & UGR0 & !MEQ1 & !UDATA5 & UDATA4 & !GCTRSGN ;
"EN SHJK
"DIR RIGHT
SHRIGHTY = !UGR2 & UGR1 & UGR0 & !MEQ1 & UDATA5 & !UDATA4
# !UGR2 & UGR1 & UGR0 & !MEQ1 & !UDATA5 & UDATA4 & !GCTRSGN ;
"EN SHJK
"DIR RIGHT
SHLEFT = !UGR2 & UGR1 & UGR0 & !MEQ1 & UDATA5 & UDATA4
# !UGR2 & UGR1 & UGR0 & !MEQ1 & IUDATA5 & UDATA4 & GCTRSGN ;
"EN SHJK
"DIR LEFT
! SDO = !UGR2 & UGR1 & UGR0 & !MEQ1 & !UDT2 & UDT1 & !UDT0
# !UGR2 & UGR1 & UGR0 & !MEQ1 & UDT2 & I5 & !14
# !UGR2 & UGR1 & UGR0 & !MEQ1 & !UDT2 & !UDT1 & !UDT0
# !UGR2 & UGR1 & UGR0 & !MEQ1 & UDT2 & !15 & !14 ;
"NOT HWORD
"& BYTE
!SD1 = !UGR2 & UGR1 & UGR0 & !MEQ1 & !UDT2 & !UDT1 & UDT0
# !UGR2 & UGR1 & UGR0 & !MEQ1 & UDT2 & !15 & I4
# !UGR2 & UGR1 & UGR0 & !MEQ1 & !UDT2 & !UDT1 & !UDT0
# !UGR2 & UGR1 & UGR0 & !MEQ1 & UDT2 & !15 & !I4 ;
"NOT DBYTE
"& BYTE " UGR = [UGR2 , UGR1 , UGR0 ] ;
" SHR = [SHRIGHTX , SHRIGHTY ]
" SHL = SHLEFT ;
" GSIGN = GCTRSGN ;
" UDT = [UDT2,UDT1,UDT0] ;
title
'PAL16L8 PAL DESIGN SPECIFICATION
SH12C1L8 PAO AUG 08, 1986
SHIFTER K FUNCTION CONTROL
DAVIN COMPUTER IRVINE CALIFORNIA
-Translated by TOABEL- ' ;
SH12C1L8 device 'P16L8';
"declarations
TRUE, FALSE = 1,0;
H,L = 1,0;
X, Z, C = .X.,.Z.,.C,;
GND,VCC
pin 10,20;
! SHLEFT, ! SHRIGHTX, ZFG, ! GCTRCY
pin 1,2,3,4;
!UDATAOX, !UDATAlX, !UDATA2X, !UDATA3X, !LD_SHK, !EN_SHIF
pin 5,6,7,8,9,11;
IKSIB, !KSIA
pin 12,19;
!KS2B, !KS2A, !KSOB, !KSOA
pin 15,16,17,18;
SL = SHLEFT ;
SR = SHRIGHTX
GC = GCTRCY ;
UDATA = [ UDATA3X UDATA2X , UDATAlX , UDATAOX ] ;
LDK = LD SHK;
ENSH = EN_SHIF;
quations
"NOTE SHLEFT, SHRIGHTX ARE ALSO USED AS QUALIFY SIGNAL FOR SHIFTER FUNCTION KSOA - LD_SHK
# !UDATA3X & !UDATA2X & UDATAlX & UDATAOX & EN_SHIF & !GCTRCY
# !UDATA3X & UDATA2X & !UDATAlX & EN_SHIF & !GCTRCY
# UDATA3X & !UDATA2X & !UDATAlX & EN_SHIF & !GCTRCY
# UDATA3X & UDATA2X & !UDATAlX & !UDATAOX & SHLEFT & !GCTRCY
# UDATA2X & UDATAlX & !UDATAOX & SHLEFT & ! ZFG & !GCTRCY ;
"LOAD K
"LOAG ROTATE LEFT,RIGHT
"LONG LSH,ASH, LEFT,RIGHT
"MUL,DIV
"SHK LEFT BYTE
"BIT, BYT SCAN
KSIA = !UDATA3X & !UDATA2X & UDATAlX & UDATAOX & SHLEFT & !GCTRCY
# !UDATA3X & UDATA2X & !UDATAlX & SHLEFT & !GCTRCY
# UDATA3X & !UDATA2X & !UDATAlX & UDATAOX & SHLEFT & !GCTRCY
# UDATA3X & UDATA2X & !UDATAlX & !UDATAOX & SHLEFT & !GCTRCY
# UDATA2X & UDATAlX & !UDATAOX & SHLEFT & !ZFG & !GCTRCY ;
"LOAG ROTATE LEFT
"LONG LSH,ASH,LEFT
"DIV
"SHK LEFT BYTE
"BIT,BYT SCAN
KS2A = !UDATA3X & !UDATA2X & UDATAlX & UDATAOX & SHRIGHTX & !GCTRCY
# !UDATA3X & UDATA2X & !UDATAlX & SHRIGHTX & !GCTRCY
# UDATA3X & !UDATA2X & !UDATAlX & !UDATAOX
& SHRIGHTX & !GCTRCY
# UDATA3X & UDATA2X & !UDATAlX & !UDATAOX & SHLEFT & !GCTRCY
# UDATA3X & UDATA2X & UDATAlX & !UDATAOX
& SHLEFT & !ZFG & !GCTRCY ;
"LOAG ROTATE RIGHT
"LONG LSH,ASH,RIGHT
"MUX
"SHK LEFT BYTE
"BYT SCAN
KSOB = LD_SHK
# !UDATA3X & !UDATA2X & UDATAlX & UDATAOX & EN_SHIF & !GCTRCY
# !UDATA3X & UDATA2X & !UDATAlX & EN_SHIF & !GCTRCY
# UDATA3X & !UDATA2X & !UDATAlX & EN_SHIF & !GCTRCY
# UDATA3X & UDATA2X & !UDATAlX & !UDATAOX & SHLEFT & !GCTRCY
# UDATA2X & UDATAlX & !UDATAOX & SHLEFT & !ZFG & !GCTRCY ;
"LOAD K
"LOAG ROTATE LEFT,RIGHT
"LONG LSH,ASH,LEFT,RIGHT
"MUL,DIV
"SHK LEFT BYTE
"BIT,BYT SCAN
KS1B = !UDATA3X & !UDATA2X & UDATAlX & UDATAOX & SHLEFT & !GCTRCY
# !UDATA3X & UDATA2X & !UDATAlX & SHLEFT & !GCTRCY
# UDATA3X & !UDATA2X & !UDATAlX & UDATAOX & SHLEFT & !GCTRCY
# UDATA3X & UDATA2X & !UDATAlX & !UDATAOX & SHLEFT & !GCTRCY
# UDATA2X & UDATAlX & !UDATAOX & SHLEFT & !ZFG & IGCTRCY ;
"LOAG ROTATE LEFT
"LONG LSH,ASH,LEFT
"DIV
"SHK LEFT BYTE
"BIT,BYT SCAN
KS2B = !UDATA3X & !UDATA2X & UDATAlX & UDATAOX & SHRIGHTX & !GCTRCY
# !UDATA3X & UDATA2X & !UDATAlX & SHRIGHTX & !GCTRCY
# UDATA3X & !UDATA2X & !UDATAlX & !UDATAOX
& SHRIGHTX & !GCTRCY
# UDATA3X & UDATA2X & !UDATAlX & !UDATAOX & SHLEFT & !GCTRCY
# UDATA3X & UDATA2X & UDATAlX & !UDATAOX
& SHLEFT & IZFG & !GCTRCY ;
"LOAG ROTATE RIGHT
"LONG LSH,ASH,RIGHT
"MUL
"SHK LEFT BYTE
"BYT SCAN " SL = SHLEFT;
" SR = SHRIGHTX;
" GC = GCTRCY;
" UDATA = [UDATA3X, UDAGA2X, UDATA1X, UDATA0X]; " LDK = LD_SHK;
" ENSH = EN_SHIF;
test_vectors
title
'PAL16L8 PAL DESIGN SPECIFICATION
SH11C5L8 PAO MAY 07, 1987
SHIFTER K LINK CONTROL NUMBER 1 OF 2 (U50)
DAVIN COMPUTER IRVINE CALIFORNIA
-Translated by TOABEL- ' ;
SH11C5L8 device 'P16L8';
"declarations
TRUE,FALSE = 1,0;
H,L = 1,0;
X, Z, G = .X. ,.Z.,.G.;
GND.VCC
pin 10,20;
!UCY, ! SHLEFT, !SHCYX,UDATA6 , SHJ63 , ! SHRIGHTY
pin 1,2,3,4,5,6;
!UDATA3X, !UDATA2X, !UDATAlX, !UDATAOX
pin 7,8,9,11;
KOSL, !SHCYJ
pin 12,19;
!MULDIVD, !MULDIVC, !MULDIVB, !MULDIVA, SHKOO, !SHF_OP
pin 13,14,15,16,17,18;
UDATA = [ UDATA3X , UDATA2X , UDATAlX , UDATAOX ] ;
SL = SHLEFT ;
SR = SHRIGHTY ;
MDABCD = [MULDIVA , MULDIVB , MULDIVC , MULDIVD] ;
OP = SHFJOP ;
KO = SHKOO ;
equations
!KOSL = SHLEFT & IUDATA6 & !SHJ63
& !UDATA3X & !UDATA2X & UDATAlX & UDATAOX
# SHLEFT & !UDATA3X & UDATA2X & !UDATAlX
# SHLEFT & UDATA2X & UDATAlX & !UDATAOX
# SHLEFT & UDATA3X & !UDATA2X & !UDATAlX & UDATAOX & !SHF_OP & !SHKOO
# SHLEFT & UDATA3X & !UDATA2X & !UDATAlX & UDATAOX & SHF_OP & UCY
# !SHF_OP & SHLEFT & UDATA6 & IUCY
& !UDATA3X & !UDATA2X & UDATAlX & UDATAOX
# SHF_OP & SHLEFT & UDATA6 & ! SHCYX
& !UDATA3X & !UDATA2X & UDATAlX & UDATAOX ;
"LONG ROL, SHJ63
"LONG LOG,ARTH SHL, 0 IN
"BIT,BYT SCAN, 0 IN
"DIV 1ST CYC SHKOO
"DIV REST CYC !UCY
"LONG ROL THRU CY FIRST CYCLE, KOSL = UCY
"LONG ROL THRU CY RESET OF CYCLE , KOSL = SHCYX
SHCYJ = SHF_OP & SHCYX
# !SHF_OP & UCY ;
"DIV
"MUL
MULDIVA = UDATA3X & !UDATA2X & !UDATAlX & UDATAOX & SHLEFT
# UDATA3X & !UDATA2X & !UDATAlX & !UDATAOX & SHRIGHTY ;
"DIV
"MUL
MULDIVB = UDATA3X & !UDATA2X & !UDATAlX & UDATAOX & SHLEFT
# UDATA3X & !UDATA2X & 'UDATAlX & !UDATAOX & SHRIGHTY ;
"DIV
"MUL
MULDIVC - UDATA3X & !UDATA2X & !UDATAlX & UDATAOX & SHLEFT
# UDATA3X & !UDATA2X & !UDATAlX & !UDATAOX & SHRIGHTY ;
"DIV
"MUL
MULDIVD = UDATA3X & !UDATA2X & !UDATAlX & UDATAOX & SHLEFT
# UDATA3X & !UDATA2X & !UDATAlX & !UDATAOX & SHRIGHTY ;
"DIV
"MUL
" UDATA = [ UDATA3X , UDATA2X , UDATAlX , UDATAOX ] ;
" SL = SHLEFT ;
" SR = SHRIGHTY ;
" MDABCD = [MULDIVA , MULDIVB , MULDIVC , MULDIVD] ;
" OP = SHF_OP ;
" KO = SHKOO ;
module _SH11B3L8 ; flag ' -r0 ' ;
title
'PAL16L8 PAL DESIGN SPECIFICATION
SH11B3L8 PAO MAY 06, 1987
SHIFTER J LINK CONTROL (U63)
DAVIN COMPUTER IRVINE CALIFORNIA
-Translated by TOABEL- ' ;
SH11B3L8 device 'P16L8';
"declarations
TRUE, FALSE = 1,0;
H,L = 1,0;
X,Z,G = .X.,.Z.,.C.;
GND,VCC
pin 10,20;
!SHRIGHTY,SDO, SD1,UDATA6, !UDATAOX, !UDATAlX, !UDATA2X, !UDATA3X, SHJOO, ! SHCYX pin 1,2,3,4,5,6,7,8,9,11;
J15SR.J31SR
pin 12,19;
! SHCYJ , SHJ31, SHJ15 , !UCY, SHJ32 , SHJ16
pin 13,14,15.,16,17,18;
SRY = SHRIGHTY ;
SD = [ SD1 , SDO] ;
UDATA = [ UDATA3X , UDATA2X , UDATAlX , UDATAOX ] ;
JO = SHJ00
J15 = SHJ15
J16 = SHJ16
J31 = SHJ31
J32 = SHJ32 equations
!J15SR - SHRIGHTY & !SD1 & SD0 & !UDATA3X & !UDATA2X & !UDATAlX & !UDATAOX
# SHRIGHTY & !SD1 & SD0 & !SHJ15 & !UDATA3X & !UDATA2X & !UDATAlX & UDATAOX
# SHRIGHTY & !SD1 & SD0 & !UDATA6 & !SHJOO & !UDATA3X & !UDATA2X & UDATAlX & !UDATAOX
# SHRIGHTY & !SD1 & SD0 & UDATA6 & ! SHCYJ & !UDATA3X & !UDATA2X & UDATAlX & !UDATAOX
# SHRIGHTY & !SD1 & SD0 & UDATA3X & !UDATA2X & !UDATAlX & !UDATAOX
# SHRIGHTY & !SHJ16 & SD1 ;
"LOG SHR DBYTE, 0 IN
"ASH SHR DBYTE,MSB SELF
"ROR DBYTE, SHJOO
"RRC DBYTE, SHCYJ
"MUL DBYTE, 0 IN
"DIR RIGHT W,HW , SHJ16
!J31SR = SHRIGHTY & SD1 & !SD0 & !UDATA3X & !UDATA2X & !UDATA1X & !UDATAOX # SHRIGHTY & SD1 & !SD0 & !SHJ31 & !UDATA3X & !UDATA2X & !UDATAlX & UDATAOX
# SHRIGHTY & SD1 & !SD0 & !UDATA6 & !SHJOO & !UDATA3X & !UDATA2X & UDATAlX & !UDATAOX
# SHRIGHTY & SD1 & ISD0 & UDATA6 & !SHCYJ & !UDATA3X & !UDATA2X
& UDATAlX & !UDATAOX
# SHRIGHTY & SD1 & !SD0 & UDATA3X & !UDATA2X & !UDATAlX & !UDATAOX
# SHRIGHTY & !SHJ32 & SD1 & SD0 ;
"LOG SHR HWORD, 0 IN
"ASH SHR HWORD,MSB SELF
"ROR HWORD, SHJOO
"RRC HWORD, SHCYJ
"MUL HWORD,0 IN
"DIR RIGHT W.SHJ32
" SRY = SHRIGHTY ;
" SD = [ SD1 , SD0] ;
" UDATA = [ UDATA3X , UDATA2X , UDATAlX , UDATAOX ] ;
" JO = SHJ00
" J15 = SHJ15
" J16 = SHJ16
" J31 = SHJ31
" J32 = SHJ32
module _SH11B1L8 ; flag ' -r0' ;
title
'PAL16L8 PAL DESIGN SPECIFICATION
SH11B1L8 PAO MAY 06, 1987
SHIFTER J LINK CONTROL (U62)
DAVIN COMPUTER IRVINE CALIFORNIA
-Translated by TOABEL- ' ;
SH11B1L8 device 'P16L8 ' ;
"declarations
TRUE,FALSE = 1,0;
H,L = 1,0;
X,Z,C = .X.,.Z.,.C.;
GND,VCC
pin 10 ,20;
! SHRIGHTY,SDO, SD1,UDATA6, !UDATAOX, !UDATAlX, !UDATA2X, !UDATA3X,SHJ00, !SHCY pin 1,2,3,4,5,6,7,8,9,11;
J63SR.J7SR
pin 12, 19 ;
SHJ63, SHJ08 , SHKOO , !UCY, SHJ07 , !SHCYJ
pin 13,14,15,16,17,18;
SRY = SHRIGHTY ;
SD = [ SD1 , SD0] ;
UDATA = [ UDATA3X , UDATA2X , UDATAlX , UDATAOX ] ;
JO = SHJ00
J7 = SHJ07
J8 = SHJ08
J63 = SHJ63
KO = SHK00
equations
!J7SR = SHRIGHTY & !SD1 & !SD0 & !UDATA3X & !UDATA2X & !UDATAlX & !UDATAOX
# SHRIGHTY & !SD1 & !SD0 & !SHJ07 & !UDATA3X & !UDATA2X & !UDATAlX & UDATAOX
# SHRIGHTY & !SD1 & !SD0 & !UDATA6 & !SHJOO & !UDATA3X & !UDATA2X & UDATAlX & !UDATAOX
# SHRIGHTY & !SD1 & !SD0 & UDATA6 & !SHCYJ & !UDATA3X & !UDATA2X & UDATAlX & !UDATAOX
# SHRIGHTY & !SD1 & ! SD0 & UDATA3X & !UDATA2X & !UDATAlX & !UDATAOX
# SHRIGHTY & !SHJ08 & SD1
# SHRIGHTY & !SHJ08 & SD0 ;
"LOG SHR BYTE, 0 IN
"ASH SHR BYTE,MSB SELF
"ROR BYTE, SHJOO
"RRC BYTE, SHCYJ
"MUL BYTE.O IN
"DIR RIGHT W,HW , SHJ08
"DIR RIGHT W,DB , SHJ08
!J63SR = SHRIGHTY & SD1 & SD0 & !UDATA3X & !UDATAlX & !UDATAOX
# SHRIGHTY & SD1 & SD0 & !SHJ63 & !UDATA3X & !UDATAlX & UDATAOX
# SHRIGHTY & SD1 & SD0 & !UDATA66= !SHJOO & !UDATA3X & !UDATA2X & UDATAlX & !UDATAOX
# SHRIGHTY & SD1 & SD0 & !UDATA6 & !SHKOO & !UDATA3X & !UDATA2X & UDATAlX & UDATAOX
# SHRIGHTY & SD1 & SD0 & UDATA6 & !SHCYJ & !UDATA3X & !UDATA2X
& UDATAlX
# SHRIGHTY & SD1 & SO0 & UDATA3X & !UDATA2X & !UDATAlX & !UDATAOX ;
"(LONG) LOGIC SHR WORD, 0 IN
"(LONG) ASH SHR WORD,MSB SELF
"ROR WORD, SHJOO
"LONG ROR WORD,SHJOO
"RRC,LRRC WORD,SHCYJ
"MUL WORD,0 IN " SRY = SHRIGHTY ;
" SD = [ SD1 , SD0] ;
" UDATA = [ UDATA3X , UDATA2X UDATAlX , UDATAOX ] ;
" JO = SHJO0
" J7 = SHJ07
" J8 = SHJ08
" J63 = SHJ63
" KO = SHKOO
module_SH12C3L8; flag '-r0';
title
'PAL16L8 PAL DESIGN SPECIFICATION
SH12C3L8 PAO OCT 28, 1986
SHIFTER FUNCTION I/O CONTROL (U8)
DAVIN COMPUTER IRVINE CALIFORNIA
-Translated by TOABEL- ' ;
SH12C3L8 device 'P16L8' ;
"declarations
TRUE, FALSE = 1, 0;
H,L = 1,0;
X, Z, C = .X.,.Z.,.C.;
GND,VCC
pin 10,20;
! SHLEFT, ! SHCY, ! SHCYX, !GCTRCY, ZFG
pin 1,2,3,4,5;
!UDATAOX, !UDATAlX, !UDATA2X, !UDATA3X.C2SHB
pin 6,7,8,9,11;
! SHWAITRQ, ! ENA_JOUT
pin 12,19;
UGR2 ,UGR!,UGRO ,MEQ1
pin 13,14,17,18;
SL = SHLEFT ;
GC = GCTRCY ;
UDATA = [UDATA3X , UDATA2X , UDATAlX , UDATAOX ] ;
C2 = C2SHB ;
UGR = [UGR2 , UGR1 , UGR0] ;
equations
"NOTE SHLEFT ARE USED AS ENABLE SIGNAL FOR SHIFTER FUNCTIONS
ENA_JOUT = UDATA2X & UDATAlX & !UDATAOX
& SHLEFT & !ZFG & !GCTRCY & C2SHB
# !MEQl & !UGR2 & UGR1 & UGR0
& UDATA3X & !UDATA2X & !UDATAlX & !GCTRCY & C2SHB ;
"C2SHB*(BIT,BYT SCAN)
"C2SHB*(MUL,DIV)
SHWAITRQ = !MEQ1 & !UGR2 & UGR1 & UGR0 & !UDATA3X & !UDATA2X & !GCTRCY
# !MEQ1 & !UGR2 & UGR1 & UGR0 & !UDATA3X 6= !UDATAlX & !GCTRCY
# !MEQ1 & !UGR2 & UGR1 & UGRO & !UDATA2X & !UDATAlX & !GCTRCY
# !MEQ1 & !UGR2 & UGR1 & UGR0
& UDATA3X & UDATA2X & !UDATAlX & !UDATAOX & !GCTRCY
# !MEQ1 & !UGR2 & UGR! & UGR0
& UDATA2X & UDATAlX & !UDATAOX & !GCTRCY & ! ZFG
# !MEQ1 & !UGR2 & UGR1 & UGR0
& !UDATA3X & UDATA2X & UDATAlX & UDATAOX & !GCTRCY & !SHCYX ;
"LOGSHF,ARSHF,ROT
"LONG LOGSHF,ARSHF,ROT
"MUL,DIV
"SHK LEFT BYTE
"BIT BYT SCAN
"LOC LEAD
"1 BIT " SL = SHLEFT ;
" GC = GCTRCY ;
" UDATA = [UDATA3X , UDATA2X , UDATAlX , UDATAOX ] ; " C2 = C2SHB ;
" UGR = [UGR2 , UGR1 , UGR0] ;
title
'PAL16R4 PAL DESIGN SPECIFICATION
SH9B1R4 PAO MAY 07, 1987
SHIFTER K NUMBER 0 OF 15 (START WITH 0) >>> APPLY TO SHK 0 & 1 <<<
DAVIN COMPUTER IRVINE CALIFORNIA
-Translated by TOABEL- ' ;
SH9B1R4 device 'P16R4' ;
"declarations
TRUE, FALSE = 1,0;
H,L = 1,0;
X,Z,C = .X.,.Z.,.C.;
VCC
pin 20;
KCLKA, !KSOA, !KSIA, !KS2A, !EN_KOUTA, !KCLRA,KOSL.SHK04, !MULDIV pin 1,2,3,4,5,6,7,8,9 ;
SHKOO, SHK01, SHK02 , SHK03
pin 14,15,16,17;
G,B0,B1,B2,B3
pin 11,12,13,18,19;
KC = KCLKA
KS = [KS2A , KSIA KSOA] ;
OUT = EN KOUTA ;
CLR = KCLRA ;
SKO = SHKO0
SKI = SHK01
SK2 = SHK02
SK3 = SHK03
SK4 = SHK04
MD = MULDIV ;
equations
enable B3 = ENJCOUTA ;
!B3 = !SHK03 & !KCLRA
# KCLRA ;
"OUT K
enable B2 - ENJKOUTA ;
!B2 = !SHK02 & !KCLRA
# KCLRA ;
"OUT K
enable B1 = ENJCOUTA ;
!B1 = !SHKOl & !KCLRA
# KCLRA ;
"OUT K
enable BO = EN_KOUTA ;
! BO = ! SHKOO & !KCLRA
# KCLRA ;
"OUT K
!SHK03 := !KSOA & !SHK03
# !KS2A & !KSIA & KSOA & !B3
# !KS2A & KSIA & KSOA & !SHK02
# KS2A & !KSIA & KSOA & !SHK04
# KS2A & KSIA & KSOA ;
"HOLD K,RESERVED
"LOAD K
"SH K LEFT
"SH K RIGHT
"BYT SCAN 0 IN
"K CLEAR
!SHK02 := !KSOA & !SHK02
# !KS2A & !KSIA & KSOA & !B2
# !KS2A & KSIA & KSOA & !SHK01
# KS2A & !KSIA & KSOA & !SHK03
# KS2A & KSIA & KSOA ;
"HOLD K,RESERVED
"LOAD K
"SH K LEFT
"SH K RIGHT
"BYT SCAN 0 IN
"K CLEAR
!SHK01 := !KSOA & !SHK01
# !KS2A & !KSIA & KSOA & !B1
# !KS2A & KSIA & KSOA & !MULDIV & ! SHKOO
# !KS2A & KSIA & KSOA & MULDIV & !KOSL
# KS2A & !KSIA & KSOA & !SHK02
# KS2A & KSIA & KSOA ;
"HOLD K,RESERVED
"LOAD K
"SH K LEFT NORMAL CASE
"SH K LEFT DIVID CASE
"SH K RIGHT
"BYT SCAN 0 IN
"K CLEAR
! SHKOO := !KSOA & !SHKOO
# !KS2A & !KSIA & KSOA & !BO
# !KS2A & KSIA & KSOA & !MULDIV & !KOSL
# !KS2A & KSIA & KSOA & MULDIV
# KS2A & !KSIA & KSOA & !SHK01
# KS2A & KSIA & KSOA ;
"HOLD K,RESERVED
"LOAD K
"SH K LEFT NORMAL CASE FROM KOSL
"SH K LEFT DIVID CASE 0 IN
"SH K RIGHT
" KC = KCLKA ;
" KS = [KS2A , KSIA KSOA] ; " OUT = EN KOUTA ;
" CLR = KCLRA ;
" SK0 = SHK00;
" SK1 = SHK01;
" SK2 = SHK02;
" SK3 = SHK03;
" SK4 = SHK04;
" MD = MULDIV ;
_S
module _SH12C7L8 ; flag ' -r0 ' ;
title
'PAL16L8 PAL DESIGN SPECIFICATION
SH12C7L8 PAO MAY 13, 1987
SHIFTER FUNCTION CONTROL
DAVIN COMPUTER IRVINE CALIFORNIA
-Translated by TOABEL- ' ;
SH12C7L8 device 'P16L8';
"declarations
TRUE,FALSE = 1,0;
H,L = 1,0;
X,Z,C = .X.,.Z.,.C.;
GND,VCC
pin 10,20;
! SHLEFT, ! SHRIGHTX, ! SHCY, !GCTRCY,ZFG
pin 1,2,3,4,5;
!UDATAOX, !UDATAlX, !UDATA2X, !UDATA3X,C2SHB, ! SHCYX, ! SHCYXD, ! SHCYDLP
pin 6,7,8,9,11,13,14,15 ;
JSHJS1B,!SHJS2A
pin 12,19;
!SHJS1A, !SHJSOA
pin 17,18;
SL = SHLEFT ;
SR = SHRIGHTX ;
GC = GCTRCY ;
UDATA = [UDATA3X , UDATA2X , UDATAlX , UDATAOX] ;
C2 = C2SHB ;
equations
"NOTE SHLEFT, SHRIGHTX ARE USED AS QUALIFY SIGNAL FOR SHIFTER FUNCTION
SHJSOA = UDATA2X & UDATAlX & !UDATAOX & SHLEFT & !GCTRCY & ! ZFG ;
"BIT,BYT SCAN
"ALL SHIFT RIGHT RELATED CASE ARE IN SH12B7R4.ABL
SHJS1A = !UDATA3X & !UDATAlX & SHLEFT & !GCTRCY
# !UDATA3X & !UDATA2X & SHLEFT & !GCTRCY
# !UDATA3X & UDATA2X & UDATAlX & UDATAOX
& SHLEFT & !GCTRCY & !SHCY
# UDATA3X & !UDATA2X & !UDATAlX & UDATAOX
& SHLEFT & IGCTRCY & C2SHB
# UDATA2X & UDATAlX & !UDATAOX & SHLEFT & !GCTRCY & ! ZFG ;
"LOG SHL, ARTH SHL,ROL
"(LONG & NO LONG)
"LOC LEAD 1 BIT
"DIV (2ND HALF CYC WILL
"LOAD J FROM ALU)
"BIT, BYT SCAN
SHJS2A = !UDATA3X & !UDATAlX & SHRIGHTX & !GCTRCY
# !UDATA3X & !UDATA2X & SHRIGHTX & !GCTRCY
# UDATA3X & !UDATA2X & !UDATAlX & !UDATAOX
& SHRIGHTX & !GCTRCY & C2SHB
# UDATA3X & !UDATA2X & !UDATAlX & !UDATAOX
& SHRIGHTX & !GCTRCY & !C2SHB
# UDATA3X & UDATA2X & UDATAlX & !UDATAOX
& SHLEFT & !GCTRCY & !ZFG
# UDATA3X & !UDATA2X & !UDATAlX & UDATAOX
& SHLEFT & !GCTRCY & !C2SHB ;
"LOG SHR.ARTH SHR,ROR
"(LONG & NO LONG)
"MUL & 1ST HALF CYC
"MUL & 2ND HALF CYC WILL BE LOAD J
"LOAD J FROM ALU
"BYT SCAN
"DIVID 2ND CYC WILL BE LOAD J
SHJS1B - !UDATA3X & !UDATAlX & SHRIGHTX & !GCTRCY
# !UDATA3X & !UDATA2X & SHRIGHTX & !GCTRCY
# UDATA3X & !UDATA2X & !UDATAlX & !UDATAOX
& SHRIGHTX & !GCTRCY & C2SHB ;
"LOG SHR,ARTH SHR,ROR
"(LONG & NO LONG)
"MUL(2ND HALF CYC WILL
" LOAD DATA FROM ALU)
SHCYDLP = UDATA3X & !UDATA2X & !UDATAlX
& SHCY
# !( UDATA3X & !UDATA2X & !UDATAlX )
& SHCYXD ;
"FOR MUL & DIV CASE CY TO DLOOP WILL BE NO DELAY
"ALL THE OTHER CASE CY TO DLOOP WILL BE DELAY BY 2 u-CYC " SL = SHLEFT ;
" SR = SHRIGHTX ;
" GC = GCTRCY ;
" UDATA = [UDATA3X , UDATA2X , UDATAlX , UDATAOX]
" C2 = C2SHB ;
" CARY = [ [HCY , SHCYX] ;
module _SH11C3L8 ; flag ' -r0'
title
'PAL16L8 PAL DESIGN SPECIFICATION
SH11C3L8 PA0 AUG 08, 1986
SHIFTER K LINK CONTROL NUMBER 2 OF 2 (U19)
DAVIN COMPUTER IRVINE CALIFORNIA
-Translated by TOABEL- ' ;
SH11C3L8 device 'P16L8';
"declarations
TRUE, FALSE = 1,0;
H,L = 1,0;
A., Z., C = .X.,.Z.,.C.;
GND,VCC
pin 10, 20;
! SHRIGHTY, !LONG, SHJ00, SD1, SD0, SHK08, SHK16, SHK32, !MUL
pin 1,2,3,4,5,7,8,9,11;
K31SR,K15SR
pin 12,19;
K63SR,K7SR
pin 16,17;
SD = [ SD1 , SD0 ] ;
SR = SHRIGHTY;
JO = SHJ00;
K8 = SHK08;
K16 = SHK16;
K32 = SHK32;
equations
"***** NOTE: SHRIGHTY IS AN ENABLE SIGNAL FOR SHIFTER FUNCTION ALSO
!K7SR = SHRIGHTY & LONG & ! SHK08
# SHRIGHTY & MUL & SD0 & !SHK08
# SHRIGHTY & MUL & SD1 & ! SHK08
# SHRIGHTY &MUL & !SD1 & !SD0 & !SHJ00 ;
"LONG RIGHT, SHK08
"DBYTE,WORD MUL, SHK32
"HWORD,WORD MUL, SHK32
"BYTE MUL, SHJ00
!K15SR = SHRIGHTY & LONG & !SHK16
# SHRIGHTY & MUL & SD1 & ISHK16
# SHRIGHTY & MUL & !SD1 & SD0 & !SHJ00 ;
"LONG RIGHT, SHK16
"HWORD,WORD MUL, SHK16
"DBYTE MUL, SHJ00
SHRIGHTY & LONG & !SHK32
# SHRIGHTY & MUL & SD1 & SD0 & !SHK32
# SHRIGHTY & MUL & SD1 & !SD0 & ISHJ00 ;
"LONG RIGHT, SHK32
"WORD MUL, SHK32
"HWORD MUL, SHJ00
IK63SR = SHRIGHTY & LONG & !SHJ00
# SHRIGHTY & MUL & SD1 & SD0 & !SHJ00 ;
"LONG RIGHT SHJ00
"WORE MUL, SHJ00 " SD = [ SD1 , SD0 ])
" SR = SHRIGHTY;
" J0 = SHJ00
" K8 = SHK08
" K16 = SHK16
" K32 = SHK32
module _SH11B5L8 ; flag ' -r0 ' ;
title
'PAL16L8 PAL DESIGN SPECIFICATION
SH11B5L8 PAO AUG 07, 1986
SHIFTER J LINK CONTROL NUMBER 1 OF 2
DAVIN COMPUTER IRVINE CALIFORNIA
-Translated by TOABEL- ' ;
SH11B5L8 device 'P16L8' ;
"declarations
TRUE, FALSE = 1,0;
H,L = 1,0;
X,Z,C = .X.,.Z.,.C.;
GND,VCC
pin 10,20;
SHJ07,SD0, SD1, ! SHLEFT, !UDATAOX, !UDATAlX, !UDATA2X, !UDATA3X, !UCY,SHK63 pin 1,2,3,4,5,6,7,8,9,11;
!JOSLA, !JOSLAX
pin 12,19;
SHJ63 , SHJ31, SHJ15 ,UDATA6 , ! SHCY, !SHF_OP
pin 13,14,15,16,17,18;
SL = SHLEFT;
SD = [SDl , SDO] ;
UDATA = [UDATA3X , UDATA2X , UDATAlX , UDATAOX] ;
J7 = SHJ07
J15 = SHJ15
J31 = SHJ31
J63 = SHJ63
K63 = SHK63
OP = SHF_OP ;
equations
enable JOSLAX = UDATA6 ;
JOSLAX = !SHF_OP & !UDATA3X & !UDATA2X & UDATAlX & !UDATAOX & UCY
& SHLEFT
# SHF_OP & !UDATA3X & !UDATA2X & UDATAlX & !UDATAOX & SHCY & SHLEFT
# SHLEFT & !UDATA3X & UDATA2X & !UDATAlX & SHK63
# SHLEFT & !UDATA3X & !UDATA2X & UDATAlX & UDATAOX & SHK63 ;
"RLC FIRST CYCLE, JOSL = UCY
"RLC REST CYCLE, JOSL = SHCY
"LONG LEFT SHIFT, SHK63
"LONG LEFT ROTATE, SHK63 enable JOSLA = !UDATA6 ;
JOSLA = SHLEFT & SD1 & SD0 & SHJ63 & !UDATA3X & !UDATA2X
& UDATAlX & !UDATAOX
# SHLEFT & SD1 & !SDO & SHJ31 & !UDATA3X & !UDATA2X
& UDATAlX & !UDATAOX
# SHLEFT & !SD1 & SD0 & SHJ15 & !UDATA3X & !UDATA2X
& UDATAlX & !UDATAOX
# SHLEFT & !SD1 & ISD0 & SHJ07 & !UDATA3X & !UDATA2X
& UDATAlX & !UDATAOX
# SHLEFT & !UDATA3X & UDATA2X & !UDATAlX & SHK63
# SHLEFT & !UDATA3X & !UDATA2X & UDATAlX & UDATAOX & SHK63 ;
"WORD ROL, SHJ63
"HWORD ROL, SHJ31
"DBYTE ROL, SHJ15
"BYTE ROL, SHJ07
"LONG LEFT SHIFT, SHK63
"LONG LEFT ROTATE, SHK63 " SL = SHLEFT
" SD = [SD1 , SD0]
" UDATA = [UDATA3X , UDATA2X , UDATAlX , UDATAOX]
" J7 = SHJ07
" J15 = SHJ15
" J31 = SHJ31
" J63 = SHJ63
" K63 = SHK63
" OP = SHF_OP
title
'PAL16L8 PAL DESIGN SPECIFICATION
SH11B7L8 PAO DEC 19, 1986
MULTIPLY, DIVISION, & BIT SCAN LINK CONTROL FOR JOSL (U17)
DAVIN COMPUTER IRVINE CALIFORNIA
-Translated by TOABEL-';
SH11B7L8 device 'P16L8';
"declarations
TRUE, FALSE = 1, 0 ;
H,L = 1,0;
X,X,X= .X., .Z.,.C.;
GND ,VCC
pin 10 , 20 ;
!UDATA3X, !UDATA2X, !UDATAlX, !UDATAOX,SD1,SD0 ,SHK07,SHK15,SHK31, SHK63 pin 1,2,3,4,5,6,7,8,9,11;
!ARSH, !JOSLB
pin 12,19;
!SHLEFT, !SHFJDP, !MUL, !LONG
pin 13,14,17,18;
UDATA = [UDATA3X.UDATA2X,UDATAlX,UDATAOX] ;
SD = [SD1, SD0];
K7 = SHK07;
K15 = SHK15;
K31 = SHK31;
K63 = SHK63;
SL = SHLEFT;
equations
" COMMENT: 1 BIT SCAN WILL BE IN WORD ONLY
JOSLB - SHLEFT & !UDATA3X & UDATA2X & UDATAlX & !UDATAOX
& SD1 & SDO & SHK63
# SHLEFT & UDATA3X & !UDATA2X & !UDATAlX & UDATAOX & SD1 & SDO & SHK63
# SHLEFT & UDATA3X & !UDATA2X & !UDATAlX & UDATAOX & SD1 & !SD0 & SHK31
# SHLEFT & UDATA3X & !UDATA2X & !UDATAlX & UDATAOX & !SD1 & SDO & SHK15
# SHLEFT & UDATA3X & !UDATA2X & !UDATAlX & UDATAOX & !SD1 & !SDO & SHK07 ;
"BIT SCAN, SHK63
"WORD DIV
"HWORD DIV
"DBYTE DIV
"BYTE DIV
ARSH = !UDATA3X & !UDATAlX & UDATAOX ;
"ARITH SH,LONG ARITH SH
LONG = !UDATA3X & !UDATA2X & UDATAlX & UDATAOX # !UDATA3X & UDATA2X & !UDATAlX ;
"LONG ROTATE
"LONG LOGIC AND
"ARITHMETIC SHIFT
MUL = UDATA3X & !UDATA2X & !UDATAlX & !UDATAOX ;
"MULTIPLY
" UDATA = [UDATA3X,UDATA2X,UDATAlX,UDATAOX] ; " SD = [SD1, SD0] ;
" K7 = SHK07;
" K15 = SHK15;
" K31 = SHK31;
" K63 = SHK63;
" SL = SHLEFT;
title
'PAL16R4 PAL DESIGN SPECIFICATION
SH12B3R4 PAO DEC 23, 1986
OVERFLOW FLAG GENERATOR (U41)
DAVIN COMPUTER IRVINE CALIFORNIA
-Translated by TOABEL- ' ;
SH12B3R4 device 'P16R4' ;
"declarations
TRUE, FALSE = 1,0;
H,L = 1,0;
X,Z,C = .X , .Z.,. C.;
GND,VCC
pin 10,20;
C2, ! SHLEFT, SD1, SD0, !ARSH,SHJ63,SHJ31,SHJ15,SHJ07,G
pin 1,2,3,4,5,6,7,8,9,11;
! SHAROV,Q1, ! SHWAITRQD,Q0
pin 17,15,16,14;
!OVFL2, !OVFL1, ! SHWAITRQ, !SHCYX
pin 12,13,18,19;
SL = SHLEFT ;
J63 = SHJ63
J31 = SHJ31
J15 = SHJ15
J7 = SHJ07
SD = [SD1 , SDO ];
SHRV = SHAROV ;
SHCX = SHCYX ;
SW = SHWAITRQ ;
SWD = SHWAITRQD ;
VI = OVFL1 ;
V2 = OVFL2 ;
SV = SHAROV ;
" States
S0 = ^b11;
S1 = ^b10;
S2 = ^b00;
equations
OVFL2 = ARSH & SHLEFT & SHWAITRQD & SD1 & SD0 & SHJ63 & !SHCYX
# ARSH & SHLEFT & SHWAITRQD & SD1 & SD0 & !SHJ63 & SHCYX
# ARSH & SHLEFT & SHWAITRQD & SD1 & !SD0 & SHJ31 & !SHCYX
# ARSH & SHLEFT & SHWAITRQD & SD1 & !SD0 & !SHJ31 & SHCYX ;
OVFL1 = ARSH & SHLEFT & SHWAITRQD & ISD1 & SD0 & SHJ15 & !SHCYX
# ARSH & SHLEFT & SHWAITRQD & !SD1 & SD0 & !SHJ15 & SHCYX
# ARSH & SHLEFT & SHWAITRQD & !SD1 & !SD0 & SHJ07 & !SHCYX
# ARSH & SHLEFT & SHWAITRQD & !SD1 & !SD0 & !SHJ07 & SHCYX ;
"ASHL WORD, LONG WORD
"ASHL HWORD
"ASHL DBYTE
"ASHL BYTE
SHWAITRQD := SHWAITRQ ;
SHAROV := !QO
# !SHWAITRQD & Q1 & QO & SHAROV
# SHWAITRQD & Q1 & QO & ( OVFL2 # OVFL1 ) ;
state_diagram [Q1.QO]
State SO: IF SHLEFT & ARSH & SHWAITRQD & (OVFL1 # OVFL2) THEN S1
ELSE SO ;
State S1: IF SHWAITRQD THEN S1
ELSE S2 ;
State S2 : GOTO SO ;
" SL = SHLEFT ;
" J63 = SHJ6 3 ;
" J31 = SHJ3 1 ;
" J15 = SHJ1 5 ;
" J7 = SHJO 7 ;
" SD = [SDl , SDO ];
" SHRV = SHAR OV ;
" SHCX = SHCY X ;
" SW = SHWA ITRQ ;
" SWD = SHWA ITRQD
" VI = ( DVFL 1 ;
" V2 = ( OVFL 2 ;
" SV = SHAR OV ;
module_SH12C5l8 flag '-r0';
title
'PAL16L8 PAL DESIGN SPECIFICATION
SH12C5L8 PAO JAN 13, 1987
SHIFTER IN/OUT CONTROL (U9)
DAVIN COMPUTER IRVINE CALIFORNIA
-Translated by TOABEL- ' ;
SH12C5L8 device 'P16L8';
"declarations
TRUE, FALSE = 1,0;
H,L = 1,0;
X,Z,C = .X.,.Z.,.C;
GND.VCC
pin 10,20;
UFD0,UFD1,UFD2,UFD3,UBS0,UBS1,UBS2,UBS3,C2SHB
pin 1,2,3,4,5,6,7,8,11;
! EN_KOUTA, ! ENB_JOUT
pin 12,19;
!KCLRA, !KCLRB, !LD_SHK, !EN_KOUTB, !SHJS2B, !SHJSOB
pin 13,14,15,16,17,18;
UFD = [UFD3 , UFD2 , UFD1 , UFDO] ;
UBS = [UBS3 , UBS2 , UBS1 , UBSO] ;
C2 = C2SHB;
KC = [KCLRA , KCLRB] ;
equations
SHJSOB = !UBS3 & UBS2 & !UBS1 & UBSO & C2SHB
# UFD3 & UFD2 & UFD1 & !UFDO % !C2SHB
"OUT J FIRST HALF
"ALU FD E,(LD MASK) SECOND HALF
SHJS2B = ( UFD = ^h5 ) & !C2SHB
# ( UFD = ^h8 ) & !C2SHB
# ( UFD = ^hC ) & !C2SHB
# ( UFD = ^hD ) & !C2SHB
# ( UFD = ^hE ) & !C2SHB
# ( UFD = ^hF ) & !C2SHB
"ALU FD5,8,C,D,E,F (LD J) LOAD J 2ND HALF
ENB_JOUT - !UBS3 & UBS2 & !UBS1 & UBSO & C2SHB ;
"ALU B BUS SOURCE AT
"1ST HALF CYC
EN_KOUTA = !UBS3 & UBS2 & UBS1 & !UBSO & C2SHB
# UBS3 & !UBS2 & !UBS1 & UBSO & C2SHB ;
"ALU B BUS SOURCE
"ALU B BUS 0 SOURCE
EN_KOUTB = !UBS3 & UBS2 & UBS1 & !UBSO & C2SHB
# UBS3 & !UBS2 & !UBS1 & UBSO & C2SHB ;
"ALU B BUS SOURCE
"ALU B BUS O SOURCE
LD_SHK = !UFD3 & UFD2 & UFD1 & !UFDO & !C2SHB
# UFD3 & IUFD2 & !UFD1 & UFDO & !C2SHB ;
"LOAD K 2ND HALF AND ALU FD6,9
KCLRA = UBS3 & !UBS2 & !UBS1 & UBSO; "ALU B BUS O SOURCE
KCLRB = UBS3 & !UBS2 & !UBS1 & UBSO; "ALU B BUS O SOURCE " UFD = [UFD3 , UFD2 , UFD1 , UFDO];
" UBS = [UBS3 , UBS2 , UBS1 , UBSO];
" C2 = C2SHB;
" KC = [KCLRA , KCLRB] ;
Claims
1. A parallel byte string processor that finds the location of matching bytes in first and second data words, each data word having a predetermined number of data bytes, said parallel byte processor characterized by:
a first circuit (100, 102, 109, 115, 122) that performs an exclusive-OR operation on a byte-by-byte basis of said two data words and provides an output bit corresponding to each byte of said first data word having first and second logic levels such that an output bit has said first logic level when the corresponding byte in said first data word matches the corresponding byte in said second data word and having said second logic level when the corresponding byte in said first data word does not match the corresponding byte in said second data word; and
a second circuit (500, 522, 532, 536) that receives said output bits from said first circuit (100, 102, 109, 115, 122), said second circuit (500, 522, 532, 536) providing a digital output value that identifies an output bit from said first circuit (100, 102, 109, 115, 122) that has a predetermined characteristic, thereby identifying the position of a particular byte in said first data word that has said selected predetermined characteristic.
2. The parallel byte processor as defined in Claim 1, wherein said predetermined characteristic is the location of the most significant bit of said output bits having said first logic level, thus identifying the most significant byte of said first data word that matches the corresponding byte of said second data word.
3. The parallel byte processor as defined in claim 1, wherein said predetermined characteristic is the location of the most significant bit of said output bits having said second logic level, thus identifying the most significant byte of said first data word that does not match the corresponding byte of said second data word.
4. The parallel byte processor as defined in Claim 1, wherein said predetermined characteristic is the location of the most significant bit of said output bits having said first logic level that is less significant than a bit of said output bits having said second logic level, thus identifying the most significant byte of said first data word that does not match the corresponding byte of said second data word that is less significant that a byte of said first data word that matches the corresponding byte of said second data word.
5. The parallel byte processor as defined in Claim 1, wherein said predetermined characteristic is the location of the most significant bit of said output bits having said second logic level that is less significant than a bit of said output bits having said first logic level, thus identifying the most significant byte of said first data word that matches the corresponding byte of said second data word that is less significant that a byte of said first data word that does not match the corresponding byte of said second data word.
6. The parallel byte processor as defined in Claim 1, wherein said second circuit is characterized by a programmable read only memory (522).
7. The parallel byte processor as defined in Claim 1, wherein said bit having said characteristic is the first of at least two adjacent bits having said characteristic.
8. The parallel byte processor as defined in Claim 1, wherein said second data word is characterized by a plurality of identical bytes, and wherein said parallel byte processor further includes a replication circuit (550), said replication circuit (550) receiving a single byte input and generating said predetermined number of bytes as outputs, each of said predetermined number of bytes being identical to said input byte.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
KR1019900701426A KR900702450A (en) | 1988-11-04 | 1989-11-03 | Parallel String Processor and Method for Minicomputers |
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
US267,460 | 1981-05-27 | ||
US26746088A | 1988-11-04 | 1988-11-04 |
Publications (1)
Publication Number | Publication Date |
---|---|
WO1990005334A1 true WO1990005334A1 (en) | 1990-05-17 |
Family
ID=23018866
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/US1989/004963 WO1990005334A1 (en) | 1988-11-04 | 1989-11-03 | Parallel string processor and method for a minicomputer |
Country Status (3)
Country | Link |
---|---|
EP (1) | EP0441873A4 (en) |
KR (1) | KR900702450A (en) |
WO (1) | WO1990005334A1 (en) |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP0463975A2 (en) * | 1990-06-29 | 1992-01-02 | Digital Equipment Corporation | Byte-compare operation for high-performance processor |
WO1994001950A1 (en) * | 1992-07-07 | 1994-01-20 | Evtech Pty. Ltd. | Computer/telephone interface apparatus |
EP0743593A1 (en) * | 1995-05-17 | 1996-11-20 | STMicroelectronics Limited | Replication of data |
EP0752643A1 (en) * | 1995-07-03 | 1997-01-08 | STMicroelectronics Limited | Expansion of data |
US20100153420A1 (en) * | 2008-12-15 | 2010-06-17 | National Taiwan University | Dual-stage regular expression pattern matching method and system |
Citations (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US3609703A (en) * | 1969-06-30 | 1971-09-28 | Ibm | Comparison matrix |
US4032885A (en) * | 1976-03-01 | 1977-06-28 | The United States Of America As Represented By The Secretary Of The Navy | Digital correlator |
US4053871A (en) * | 1974-12-04 | 1977-10-11 | Agence Nationale De Valorisation De La Recherche (Anvar) | Method and system for the iterative and simultaneous comparison of data with a group of reference data items |
US4097844A (en) * | 1977-04-04 | 1978-06-27 | Hughes Aircraft Company | Output circuit for a digital correlator |
US4101903A (en) * | 1976-08-02 | 1978-07-18 | Rockwell International Corporation | Method and apparatus for monitoring bcd continuously varying data |
US4119946A (en) * | 1976-05-25 | 1978-10-10 | National Research Development Corporation | Comparison apparatus, e.g. for use in character recognition |
US4443860A (en) * | 1979-06-19 | 1984-04-17 | Jacques Vidalin | System for hi-speed comparisons between variable format input data and stored tabular reference data |
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 |
US4560974A (en) * | 1981-09-28 | 1985-12-24 | Hughes Aircraft Company | Real-time ordinal-value filter utilizing reference-function comparison |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO1988006308A1 (en) * | 1987-02-10 | 1988-08-25 | Davin Computer Corporation | Parallel string processor and method for a minicomputer |
-
1989
- 1989-11-03 WO PCT/US1989/004963 patent/WO1990005334A1/en not_active Application Discontinuation
- 1989-11-03 KR KR1019900701426A patent/KR900702450A/en not_active Application Discontinuation
- 1989-11-03 EP EP19890912825 patent/EP0441873A4/en not_active Withdrawn
Patent Citations (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US3609703A (en) * | 1969-06-30 | 1971-09-28 | Ibm | Comparison matrix |
US4053871A (en) * | 1974-12-04 | 1977-10-11 | Agence Nationale De Valorisation De La Recherche (Anvar) | Method and system for the iterative and simultaneous comparison of data with a group of reference data items |
US4032885A (en) * | 1976-03-01 | 1977-06-28 | The United States Of America As Represented By The Secretary Of The Navy | Digital correlator |
US4119946A (en) * | 1976-05-25 | 1978-10-10 | National Research Development Corporation | Comparison apparatus, e.g. 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 |
US4443860A (en) * | 1979-06-19 | 1984-04-17 | Jacques Vidalin | System for hi-speed comparisons between variable format input data and stored tabular reference data |
US4560974A (en) * | 1981-09-28 | 1985-12-24 | Hughes Aircraft Company | Real-time ordinal-value filter utilizing reference-function comparison |
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 |
Non-Patent Citations (1)
Title |
---|
See also references of EP0441873A4 * |
Cited By (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP0463975A2 (en) * | 1990-06-29 | 1992-01-02 | Digital Equipment Corporation | Byte-compare operation for high-performance processor |
EP0463975A3 (en) * | 1990-06-29 | 1993-11-18 | Digital Equipment Corp | Byte-compare operation for high-performance processor |
US5568624A (en) * | 1990-06-29 | 1996-10-22 | Digital Equipment Corporation | Byte-compare operation for high-performance processor |
US5995746A (en) * | 1990-06-29 | 1999-11-30 | Digital Equipment Corporation | Byte-compare operation for high-performance processor |
WO1994001950A1 (en) * | 1992-07-07 | 1994-01-20 | Evtech Pty. Ltd. | Computer/telephone interface apparatus |
EP0743593A1 (en) * | 1995-05-17 | 1996-11-20 | STMicroelectronics Limited | Replication of data |
US5859790A (en) * | 1995-05-17 | 1999-01-12 | Sgs-Thomson Microelectronics Limited | Replication of data |
EP0752643A1 (en) * | 1995-07-03 | 1997-01-08 | STMicroelectronics Limited | Expansion of data |
US6100905A (en) * | 1995-07-03 | 2000-08-08 | Sgs-Thomson Microelectronics Limited | Expansion of data |
US20100153420A1 (en) * | 2008-12-15 | 2010-06-17 | National Taiwan University | Dual-stage regular expression pattern matching method and system |
Also Published As
Publication number | Publication date |
---|---|
KR900702450A (en) | 1990-12-07 |
EP0441873A4 (en) | 1992-09-30 |
EP0441873A1 (en) | 1991-08-21 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
WO1991012576A1 (en) | Parallel string processor and method for a minicomputer | |
US4896133A (en) | Parallel string processor and method for a minicomputer | |
EP1073950B1 (en) | Method and apparatus for performing shift operations on packed data | |
US7991987B2 (en) | Comparing text strings | |
US5379240A (en) | Shifter/rotator with preconditioned data | |
EP1206737B1 (en) | Setting condition values in a computer | |
US5132898A (en) | System for processing data having different formats | |
JP3771968B2 (en) | Computer and computer operating method | |
US5922065A (en) | Processor utilizing a template field for encoding instruction sequences in a wide-word format | |
US20020078011A1 (en) | Method and system for performing permutations with bit permutation instructions | |
EP0363173A2 (en) | Communication processors for layered protocols | |
EP1204918B1 (en) | Conditional instruction execution in a computer | |
US20050257032A1 (en) | Accessing a test condition | |
JP3183669B2 (en) | Processor for variable length character strings | |
WO1990005334A1 (en) | Parallel string processor and method for a minicomputer | |
US4384343A (en) | Firmware controlled search and verify apparatus and method for a data processing system | |
US10620957B2 (en) | Method for forming constant extensions in the same execute packet in a VLIW processor | |
AU629007B2 (en) | Apparatus for accelerating store operations in a risc computer | |
US20190121639A1 (en) | Processing in neural networks | |
WO1989001653A1 (en) | Parallel string processor and method for a minicomputer | |
EP0352279A1 (en) | Parallel string processor and method for a minicomputer | |
US20040230626A1 (en) | Computer system method for a one cycle implementation of test under mask instructions | |
US5708800A (en) | High speed microprocessor for processing and transferring N-bits of M-bit data | |
US6122730A (en) | "Test under mask high" instruction and "Test under mask low" instruction executing method and apparatus | |
JPH06202849A (en) | Information processor |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
AK | Designated states |
Kind code of ref document: A1 Designated state(s): KR |
|
AL | Designated countries for regional patents |
Kind code of ref document: A1 Designated state(s): AT BE CH DE FR GB IT LU NL SE |
|
WWE | Wipo information: entry into national phase |
Ref document number: 1989912825 Country of ref document: EP |
|
WWP | Wipo information: published in national office |
Ref document number: 1989912825 Country of ref document: EP |
|
WWW | Wipo information: withdrawn in national office |
Ref document number: 1989912825 Country of ref document: EP |