Fault tolerant data processing system

Abstract: A fault tolerant data processing system includes means for maintaining copies of original index registers and copies of modified index registers such that in the event original copies of the index registers are needed, they may be restored. Thus, in the event of a rollback, original copies of the index registers may be restored to a processor (36), even if some of the index registers were modified in the previous execution of a command by the processor (36).

Description: Technical Field This invention relates to fault tolerant data processing systems. The invention also relates to a method of controlling the operation of a fault tolerant data processing system. Background Art A fault tolerant data processing system of the kind specified is known from U.S. Patent No. 4,453,215. According to the known system, information-handling parts of the system have a duplicate partner. Error detectors check the operation of the system bus structure and of each system unit to provide information transfers only on fault-free bus conductors and between fault-free units. Disclosure of the Invention It is an object of the present invention to provide a fault tolerant data processing system of the kind specified wherein data integrity can be maintained during the execution of system commands. Therefore, according to one aspect of the present invention, as defined in Claim 1, there is provided a fault tolerant data processing system, including processing means adapted to execute commands, said processing means including index register storage means adapted to store copies of modifiable index registers usable in the executing of commands by said processing means; main memory means including storage locations adapted to store modifiable index register data of said index registers; and data bus means connected between said processing means and said main memory means for transmitting index register data therebetween, characterized by a plurality of data storage registers arranged in memory locations, each of said memory locations having two data storage registers, one for storing original index register data and one for storing modified index register data; valid indicating means connected to said plurality of data storage registers for determining which one of said data storage registers at each of said memory locations contains original index register data, and which one contains modified index register data; and input/output means responsive to said valid indicating means and connected between said data bus means and said plurality of data storage registers, said input/output means being adapted to write modified index register data from said data bus means to those data storage registers determined by said valid indication means to contain modified index register data during a command execution by said processing means, and adapted to read original index register data to said data bus means from those data storage registers determined by said valid indicating means as containing original index register data during a rollback operation of said processing means, and wherein said input/output means includes a counter adapted to sequentially count said memory locations from which data is to be read, and access means connected to said counter for accessing each of said memory locations responsive to the count of said counter. According to another aspect of the invention as defined in detail in Claim 7, there is provided a method of controlling the operation of a fault tolerant data processing system, characterized by the steps of: executing commands and performing rollback operations with a processor; storing modifiable index register contents in said processor for use in said command executions; storing during sequential command executions, original index register contents and modified index register contents in a plurality of paired data storage registers arranged in memory locations; sequentially counting said memory locations and accessing each of said memory locations in response to said count and indicating in a plurality of corresponding valid indicating means which of said paired data storage registers contain the original index register contents at each memory location; and transmitting during a rollback operation, the original data register contents from each of said memory locations to said processor responsive to the indication of the valid indicating means corresponding to that memory location. Brief Description of the Drawings One embodiment of the present invention will now be described by way of example with reference to the accompanying drawings, in which: Fig. 1 is a block diagram of a general purpose data processing system including the present invention; Fig. 2 is a block diagram showing one of the basic processor subsystem modules of Fig. 1; Fig. 3 is a block diagram of a NEAT assist chip of Fig. 2; Fig. 4 is a block diagram of one of the writable control store modules of Fig. 1; Fig. 5 is a block diagram of a portion of the data integrity module of Fig. 1 for comparing primary and secondary data; Fig. 6 is a block diagram of another portion of the data integrity module of Fig. 1 for comparing primary and secondary addresses; Fig. 7 is a block diagram of still another portion of the data integrity module of Fig. 1 for comparing addresses and microinstructions of the instruction storage unit; Figs. 8A and 8B, when joined along line a-a, forms a schematic diagram of a clock distribution circuit of the virtual command rollback module of Fig. 1; Fig. 9 is a schematic diagram of a register for receiving input signals for the virtual command rollback module; Fig. 10 is a schematic diagram of a portion of the control circuitry of the virtual command rollback module; Fig. 11 is a schematic diagram of another portion of the control circuitry of the virtual command rollback module; Figs. 12A and 12B, when joined along line b-b, form a schematic diagram of another portion of the control circuitry of the virtual command rollback module; Fig. 13 is a map which shows the relationship of Figs. 13A, 13B and 13C, which, when taken together, form a schematic diagram of a status register of the virtual command rollback module; Figs. 14A and 14B, when joined along line c-c, form a schematic diagram of a data input register of the virtual command rollback module; Fig. 15 is an inverter which is a part of the control circuitry of the virtual command rollback module; Fig. 16 is a map which shows the relationship of Figs. 16A, 16B, 16C and 16D, which, when taken together, form a schematic diagram of a data output register of the virtual command rollback module; Fig. 17 is a NAND gate which is a part of the control circuitry of the virtual command rollback module; Fig. 18 is a schematic diagram of a multiplexer of a fetch log of the virtual command rollback module; Fig. 19 is a schematic diagram of a comparator of the fetch log of the virtual command rollback module; Figs. 20A and 20B, when joined along line d-d, form a schematic diagram of a portion of a counter of the fetch log of the virtual command rollback module; Figs. 21A and 21B, when joined along line e-e, form a schematic diagram of another portion of the counter of Figs. 20A and 20B; Fig. 22 is a schematic diagram of a portion of the memory of the fetch log of the virtual command rollback module; Fig. 23 is a schematic diagram of another portion of the memory of Fig. 22; Fig. 24 is a schematic diagram of another portion of the memory of Fig. 22; Fig. 25 is a schematic diagram of another portion of the memory of Fig. 22; Fig. 26 is a schematic diagram of another portion of the memory of Fig. 22; Fig. 27 is a schematic diagram of a portion of the control circuitry of the virtual command rollback module; Figs. 28A and 28B, when joined along line f-f, form a schematic diagram of a decoder circuit for decoding an address for use by an index register log of the virtual command rollback module; Figs. 29A and 29B, when joined along line g-g, form a schematic diagram of a portion of the valid bit and modified bit flip/flops of the index register log of the virtual command rollback module; Figs. 30A and 30B, when joined along line h-h, form a schematic diagram of another portion of the flip/flops of Figs. 29A and 29B; Fig. 31 is a schematic diagram of a portion of the memory of the index register log of the virtual command rollback module; Fig. 32 is a schematic diagram of another portion of the memory of Fig. 31; Fig. 33 is a schematic diagram of another portion of the memory of Fig. 31; Fig. 34 is a schematic diagram of another portion of the memory of Fig. 31; Fig. 35 is a schematic diagram of another portion of the memory of Fig. 31; Figs. 36A and 36B, when joined along line i-i, form a schematic diagram of another portion of the control circuitry of the virtual command rollback module; Fig. 37 is a resistor array of the control circuitry of the virtual command rollback module; Figs. 38A and 38B, when joined along line j-j, form a schematic diagram of a counter of a trace log of the virtual command rollback module; Fig. 39 is a schematic diagram of a portion of the memory of the trace log of the virtual command rollback module; Fig. 40 is a schematic diagram of another portion of the memory of Fig. 39; Figs. 41A and 41B, when joined at line k-k, form a schematic diagram of a driver of the trace log of the virtual command rollback module; Fig. 42 is a flow chart for programming for a central processor chip of Fig. 2 to set up and emulate a virtual command; Fig. 43 is a flow chart for programming for a NEAT assist chip of Fig. 2 to set up and emulate a virtual command; and Figs. 44A and 44B, when joined at connectors A and B, form a flow chart for effecting a rollback operation. Best Mode for Carrying Out the Invention Fig. 1 is a block diagram of a general purpose data processing system including the present invention, and includes a virtual command processor subsystem 10, an input/output (I/O) subsystem 12, and a memory subsystem 14. The subsystems 10, 12 and 14 are further divided into modules, with certain modules being duplicated to provide data integrity and command retrying capabilities of the data processing system, as will be explained. A system clock module (SCLM) 16 is provided. The principal timing of the disclosed system is maintained through the use of a two-phase clock having an X0 output and an X1 output, which are derived from a single crystal oscillator, not shown. The system bus clock, not shown, is also included in the SCLM module 16. The generation of clock signals and their distribution and utilization are well understood in the art and will not be discussed further. The virtual command processor subsystem 10 includes a pair of basic processor subsystem modules (BPSM) 18 and 20, one, 18, being the primary module (BPSMP) and the other, 20, being the secondary module (BPSMS). Each of the modules 18 and 20 include very large scale integration circuit (VLSI) chips from the NCR 32 bit chip set, as explained in the NCR/32 General Information Publication available from VLSI Processor Products, NCR Microelectronics Division, Colorado Springs, Colorado, under the Stock No. ST-2104-23. Referring to Fig. 2, each of the BPSM modules 18 and 20 may include a central processor chip (CPC) 22 and an address translation chip (ATC) 24, as fully explained in the mentioned NCR/32 General Information Publication. The CPC 22 is connected to an instruction storage unit (ISU) bus 26 and a processor-memory (PM) bus 28. As is known, the CPC 22 places instruction addresses on the ISU bus 26 on X0 of the clock SCLM 16 to an ISU memory 30, and receives instructions back from the ISU memory 30 on X1 of the clock SCLM 16. Addresses for memory operations are also placed on the address portion of the PM bus 28, and data is either fetched from or written into a main memory 32 at the given address. It will be understood that in the system of Fig. 1, the memory subsystem 14 includes the main memory 32 of Fig. 2. The BPSMP module 18 and the BPSMS module 20 may also contain specialized hardware enhancement chips, such as an extended arithmetic chip (EAC) 34 of Fig. 2 which provides specialized hardware for floating point arithmetic, and a NEAT assist chip (NAC) 36 which provides a self-contained firmware on-chip processor which executes a subset of NEAT commands. The NAC 36 of Fig. 2 is an NCR 9000 Series NEAT assist chip, whose block diagram is shown in Fig. 3. Without the NAC 36, the CPC 22 is the main element which subordinates activities to the ATC 24 and EAC 34. When emulating, for instance, NEAT commands, the CPC 22 interprets and executes the NEAT commands by accessing routines in the ISU memory 30. When a NAC 36 is present, the NAC becomes the master. The NEAT virtual command to be executed is then fetched from the main memory 32 of Fig. 2 by the NAC 36, a command set up is performed, and then, only if the NAC 36 does not support the execution of that particular command, is control passed to the CPC 22. When a NAC 36 is present, the CPC 22 only invokes the use of the ATC 24 or EAC 34 as requested by the NAC 36. While the NAC 36 is executing virtual NEAT commands, the CPC is available to service I/O interrupts or time-of-day interrupts concurrent to the operations being performed by the NAC 36. Referring to Fig. 3, the NAC 36 does not use any off-chip control store. All storage needed to execute the virtual NEAT commands supported by the NAC 36, is stored in a control read-only memory (ROM) 70. Microinstructions in the NAC 36 are executed within a two-stage pipeline having interpret and execute stages. In the interpret stage, whose start is indicated by the NVCSU/ signal on conductor 37 of Fig. 2, the ROM address for the beginning microinstruction to emulate the virtual NEAT command is determined, and the number of bytes affected by the virtual instructions is stored in the tally 72. A copy of the first 15 index registers in the main memory 32 of Fig. 2 is kept in an index register unit (IRU) 74. This is done by monitoring the PM bus 28 (see Fig. 2) with index register match logic 76, which causes the storage of the contents of any of the first 15 index registers fetched or modified by appropriate instructions over the PM bus 28 to the first 15 virtual addresses of the main memory 32, to be stored in the IRU 74. Thus, during the interpret and execute stages of the NAC 36, access may be made directly to the IRU 74 in the NAC 36, without having to fetch any of the first 15 registers from the main memory 32. In the execution stage, the ROM 70 is addressed for the beginning microinstruction of the NEAT command being emulated, and the proper index register in the IRU 74, or any other register in the NAC 36 or other device in the system attached to the PM bus 28, as may be appropriate, is accessed to execute the microinstruction. The count in the tally 72 is then decremented as each byte affected by the virtual command is processed. During execution, the contents of an index register may be modified. Any such modifications are made to the index register in main memory 32 by the NAC 36 over the PM bus 28. The index match logic 76 of Fig. 3 sees any writes to the first 15 virtual index registers, and modifies the NAC copy of the modified index register in the IRU 74 such that the index registers in the IRU 74 are always kept current. Thus, modifying any of the first fifteen index registers in the main memory 32 of Fig. 2 by the NAC 36 during emulation of a NEAT command, will also modify the copy of the modified index register in the ISU 74 of the NAC 36. Only the first fifteen index registers are kept in the ISU 74 because it has been determined that about 98% of the microinstructions of the NAC 36 utilize only those registers. The NAC 36 also contains a virtual instruction address register (VIAR) 180 in which the address of the next virtual command to be fetched is stored, and a virtual instruction register 181 (VIR) in which is stored the virtual command last fetched by the NAC 36. The NAC 36 also contains a state stack 182, which is actually four 32-bit ERU registers, all of which are connected directly to the PM bus 28. Access to the state stack 182 is controlled by the ERU. decode circuit 183 in a well known manner. The first state stack register (SSR1) of 182 will contain one of two different words of information, depending on why the NAC 36 is passing control to the CPC 22. When control is transferred because of a non-supported command, the SSR1 of 182 will contain a control transfer word, which includes the virtual Op-Code to be executed by the CPC 22 at bits 25-32, the virtual tally field defining the length of the operand at bits 17-24, and virtual indicator bits 1-8 which are set and reset by the NAC 36 during virtual command execution, as required by the command being emulated. When the NAC 36 transfers control because of a condition which it can not handle, the SSR1 of 182 will contain an exception condition word. The second register of the state stack (SSR2) contains various codes and flags for the operation of the NAC 36 in the emulation of a NEAT command, including an INB flag at bit 26 which is modified by the NAC 36 during set-up, and reflects whether the NAC is in the first or second word setup of a two word NEAT command. The third register of the state stack (SSR3) contains various internal indicators, a trap link register and a retry link register. The fourth register of the state stack (SSR4) contains a copy (old copy) of the virtual indicators from the SSR1 as they were loaded into the SSR1 during setup time. It will be understood that the NAC 36 provides an enhancement of the system only, and that the data processing system utilizing the present invention may be operated without the NAC 36 discussed in connection with Figs. 2 and 3. The processors (CPC 22 or NAC 36) of the BPSMP module 18 and the BPSMS module 20 are synchronized to execute commands in parallel, including fetching data from the main memory, and manipulating the data in accordance with instructions either from the ISU memory or the control ROM of the NAC, and then storing the manipulated data back in the main memory. The operations of the processors will be compared at all times, as will be explained, and upon a miscomparison, the processors will be instructed to reexecute their last virtual command until an equal comparison is obtained, or a determination is made that a hard error has occurred. Returning to Fig. 1, a pair of writable control store modules (WCSM) 34 and 36 are provided. Each WCSM includes 8K bytes of read-only memory (ROM) which provide power-up, boot and start-of-day programs, and 64K bytes (32K words) each of random access memory (RAM) which are used for ISU memory (30 of Fig. 2). The ROM programming provides that instructions in the form of data may be fetched from the main memory of the system, and stored in the RAM devices in a WCSM load program. It will be understood that 32K words of ISU instructions will be stored in the WCSM 34, and 32K words will be stored in the WCSM 36. The BPSMP module 18 is connected to the WCSM modules 34 and 36 by an ISU bus 38 and extension bus 40. The BPSMS module 20 is connected to the WCSM modules 34 and 36 by an ISU check (ISUCHK) bus 42 and 44, and to a data integrity module (DINM) 46, to be explained later, by an extension 48 of the ISUCHK bus 42. A PM bus 50, which is the same as bus 28 explained in connection with Fig. 2, is connected between the BPSMP module 18 and the memory subsystem 14, and includes a data portion 52 for primary processor data (PBDAT) and an address portion 54 for primary processor addresses (PAD). A second PM bus 56 is connected between the BPSMS module 20 and the DINM module 46, and includes a data portion 58 for secondary processor data (SBDAT) and an address portion 60 for secondary addresses (SAD). The DINM module 46 is also connected to the PBDAT bus 52 and the PAD bus 54. As will be explained, ISU addresses to the WCSM modules 34 and 36, and ISU instructions from the WCSM modules 34 and 36 are latched onto a latched ISU (LISU) bus 62 connected between the WCSM modules 34 and 36, and the DINM module 46. Among the functions of the DINM module 46, is the comparison of the calculated results after the manipulation of data by either the CPC 22 or the NAC 36 of both of the BPSM modules 18 and 20. If the resultants from the modules 18 and 20 are not the same, the processors (either CPC 22 or NAC 36) which were executing virtual commands are rolled back to retry the last virtual command in which the error occurred. During the retry operation, the data originally fetched in the first try of the execution is resupplied to the executing processors. A virtual command rollback module (VCRM) 64 is provided to store all fetched data and associated error correction code (ECC) check bits from the memory subsystem 14, referred to herein as a fetch log. To accomplish this, the VCRM 64 is connected to the PBDAT bus 52, and has sufficient RAM to store 2K of fetched data entries. As explained in Fig. 3, the NAC 36 keeps its own copy of the first 15 index registers, and any fetches to be made during the emulation of a virtual command to any of these first 15 index registers will be made over an internal bus 71 (see Fig. 3) in the NAC 36 to the NAC's copy of the register in the IRU 74. Thus, it will be understood that any fetches from the first 15 index registers during a NAC virtual command emulation will not appear in the fetch log. Since the index registers may be modified during the execution of an instruction, the contents of the index register in the IRU 74 of the NAC 36 may not be the same as when the command was first tried. Thus, the VCRM 64 also contains an index register log (IR log) which contains an original copy of the first 15 index registers of the main memory 32 of Fig. 2, as those index registers appeared in the interpret stage of the NAC 36 for the current virtual command, and a second or modified copy of the first 15 index registers as they may be modified during the instruction stage. If the virtual command is successfully executed, the modified copy in the IR log becomes the original copy for the subsequent virtual command, and the original copy is used to record modifications during the execution of that subsequent command. If the virtual command execution is not successful, firmware restores the contents of the original copy of the IR log to the main memory 32, which is simultaneously stored in the IRU 74 by the IR match logic 76 of Fig. 3. The NAC 36 is then returned to its interpret stage, and the execution of the virtual command is retried. It will thus be understood that the IR log described will not be needed in the case of CPC virtual command execution because data fetched from the first 15 index registers will appear, in that case, in the data fetch log. The VCRM 64 is also connected to the LISU bus 62 by a bus extension 75. The VCRM 64 contains a RAM for storing the ISU addresses provided by the BPSMP 18 in a trace log, which may be used by firmware for diagnostic purposes. The trace log RAM stores up to 2K of ISU address entries while trace is enabled. The trace log may also be used, if desired, for backing up the CPC pipeline. As discussed in the aforementioned NCR/32 General Information publication, the CPC 22 of Fig. 2 uses external registers (ERUs) to, among other things, provide for communication between the 32 bit chip set devices of the processor modules 18 and 20, and for user-defined control signals to be set and monitored by the CPC 22. The other devices of the 32 bit chip set, the ATC 24, EAC 34 and NAC 36, and various modules of the system have similar ERU capabilities. A system dependent function module (SDFM) 78 is provided which includes ERU registers (not shown) for accepting, modifying and displaying individual bits of a selected ERU by a user for the operation and control of the data processing system of Fig. 1. The I/O subsystem 12 of Fig. 1 includes a primary I/O bus 80 having a primary I/O data (PIODAT) portion 82 and a primary address (PIOADR) portion 84. A pair of basic I/O modules (BIOM) 86 and 88 are provided, one being a primary module (BIOMP) and one being a secondary (BIOMS) module. Each BIOM module 86 and 88 includes an ATC chip, which is the same as the ATC 24 of Fig. 4, and two NCR/32-500 system interface controllers (SIC) chips, as described in U.S. Patent No. 4,387,441, issued June 7, 1983 to Kocol et al. for "Data Processing System Wherein At Least One Subsystem Has A Local Memory and A Mailbox Memory Within The Local Memory for Storing Header Information," and which is owned by the assignee of the present invention. The BIOMS module 88 has a second I/O bus 90 having an I/O data (SIODAT) portion 91 and an I/O address (SIOADR) bus 92. A DINM module 94 (which is similar to the DINM module 46 of the processor subsection 10) is connected between the primary I/O bus 80 and the secondary I/O bus 90 for providing data integrity checks in the I/O subsystem 12. Various I/O personality modules 93 may be connected to the BIOMP 86 to provide selected system-to-system or peripheral interface channels of various bandwidths and using various protocols. The main memory subsystem 14 includes a plurality of memory arrays 100, and a dual-port memory control (DMCM) 102. Each memory array 100 has a central processor path having a data portion (CPMDAT) 104 and an address portion (CPMADR) 106, and an I/O path having a data portion (IOMDAT) 108 and an address portion (IOMADR) 110. Thus, the DMCM 102 may allow one of the BPSM modules 18 or 20 to access one memory array 100, while allowing one of the BIOM modules 86 or 88 to to access another memory array 100. The DMCM 102 also includes a prefetch circuit. Fig. 4 is a block diagram of one of the WCSM modules 34 or 36 of Fig. 1. It will be understood that the WCSM modules 34 and 36 are identical. A bi-directional BISU bus 120 is internal to the WCSM modules 34 for providing communication between various elements, to be described. The ISU bus 38, shown in Fig. 1, is connected to a transceiver 122, which is connected to the BISU bus 120. Also, the ISUCHK bus 42 shown in Fig. 1 is connected to a transceiver 124, also connected to the BISU bus 120. The transceivers 122 and 124 may be 74F245 devices available from Fairchild. A plurality of address latches 126, 127, 128 and 129 have their inputs connected to the BISU bus 120. Each of the address latches 126-129 may be formed of 74F373 devices available from Fairchild. The output of the address latch 126 is connected to the LISU bus 62, shown in Fig. 1. The output of the address latch 127 is connected to a data parity generator 130, a PROM 132, and data latch 133. The output of the data latch 133 is connected to the data inputs of a pair of memory banks 134 and 135. The output of the address latch 128 is connected to the address inputs of the memory bank 134, and the output of the address latch 129 is connected to the address inputs of the memory bank 135. A first comparator 136 compares the output of the address latch 126 on LISU bus 62, with the output of the address latch 127. If the comparison not equal, an error signal (ADRERR2) is placed on its output 137. A second comparator 138 compares the output of address latch 128 with the output of address latch 129. If the comparison is not equal, an error signal (ADRERR1) is placed on its output 139. The parity generator 130 may be formed of 74S280 devices available from Fairchild, and the data latch 133 may be formed of 74F374 devices available from Fairchild, the boot PROM 132 is formed by 82S191 devices available from Fairchild to form a 16K by 16 bit programmable read only memory for containing boot routines. The comparators 136 and 138 may be formed of 74F521 devices of available from Fairchild. The memory banks 134 and 135 each may be formed of a 16383 devices available from Mitsubishi, wherein each memory bank 134 and 135 forms a 16K by 18 bit memory bank. The data outputs of the PROM 132 is connected to a data buffer 140, and the outputs of the memory banks 134 and 135 are connected the data buffers 142 and 143 respectively. The outputs of the data buffers 140, 142 and 143 are connected to the BISU bus 120. The data buffers 140, 142 and 143 may be formed of 74F244 devices available from Fairchild. After the PROM 132 has been programmed in a well known manner, a CPC 22 of Fig. 2 may execute a boot program from PROM 132 by placing a PROM address on the ISU bus 38. The transceiver 132 places the PROM address on the BISU bus 120 which is latched into latches 126 and 127. The PROM address is then directed to the PROM 132, and the microinstruction to be executed is outputted by the PROM 132 to the buffer 140, which places the microinstruction on the BISU bus 120. The transceiver 122 then places the microinstruction on the ISU bus 38 for execution by the CPC 22 of Fig. 2. During the boot routine in PROM 132, microinstructions to be stored in the ISU banks 134 and 135 are fetched from the main memory 32 by the CPC 22 and placed on the ISU bus 38 of Figs. 1 and 4. The microinstruction data is then placed by transceiver 122 of Fig. 4 on the BISU bus 120 and latched into latches 126 and 127. A parity generator 130 then adds a parity bit to the microinstruction data, which is stored in data latch 133 to be inputted into one of the memory banks 134 or 135. The address of the microinstruction is placed by the CPC 22 of Fig. 1 on the ISU bus 38 and placed by the transceiver 122 on the BISU bus 120 and latched into latches 128 and 129. The output of the latches 128 and 129 is then addressed to the memory banks 134 and 135, and the memory bank address stores the data in data latch 133 at the outputted address. If the comparator 136 gets a miscompare showing that either the PROM address outputted by latch 126 and 127 or the microinstruction data also outputted by latch 126 and 127 is not the same, an error signal is asserted on conductor 137 to show that a data integrity error exists. The comparator 138 compares the memory bank address outputted by latches 128 and 129 and if a miscomparison is found, a data error is raised on conductor 139 to show that a data integrity error in the ISU memory address exists. Later, when the CPC 22 of Fig. 2 is emulating a virtual command, the address of a microinstruction is placed on ISU bus 38 of Fig. 4. The transceiver 122 then places the address on the BISU bus 120 to be latched into address latches 128 and 129. The address memory bank 134 or 135 places the microinstruction on its respective output, which is buffered either in buffer 142 or 143, and placed on the BISU bus 120 for transmission by transceiver 122 back to the CPC 22 over ISU bus 38. If an error occurs by misoperation of either latch 128 or 129, the comparison by the comparator 138 will not be equal raising a data integrity error condition on conductor 139. The same description of the operation of a CPC in the secondary BPSMS modules 20 can be made wherein the ISUCHK bus 42 and the transceiver 124 are used instead of the previously described ISU bus 38 and transceiver 122. Figs. 5, 6 and 7 are block diagrams of components of the DINM modules 46 of Fig. 1. Fig. 5 is a block diagram of a circuit in the DINM 46 for making a data compare. The PBDAT bus 52 of the PM bus 50 of Fig. 1 is connected to a transceiver 150, whose output is connected to a latch 151 and the input of a driver circuit 152. The output of latch 151 is connected to one input of a comparator circuit 153. The SBDAT bus 58 of the secondary PM bus 56 of Fig. 1 is connected to a transceiver 154 whose output is connected to a second input of the comparator input 153. The output of the driver circuit 152 is connected by bus 155 to the transceiver circuit 154. When data is to be sent from the virtual command processor subsystem 10 of Fig. 1 to the memory subsystem 14, the data is placed on the PBDAT bus 52 by the BPSMP modules 18, and the same data is placed on the SBDAT bus 58 by the BPSMS modules 20. The transceiver 150 of Fig. 5 takes the data from the PBDAT bus 52 and places it in the latch 151 and on one input of the comparator circuit 153. The transceiver 154 takes the data from the SBDAT bus 58 and places it on the other input of the comparator 153. If the data does not compare, an error signal (DATACMP/) is placed on an output 156 of the comparator circuit 153. When data is fetched by the virtual command processor subsystem 10 from the memory subsystem 14 of Fig. 1, the data is actually fetched over the PBDAT bus 52 of the primary PM bus 50. A driver 152 is included in the circuit of Fig. 5 to take the data received by the transceiver 150 from the PBDAT bus 52 and place it over bus 155 to the transceiver 154 to be placed on SBDAT bus 58, such that both of the processor subsystem modules BPSMP 18 and BPSMS 20 may receive the same data. In this case, the processor of both modules 18 and 20 issue, for instance, fetch commands to the main memory, and receive data back from the main memory such that the processors in the modules 18 and 20 may continue with their execution, even though only the fetch command from the processor of module 18 actually fetched the data from the memory subsystem 14. The transceivers 150 and 154 may be made from 74F245 devices available from Fairchild, the latch 151 may be 74F534 devices available from Fairchild, the driver 152 may be 74F244 devices available from Fairchild, and the comparator circuit 153 may be made from 74F521 devices available from Fairchild. Fig. 6 is a block diagram of a circuit for comparing the addresses outputted by the BPSMP module 18 with the addresses outputted by the BPSMS module 20 of Fig. 1. The PAD bus 54 of the primary PM bus 50 has its first 8 bits connected to one input of a comparator 160, and bits 9-24 connected to one input of a second comparator 162. The SAD bus 60 of the secondary PM bus 56 has its first 8 bits connected to the other input of comparator 160, and bits 9-24 connected to the other input of comparator 162. The output of comparator 160 provides a comparison signal (ERUADRCMP/) for addresses over the PM buses 50 and 56 directed to an external register unit (ERU). An AND gate 163 has its inputs connected to the comparator circuit 160 and 162, and its output provides a comparison signal (MEMADRCMP/) for addresses directed to the memory subsystem 14 of Fig. 1. The comparator circuit 160 and 162 may be formed of 74F521 devices available from Fairchild. Fig. 7 is a block diagram of a circuit for providing comparisons of addresses from the processor subsystem modules BPSMP 18 and BPSMS 20 to the instruction storage unit of the WCSM modules 34 and 36. The LISU bus 62 of Fig. 1 is connected to one input of a comparator circuit 165, and ISUCHK bus 48 of Fig. 1 is connected to the inputs of the latches 166 and 167. The output of latch 166 is connected to another input of the comparator circuit 165. Returning to Fig. 4, it can be seen that addresses placed on the ISU bus 38 will be passed to the LISU bus 62 through latch 126. Looking at Fig. 1, ISU addresses placed on the ISUCHK bus 42 by the BPSMS modules 20 are directed to the DINM module 46 by the bus 48. Returning the Fig. 7, a primary ISU address is inputted into the comparator circuit 165 over bus 62 and a secondary ISU address is inputted into the comparator 165 over bus 48 through latch 166. A miscompare by the comparator circuit 165 raises an trap signal (TRAP/) on conductor 168 which causes a trap for both of the processors in the modules 18 and 20. The ISUCHK bus 48 is also connected to a latch 167, as explained, whose output is connected to a parity error checker circuit 170. If a parity error is discovered by circuit 170, a parity error signal (PERR/) is asserted on conductor 171. Thus, the circuit of Fig. 7 detects ISU address errors, and parity errors within the ISU addresses. The comparator circuit 165 may be made up of 74F521 devices available from Fairchild, latches 166 and 167 may be made up of 74F373 devices available from Fairchild, and the parity error detection circuit 170 may be made up of 74S200 devices available from Fairchild. Returning to Fig. 5, an ERU register 175 is provided which receives the comparison signals from the comparators of Figs. 5, 6 and 7. The ERU 175 may be interrogated by the CPC 22 of Fig. 2 to determine the correct error recovery routine to execute depending on the miscomparison found. It will be noted that the latch 151 is connected in such a way that it may latch data either from the PBDAT bus 52 received by the transceiver 157, or data from the ERU register 175 to be placed on the PBDAT bus 52. The ERU register 175 may be formed of 74F240 devices available from Fairchild. It will be understood that similar comparator circuits may be connected to the control portion of the PM busses 50 and 56 of Fig. 1 (not shown) to detect miscomparison and control signals from the processor subsystem modules BPSMP 18 and BPSMS 20. Also, selected bits of the PBDAT bus 52 and the SBDAT bus 58 may be separately compared to determine miscomparison on ERU write data, although the comparison circuit Fig. 5 will detect ERU data miscompares. Any of the miscompare signals discussed in connection with Figs. 5, 6 and 7 causes an interrupt to the processors of the BPSMP modules 18 and the BPSMS modules 20, and the miscompare signals are placed in an ERU register such that the interrupted processors may query the interrupt signals. It will be noted that the processors of both of the BPSMP modules 18 and BPSMS modules 20 are interrupted and perform a proper interrupt routine in parallel to correct a detected miscompare. As previously mentioned, the DINM module 94 of Fig. 1 is similar to the DINM module 46 for detecting miscompares in the IO subsystem 12. However, the ISU comparison of Fig. 7 is not used in the DINM module 94, as only the IO data and IO addresses are being compared. Figs. 8A-41B, when taken together, form a schematic diagram of the VCRM module 64 of Fig. 1. All of the input and output lines of Figs. 8A-41B have been labeled to assist in their correct connection. Each element is shown using its standard symbol, including pin numbers, and labeled with its industry standard part number. The symbols for the two-state devices are from the IEEE Standard Graphic Symbols for Logic Diagrams (Two-State Devices), IEEE 91-1973, ANSI Y32.14-1973, published by the Institute of Electrical and Electronic Engineers, 345 East 47th Street, New York, N.Y. 10017. Figs. 13A-13C, when assembled as shown in Fig. 13, is a schematic diagram of an ERU register which is used as a status register, ERU 78IN. Status register ERU 78IN may be interrogated by any module or VLSI chip having ERU communication capabilities to receive the status of the VCRM module 64. Figs. 14A and 14B, when joined along line c-c, forms a schematic diagram for an input latch for receiving data from the PBDAT bus 52 of Fig. 1 (labeled CPDAT01-CPDAT32). Figs. 16A-16D, when assembled in accordance with Fig. 16, forms a schematic diagram of a driver circuit for outputting data on the PBDAT bus 52. Figs. 22-26 are schematic diagrams of the RAM chips which form the aforementioned fetch log of the VCRM 64. It will be noted in Figs. 22-26, that the address for the fetch log is made up of signals A0-A10. Fig. 18 is a schematic diagram of a multiplexer for multiplexing one of either the signals ALPTR0-ALPTR10 or the signals ARBPTR0-ARBPTR10 to the A0-A10 signals. The ALPTR0-ALPTR10 signals are used to form the fetch log address until a miscompare is found. The logic of the VCRM module 64 then rolls back the address of the fetch log, using the ARBPTR0-ARBPTR10 signals for the address. If the ARBPTR address is increased until it reaches the ALPTR address, as determined by the comparator of Fig. 19, without another error occurring, the rollback is complete and the processor continues as it was before rollback. Figs. 20A and 20B, joined along line d-d, is a schematic of a counter for counting the ARBPTR address. Figs. 21A and 21B, joined along line e-e, is a schematic of a counter for counting the ALPTR address. Figs. 31-35 are schematic diagrams of the RAM chips which form the aforementioned index register log of the VCRM module 64. These RAM chips provide a memory which stores two sets of 15 registers, each 32 bits and 4 parity bits wide. As mentioned, one set of registers is for storing copies of the original index registers at the start of a virtual command, and one set of registers is for storing copies of any index registers which are modified during execution of the virtual command. It will be noted that the address for the RAM chips of Figs. 31-35 is formed by the IRA0-IRA4 signals. The IRA0 bit determines which one of the two index registers at each location in the IR log is the original or valid index register, and which one is the modified copy of an index register. Figs. 28A and 28B, joined along line f-f, is a schematic diagram of a decoder circuit for decoding an address on the PAD address bus 54. of Fig. 1. The circuit of Fig. 28B determines if the index registers should be stored in the IR log from the CPDAT bus 52, or if the index registers should be placed on the CPDAT bus 52 for transfer to the IRU 74 of the NAC 36 (see Fig. 3). If it is determined that the index register is to be stored in the IR log, the IRSTORE/ signal is "0", and a multiplexer 300 of Fig. 28A multiplexes the CPAD03/-CPAD06/ signals (the index register number) from the PAD bus 56 as the IRA1-IRA4 address signals. If the index registers in the IR log are to be placed on the CPDAT bus 52, the IRSTORE/ signal is a "1", and a counter 302 of Fig. 28A supplies an address to the multiplexer 300 to be multiplexed as the address IRA1-IRA4 to the IR log RAM's of Figs. 31-35. A pair of decoders 304 and 306 decode the address IRA1-IRA4 to a single bit DEC1-DEC15 dependent on the numeric value of the IRA1-IRA4 address. Figs. 30A and 30B, joined along line h-h, and Figs. 29A and 29B, joined along line g-g, together form a schematic diagram of a pair of columns of flip/flops, the first column having modified bit (MB01-MB15) outputs, and the second column having valid bit (VB01-VB15) outputs. During rollback, the valid bit flip/flop, for instance flip/flop 308 of Fig. 30A for register 1, will indicate which of the two index registers stored in the RAM chips 31-35 for index register 1 is the original or valid register to be placed on the PBDAT bus 52. This is done by the action of a multiplexer 312 of Fig. 30A, and a multiplexer 314 of 29A, which together select the proper valid bit for the addressed register and use this valid bit to form IRA0 through the exclusive OR gate 316 of Fig. 30B. If the output of the flip/flop 308 is "0", the first of the two index registers at the address formed by IRA1-IRA4 in the IR log will be used, and if the output of the flip/flop 308 is "1", the second will be used. The modified bit of a flip/flop 310 of Fig. 30A for register 1 indicates whether the index register 1 has been modified during the current virtual command execution, "0" for "no" and "1" for "yes". At the successful completion of the virtual command execution, all valid bits having a turned on modified bit are toggled (thus making the modified index register the new original register) and the modified bit is turned off. Figs. 39 and 40 are schematic diagrams of RAM chips for storing the trace log, previously discussed. Figs. 38A and 38B joined along line j-j is a schematic diagram of a counter for forming the trace log address (TLA0-TLA10), and Figs. 41A and 41B, joined along line k-k, is a schematic diagram for an input buffer from the LISU bus extension 75 to the VCRM 64 (see Fig. 1) for the trace log. The control signals for the VCRM module 64 are as follows: The PMRST/, CDPVTL/, CPMEMDIE, CPMAEL, CPMDEE, and EBAV signals are fully explained in the aforementioned NCR/32 General Information publication under the signal names PMRST/, PVT/, DIE/, MAE/, MDEE/ and BAV signals, respectively. The bits of the control register (XOUT78) input to the VCRM module 64 are as follows: The bits of the status register (XIN78) are as follows: Bit Signal Fig. Description 1 VCRMEN 13A Indicates VCRM is enabled. 2 LE 13A Indicates CPC is enabled for fetch logging. 3 RB 13A Indicates hardware is in rollback mode. 4 IRLPFAIL 13A Indicates interrupt due to a parity error while reading index register out of old copy. 5 VCRMFULL 13A Indicates interrupt due to a full log. 6 CPCMEMOP 13A Signals that the last memory operation was from the CPC. 7 DTRACEN 13C Indicates that the trace log has been enabled by the control register bit 4, and that no DINM trap has occurred. 8 XINIREN 13C Indicates that the control register bit has enabled transferring in one of the index registers. 9-19 ALPTR0-ALPTR9 13A Eleven fetch log address bits to indicate the number of entries in the fetch log. ALPTR10 13C Fig. 42 is a flow chart for programming for the CPC 22 of Fig. 2 for the CPC 22 to set up and execute a NEAT command when no NAC 36 is present or the executed NEAT command is not supported by the NAC 36. The NEAT command to be emulated by the CPC are fully set out in a NEATVS manual available from the NCR Corporation, Dayton, Ohio 45479 under stock number 57-9481-47, and a NEATVS, VRX-3 manual available from the NCR Corporation under stock number ST-9481-46. This is done in a two step process, a virtual command setup starting at 350, and virtual command execution starting at 355. At 351, the CPC 22 resets the VCRM logs by signals to the command register XOUT78 in the VCRM, as explained, and also enables bit 15 to reset the fetch log pointer and bit 2 to enable the fetch log. At 352, the CPC 22 saves virtual indicators from ERU 17 (not shown) as may be needed by the CPC during its set up stage in the event of a rollback. At 353, the CPC fetches the next NEAT virtual command to be emulated from the main storage unit (MSU) made up of memory arrays 100 of Fig. 1 of the memory subsystem 14. At 354 the CPC calculates the effective address of source and destination operands by decoding the type of NEAT instruction, by fetching the contents of operand index registers, and by adding the operand partial addresses to the index register content, all as explained in the aforementioned NEATVS manuals. Also, the CPC saves the variable LOCWORK in a convenient work register (not shown), which is the contents of the CPC's virtual control register (VCR) (not shown) and indicates the next virtual command to be fetched. The variable LOCWORK is used later in a rollback operation, to be explained in connection with Figs. 44A and 44B. At 355, the CPC starts to execute the virtual command. This is done at 356 by accessing the WCSM Modules 35 and 36 to fetch from the ISU the proper microinstructions to emulate the NEAT command. Fig. 43 is a flow chart for programming of the NAC 36 of Fig. 2 in order to set up and execute a NEAT virtual command. The NEAT virtual command set up starts at 360, and at 361 the NAC 36 signals the VCRM module 64 of Fig. 1 by a NVCSU signal (see Fig. 2, line 37), to reset the log pointers in the VCRM. At 362, the NAC 36 fetches the next NEAT virtual command from the MSU of the memory subsection 14. At 363, the NAC 36 calculates the effective address of the source and destination operands similar to that discussed in connection with block 354 of Fig. 42. At 364, the virtual command execution phase starts. At 365, the NAC 36 determines whether the NAC supports the particular NEAT command to be emulated. If the NAC supports the NEAT command to be emulated, the microinstructions to emulate the NEAT command is fetched from the NAC ROM 70 (see Fig. 3), and the NEAT virtual command is implemented at 366. If the NAC does not support the particular NEAT instruction to be emulated, the NAC drops its busy line (not shown) at 367. The CPC recognizes the drop, and interrogates the NAC status in the SSR1 of the state stack 182 of Fig. 3 to determine that it is to execute the NEAT virtual command, and gets a copy of the NEAT virtual command from bits 32-35 of SSR1. At 368, the CPC 22 executes the NEAT virtual command as discussed in connection with block 356 of Fig. 42. Figs. 44A and 44B, when joined at connectors A and B, form a flow chart for programming of the CPC 22 and NAC 36 of Fig. 2, for effecting a rollback operation. In the event of an interrupt, block 370, the CPC 22 starts the execution of an interrupt routine. At 371, the CPC 22 turns off the log enable (LE) flag in the VCRM module 64 through its control register by turning off bit 10 with an XOUT78 signal. At 372, the CPC 22 vectors to various service routines, as indicated by the interrupt bits of the ERU 175 of the DINM module 46 (see Fig. 5). If the interrupt is from the DINM module 46, the program goes to 373, wherein the firmware determines if a virtual command rollback using the VCRM module 64 should be invoked. If the interrupt is one which requires a virtual command rollback, the program goes to block 374 wherein the CPC 22 determines if a NAC 36 is present in the system. At 376, for a system wherein a NAC 36 is present, the CPC 22 sets bit 5 of the control register ERU (XOUT78) to set the virtual IR log address to zero. The CPC 22, at 377, then reads the first entry in the IR log of the VCRM 64 through the status register (XIN78). At 378, the CPC 22 writes the first IR log entry into the index register unit 74 (see Fig. 3) of the NAC 36, as previously discussed. The address is then incremented by 4 to address the next index register entry in the IR log of the VCRM 64. At 379, a test is made to see if the address is over 40H, which indicates if all 15 index registers have been read from the IR log. If not, the program returns to block 377 to get the next IR log entry. When all index registers are thus restored to the NAC 36, the CPC 22, at 380, sets bit 13 in the control register XOUT78, to reset the IR log. At 381, the CPC 22 reads the state stack register two (SSR2) of the NAC 36 to get the INB flag. If the INB flag is true, this indicates that the NEAT command being emulated at the time of the interrupt was in the set-up stage of the second word of a two word command. The contents of the VIAR register 180 of Fig. 3, which contains the virtual address of the next command to be fetched by the NAC, and the virtual control register of the CPC 22, previously discussed, must be placed back in their initial condition. This is done in block 382 wherein the CPC 22 places the content of the NAC VIAR register 180 in the CPC's VCR register, and subtracts 4 from its VCR address to arrive at the initial VCR virtual command address. If the INB flag is true at 383, the NAC 36 was in the second word of a two word command when the interrupt occurred, and an additional 4 must be subtracted from the CPC's VCR to get back to the initial VCR address. At 385, Fig. 44B, the CPC 22 writes the VCR address determined in block 382-384, back into the NAC's VIAR register 180. At 385, the CPC 22 reads SSR4 of the state stack 182 of Fig. 3 to obtain the old copy of the virtual indicator flags. At 387, the old copy flags are written into the present copy in SSR1 to return the virtual indicators in SSR1 to their original, unmodified state. The CPC 22 and NAC 36 are now restored to their initial conditions. The program then goes to 395, wherein bit 3 of the control register of the VCRM module 64 is turned on, and rollback is started. If no NAC 36 is present at 374 (or the NEAT command is not supported by the NAC 36), the program goes to 388 of Fig. 44B, wherein the CPC 22 gets the current virtual opcode from its set up register one (SUR1) (not shown). At 389, bit 16 of SUR1 is checked to determine if a two word or double stage command was being executed when the interrupt occurred. If not, the program goes to 393. If yes, the restore first-in-first-out stack (RF1F0) (not shown) is checked to determine if the interrupt occurred in setup. If not, the program goes to 392. If the interrupt occurred in setup, the contents of the CPC VCR register is compared with the value of LOCWORK stored at 354 of Fig. 42, to determine if both words of the command were fetched when the interrupt occurred. If not, the program goes to 393. If yes, the second word was fetched, and 4 is subtracted at 392 from the address in the CPC's VCR to get back first word of the command. At 393, 4 is subtracted in all cases from the address in the CPC's VCR to get back to the initial VCR address. In block 394 the CPC gets the original virtual indicator flags stored in block 352 of Fig. 42, and restores them to ERU 17 (not shown) as the original virtual indicators, and the rollback is started at block 395, as previously discussed. The virtual indicators of ERU 17, the VCR, the SUR1 and the RFIFO of the NCR 32 bit CPC 22 are fully explained in the aforementioned NCR/32 General Information publication, and are well understood.

Claims: A fault tolerant data processing system, including processing means (36) adapted to execute commands, said processing means (36) including index register storage means (74) adapted to store copies of modifiable index registers usable in the executing of commands by said processing means (36); main memory means (32) including storage locations adapted to store modifiable index register data of said index registers; and data bus means (52) connected between said processing means (36) and said main memory means (32) for transmitting index register data therebetween, characterized by a plurality of data storage registers arranged in memory locations, each of said memory locations having two data storage registers, one for storing original index register data and one for storing modified index register data; valid indicating means (308,310) connected to said plurality of data storage registers for determining which one of said data storage registers at each of said memory locations contains original index register data, and which one contains modified index register data; and input/output means (300,302,312,314,316) responsive to said valid indicating means (308,310) and connected between said data bus means (52) and said plurality of data storage registers, said input/output means being adapted to write modified index register data from said data bus means (52) to those data storage registers determined by said valid indicating means (308,310) to contain modified index register data during a command execution by said processing means, and adapted to read original index register data to said data bus means (52) from those data storage registers determined by said valid indicating means (308,310) as containing original index register data during a rollback operation of said processing means (36), and wherein said input/output means includes a counter (302) adapted to sequentially count said memory locations from which data is to be read, and access means connected to said counter for accessing each of said memory locations responsive to the count of said counter. A fault tolerant data processing system according to claim 1, characterized in that said valid indicating means includes selectively activatable toggle means (308) for changing the determination for each of those data storage registers indicated as containing modified index register data to an indication of containing original index register data at the end of each command execution by said processing means (36). A fault tolerant data processing system according to claim 2, characterized in that said valid indicating means further includes modified indicating means (310) responsive to modified index register data being stored in one of said data storage registers at any of said memory locations, said modified indicating means (310) being adapted to indicate which memory location has received modified index register data during the command execution by said processing means (36). A fault tolerant data processing system according to claim 3, characterized in that said valid indicating means includes coupling means connecting said modified indicating means (310) and said toggle means (308) such that said toggle means (308) is activated for those memory locations indicated by said modified indicating means as having received modified index register data during execution of a command by said processing means (36). A fault tolerant data processing system according to any one of claims 1 to 4, characterized in that said input/output means further includes: addressable means for receiving an address of one of said memory locations into which data is to be written; and multiplexer means (300) having a first input connected to said counter (302), a second input connected to said addressable means, and an output connected to said access means; said multiplexer means (300) being adapted to multiplex one of said count and said address for accessing one of said memory locations. A fault tolerant data processing system according to claim 5, characterized by decoding means (304,306) connected to the output of said multiplexer means (300), said decoding means being adapted to decode the output of said multiplexer means (300) and to access said valid indicating means (308,310). A method of controlling the operation of a fault tolerant data processing system, characterized by the steps of: executing commands and performing rollback operations with a processor (36); storing modifiable index register contents in said processor (36) for use in said command executions; storing during sequential command executions, original index register contents and modified index register contents in a plurality of paired data storage registers arranged in memory locations; sequentially counting said memory locations and accessing each of said memory locations in response to said count and indicating in a plurality of corresponding valid indicating means (308,310) which of said paired data storage registers contain the original index register contents at each memory location; and transmitting during a rollback operation, the original data register contents from each of said memory locations to said processor responsive to the indication of the valid indicating means corresponding to that memory location. A method according to claim 7, characterized by the step of toggling at the beginning of each command execution, only those indications of each valid indicating means corresponding to memory locations which received modified index register contents during the previous command execution, such that those corresponding data storage registers for storing modified index register contents become data storage registers indicated as storing original index register contents for the subsequent command execution.

Inventors: ARMSTRONG ROLFE DOUGLAS, COLE VICTOR FRANK, CORCORAN JOHN MICHAEL, PATEL CHIMAN REVABHAI, ARMSTRONG, ROLFE DOUGLAS, COLE, VICTOR FRANK, CORCORAN, JOHN MICHAEL, PATEL, CHIMAN REVABHAI
Applicants: NCR INT INC, NCR INTERNATIONAL, INC.
Application year: 1986
Main classification: G06F11
IPC codes: G06F11