WO2000016183A1 - Calendar clock caching in a multiprocessor system - Google Patents

Calendar clock caching in a multiprocessor system Download PDF

Info

Publication number
WO2000016183A1
WO2000016183A1 PCT/US1999/009303 US9909303W WO0016183A1 WO 2000016183 A1 WO2000016183 A1 WO 2000016183A1 US 9909303 W US9909303 W US 9909303W WO 0016183 A1 WO0016183 A1 WO 0016183A1
Authority
WO
WIPO (PCT)
Prior art keywords
calendar clock
instruction
cached
processors
processor
Prior art date
Application number
PCT/US1999/009303
Other languages
French (fr)
Inventor
Clinton B. Eckard
William A. Shelly
Original Assignee
Bull Hn Information Systems Inc.
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Bull Hn Information Systems Inc. filed Critical Bull Hn Information Systems Inc.
Priority to EP99921532A priority Critical patent/EP1121630A4/en
Publication of WO2000016183A1 publication Critical patent/WO2000016183A1/en

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/22Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
    • G06F11/2205Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing using arrangements specific to the hardware being tested
    • G06F11/2236Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing using arrangements specific to the hardware being tested to test CPU or processors
    • G06F11/2242Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing using arrangements specific to the hardware being tested to test CPU or processors in multi-processor systems, e.g. one processor becoming the test master
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/22Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
    • G06F11/26Functional testing
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/22Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
    • G06F11/24Marginal checking or other specified testing methods not covered by G06F11/26, e.g. race tests
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/04Generating or distributing clock signals or signals derived directly therefrom
    • G06F1/14Time supervision arrangements, e.g. real time clock
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F12/00Accessing, addressing or allocating within memory systems or architectures
    • G06F12/02Addressing or allocation; Relocation
    • G06F12/08Addressing or allocation; Relocation in hierarchically structured memory systems, e.g. virtual memory systems
    • G06F12/0802Addressing of a memory level in which the access to the desired data or data block requires associative addressing means, e.g. caches
    • G06F12/0806Multiuser, multiprocessor or multiprocessing cache systems
    • G06F12/0811Multiuser, multiprocessor or multiprocessing cache systems with multilevel cache hierarchies
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F12/00Accessing, addressing or allocating within memory systems or architectures
    • G06F12/02Addressing or allocation; Relocation
    • G06F12/08Addressing or allocation; Relocation in hierarchically structured memory systems, e.g. virtual memory systems
    • G06F12/0802Addressing of a memory level in which the access to the desired data or data block requires associative addressing means, e.g. caches
    • G06F12/0806Multiuser, multiprocessor or multiprocessing cache systems
    • G06F12/0815Cache consistency protocols
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F12/00Accessing, addressing or allocating within memory systems or architectures
    • G06F12/02Addressing or allocation; Relocation
    • G06F12/08Addressing or allocation; Relocation in hierarchically structured memory systems, e.g. virtual memory systems
    • G06F12/0802Addressing of a memory level in which the access to the desired data or data block requires associative addressing means, e.g. caches
    • G06F12/0806Multiuser, multiprocessor or multiprocessing cache systems
    • G06F12/0815Cache consistency protocols
    • G06F12/0831Cache consistency protocols using a bus scheme, e.g. with bus monitoring or watching means
    • G06F12/0833Cache consistency protocols using a bus scheme, e.g. with bus monitoring or watching means in combination with broadcast means (e.g. for invalidation or updating)

Definitions

  • the present invention generally relates to multiprocessing computer systems, and more specifically to exhaustively testing interactions among multiple tightly coupled processors.
  • L2 cache is traditionally backed by an even larger main memory.
  • the L I and L2 caches are typically comprised of high speed Static Random Access Memory (SRAM), and the main memory is typically comprised of slower speed Dynamic Random Access Memory (DRAM).
  • SRAM Static Random Access Memory
  • DRAM Dynamic Random Access Memory
  • a single L I cache of a single processor is allowed to contain a cache line corresponding to a given block of main memory.
  • a conflict arises among their cache controllers. This is conflict is typically resolved in a tightly coupled multiprocessor system with an inte ⁇ rocessor cache protocol communicated over an inte ⁇ rocessor bus.
  • a first processor may be required to reserve a cache copy of the contested block of memory. This is communicated to the other processors. However, if another (second) processor already has reserved the contested block of memory, the first processor must wait until the block is unlocked, and potentially written at least back to the L2 cache.
  • Debugging a cache protocol can be quite difficult. This stems from a number of interrelated factors. First, the multiple processors are each typically operating asynchronously from each other at extremely high frequencies or rates of speed. Secondly, the LI caches, and their cache controllers are typically operating at essentially the same speed as the processors. Third, instruction cache misses for test instruction sequences can delay instruction execution by relatively long, somewhat variable, periods of time. There are a number of reasons for this later problem. One reason is it may be possible to retrieve a cache line of instructions from LI cache or from L2 cache, or it may be necessary to load the cache line from slower main memory. The DRAM comprising the main memory typically operates quite a bit slower than the processor (and LI cache).
  • Another problem is that the time it takes to fetch a block of instructions from the main memory may vary slightly. There are a number of causes of this. First, accessing different addresses in the DRAM may take slightly different times. This is partly because of differing signal path lengths. Secondly, different memory banks may have slightly different timing. This is true, even when the specifications for the memories are equivalent. This is particularly true, when the memories are self-timed. This problem may be accentuated when multiple processors or multiple memories share a common memory access bus, where the actions of one processor or memory may lock out, and stall, another processor or memory. Note also that asynchronous Input/Output (I/O) operations to memory can have seemingly random effects on timing.
  • I/O Input/Output
  • NOP instructions are typically executed out of blocks of instructions held in cache lines. Each time execution crosses a cache line boundary, there is a potential for a cache miss, resulting in retrieving the cache line from slower memory. There is also a potential at that point that execution may be delayed for one or more cycles due to memory bus contention. Each of these potential delays introduces a potential window that did not get tested utilizing this set of solutions. Note also that virtual memory program activity must also be accounted for.
  • Testability and thus reliability through earlier fault detection would be significantly increased in tightly coupled multiprocessor systems if the interactions among multiple processors could be accurately exhaustively tested, with the guarantee that no timing windows were inadvertently left untested. This testability would be further enhanced by a mechanism for recording states and state transitions over a series of clock cycles for each of the processors being tested.
  • FIG. 1 is a block diagram illustrating a General Pu ⁇ ose Computer, in accordance with the present invention
  • FIG. 2 is a block diagram of a more detailed view of a multiprocessor data processing system, in accordance with the present invention
  • FIG. 3 is a block diagram illustrating a processor (CPU) module as shown in FIG. 2;
  • FIG. 6 is a block diagram of a piplelined processor as shown in FIG. 3;
  • FIG. 7 is a flowchart illustrating exhaustive testing of the interaction between multiple processors in a single system, in accordance with the present invention.
  • FIG. 10 is a flowchart illustrating operation of a Transmit Sync signal (TSY C) instruction, in accordance with the present invention
  • FIG. 1 1 is a flowchart illustrating operation of a Receive Sync signal (WSYNC) instruction, in accordance with the present invention
  • FIG. 12 is a flowchart illustrating operation of a delay (DELAY) instruction, in accordance with the present invention.
  • FIG. 13 is a block diagram illustrating the trace cache shown in FIGs. 4 and 6;
  • FIG. 14 is a flowchart illustrating operation of a Load Calendar Clock (LCCL) instruction, in accordance with the present invention
  • FIG. 15 is a flowchart illustrating operation of a processor after receiving a calendar clock interrupt, in accordance with the present invention.
  • FIG. 16 is a flowchart illustrating operation of a Read Calendar Clock (RCCL) instruction, in accordance with the present invention.
  • RCCL Read Calendar Clock
  • bus will be used to refer to a plurality of signals or conductors which may be used to transfer one or more various types of information, such as data, addresses, control, or status.
  • assert and “negate” will be used when referring to the rendering of a signal, status bit, or similar apparatus into its logically true or logically false state, respectively. If the logically true state is a logic level one, the logically false state will be a logic level zero. And if the logically true state is a logic level zero, the logically false state will be a logic level one.
  • FIG. 1 is a block diagram illustrating a General Purpose Computer 20.
  • the General Pu ⁇ ose Computer 20 has a Computer Processor 22, and Memory 24, connected by a Bus 26.
  • Memory 24 is a relatively high speed machine readable medium and includes Volatile Memories such as DRAM, and SRAM, and Non-Volatile Memories such as, ROM, FLASH, EPROM, EEPROM, and bubble memory.
  • Volatile Memories such as DRAM, and SRAM
  • Non-Volatile Memories such as, ROM, FLASH, EPROM, EEPROM, and bubble memory.
  • Secondary Storage 30 External Storage 32
  • output devices such as a monitor 34
  • input devices such as a keyboard (with mouse) 36
  • printers 38 included in Secondary Storage 30 includes machine-readable media such as hard disk drives, magnetic drum, and bubble memory.
  • External Storage 32 includes machine- readable media such as floppy disks, removable hard drives, magnetic tape, CD-ROM, and even other computers, possibly connected via a communications line 28.
  • Secondary Storage 30 and External Storage 32 is primarily for convenience in describing the invention. As such, it should be appreciated that there is substantial functional overlap between these elements.
  • Computer software such test programs, operating systems, and user programs can be stored in a Computer Software Storage Medium, such as memory 24, Secondary Storage 30, and External Storage 32.
  • Executable versions of computer software 33 can be read from a Non-Volatile Storage Medium such as
  • FIG. 2 is a block diagram of a more detailed view of a multiprocessor data processing system, in accordance with the present invention.
  • the multiprocessor data processing system 80 comprises a plurality of modules coupled together via an intramodule bus 82 controlled by a storage control unit 86.
  • each such module 84, 88, 90 is contained on a single board, with the boards connecting into a backplane.
  • the backplane includes the intramodule bus 82.
  • sixteen modules are shown.
  • the system includes four (4) processor (“CPU") modules 90, four (4) Input/Output (“IOU”) modules 88, and eight (8) memory (“MMU”) modules 84.
  • CPU processor
  • IOU Input/Output
  • MMU memory
  • Each of the four Input/Output (“IOU") modules 88 is shown coupled to secondary storage 30. This is representative of the function of such IOU modules 88.
  • Each IOU module 88 will typically contain a plurality of IOU processors (not shown).
  • Each of the eight memory modules 84 contains memory 24 and a memory controller (not shown). This memory 24 is typically Dynamic Random Access Memory (DRAM). Large quantities of such memory 24 are typically supported.
  • DRAM Dynamic Random Access Memory
  • Large quantities of such memory 24 are typically supported.
  • a Clock Management Unit 98 which supplies a standard clock signal 99 to the remainder of the system 80. As clock signals are ubiquitous in digital computer architectures, the clock signal 99 will not be shown further herein except where relevant. Note also that in the preferred embodiment, multiple Clock Management Units 98 are utilized to provide a redundant clock signal 99.
  • FIG. 3 is a block diagram illustrating a processor (CPU) module 90 as shown in FIG. 2.
  • the CPU module 90 contains a plurality of processors (CPU) 92 and a cache memory system 94.
  • each processor (CPU) module 90 contains up to four (4) processors (CPU) 92.
  • the processors 92 and the cache memory system 94 are coupled together and communicate over an intraprocessor bus 96.
  • the cache memory system 94 is shared among the processors 92 on the CPU module 90 and maintains cache copies of data loaded into those processors 92.
  • the cache memory system 94 is considered here a Level 2 cache and is coupled to and communicates with the storage control system (SCU) 88 over the intramodule bus 82 in order to maintain cache coherency between Level 1 cache memories 94 on each of the processor modules 90, as well as between cache memories 54, 56 in each of the processors 92, and on the IOU modules 88.
  • the SCU 88 also maintains coherency between the various cache memories 94, 54, 56, and the typically slower speed memory in the MMU modules 84.
  • a single block of memory will be owned by a single cache or memory at potentially each level in the memory hierarchy. Thus, a given memory block may be owned by one Level 1 cache 54, 56, by one Level 2 cache 94, and by one MMU 84.
  • FIG. 4 is a block diagram of a processor 92 shown in FIG. 3.
  • the processor 92 communicates with the bus 96 utilizing a bus interface 78.
  • the bus interface is bidirectionally coupled to a unified local cache 256.
  • Cache memories such as this unified local cache 256, are typically constructed as high speed Static Random Access Memories (SRAM).
  • SRAM Static Random Access Memories
  • the local cache 256 is inco ⁇ orated on the same integrated circuit as the remainder of the processor 92.
  • the local cache 256 is the primary block that interfaces with the bus interface 78. Data and instructions are loaded via the bus 96 into the local cache 256, and data is written back from the local cache 256 via the bus 96.
  • the local cache 256 is bidirectionally coupled to an AX module 260.
  • the AX unit 260 provides the bulk of the functionality of the processor 92, 5 including instruction decode.
  • the AX unit 260 is bidirectionally coupled to and controls execution of a floating point (FP) unit 268 and a decimal/numeric (DN) unit 262.
  • FP floating point
  • DN decimal/numeric
  • the floatingpoint unit 268 performs both floating-point operations, and fixed-point multiplications and divisions. It is bidirectionally coupled to the local cache 10 256.
  • the decimal/numeric (DN) unit 262 performs decimal and string operations. It is bidirectionally coupled to the local cache 256, allowing it to operate relatively autonomously from the AX unit 260. Rather, once decimal or string operations are initiated in the DN unit 262, the DN unit 262 is driven by operand availability in the local cache 256.
  • Trace RAM cache 58 is a Trace RAM cache 58 which is capable of caching the status of instruction or cache operation.
  • the Trace RAM 58 is controlled by commands decoded and executed by the AX unit 260.
  • the Trace RAM 58 also selectively traces AX unit 260 statuses.
  • the Trace RAM 58 receives 0 and selectively traces cache state signals from the local cache 256. When a trace is complete, the Trace RAM 58 can be written out to the local cache 256, and ultimately to slower memories.
  • the local calendar clock unit 270 Bidirectionally coupled to both the bus interface 78 and the AX unit 260 is a local calendar clock unit 270.
  • the local calendar clock unit 270 5 contains a Cached Calendar Clock 272 and a Calendar Clock Valid flag 274.
  • the calendar clock unit 270 also contains arithmetic and logical circuitry allowing the Cached Calendar Clock 272 to be updated utilizing the same clock signals 99 as the master calendar clock 97.
  • the Master Calendar Clock 97 and the Cached Calendar Clock 0 272 are incremented every microsecond utilizing the common clock signal.
  • the Cached Calendar Clock 272 will maintain the same calendar clock time as the Master Calendar Clock 97, after being loaded with the same calendar clock value.
  • the Calendar clock unit 270 provides a Transmit Calendar Clock Updated signal 276 to the bus interface 78 whenever the Master Calendar Clock 97 is loaded or updated under program control with a new calendar clock value. This signal is transmitted via the bus 96 to all of the other processors 92 in the data processing system 80, which each in turn receive the signal from the bus 96 as a Receive Calendar Clock Updated signal 278.
  • the Receive Calendar Clock Updated signal 278 that is received by the local Calendar Clock Unit 270 results in the clearing of the Calendar Clock Valid flag 274, forcing that processor 92 to request the calendar clock value from the Master Calendar Clock 97 the next time the Calendar Clock is read by that processor 92 under program control.
  • the local calendar clock unit 270 is shown as a separate functional unit in FIG. 4. This is done for illustrative pu ⁇ oses. In the preferred embodiment, the local calendar clock unit 270 forms a portion of the AX module 260, with parts of its functionality described herein being inco ⁇ orated in various AX submodules (see FIG. 5).
  • FIG. 5 is a block diagram of an AX unit 260 in the processor 92 shown in FIG. 4.
  • the AX unit 260 comprises a Microprogram Control Section (MPS) unit 280, an Auxiliary Operations Section (XOPS) 282, a Basic Operations Section (BOPS) 284, a Safe Store Buffer (SSB) 286, an Address Preparation (AP) section 288, and a NSA Virtual Segment Section 290.
  • the MPS 280 is bidirectionally coupled to and receives instructions from the local cache 256.
  • the MPS 280 performs instruction decode and provides microprogram control of the processor 92.
  • the microprogram control utilizes a microengine executing microcode 281 stored in both dynamic and static memories in response to the execution of program instructions.
  • the MPS 280 is bidirectionally coupled to and controls operation of the Auxiliary Operations Section (XOPS) 282, the Basic Operations Section (BOPS) 284, the floating point (FP) unit 268, the decimal/numeric (DN) unit 262, the Address Preparation (AP) section 288, and the NSA Virtual Segment Section 290.
  • the Basic Operations Section (BOPS) 284 is used to perform fixed point arithmetic, logical, and shift operations.
  • the Auxiliary Operations Section (XOPS) 282 performs most other operations.
  • the Address Preparation (AP) section 288 forms effective memory addresses utilizing virtual memory address translations.
  • the NSA Virtual Segment Section 290 is bidirectionally coupled to and operates in conjunction with the AP section 288, in order to detect addressing violations.
  • the Safe Store Buffer (SSB) 286 stores the current status of the processor 92 environment, including user and segment registers, for the purpose of changing processor state.
  • the SSB 286 is coupled to and receives signals from the BOPS 284, the AP section 288, the MPS 280, and the NSA 290.
  • the SSB 286 is bidirectionally coupled to the local cache 256, allowing SSB 286 frames to be pushed out to cache 256 when entering a new processor environment, and pulled back from cache 256 when returning to an old processor environment.
  • the Wait for Sync (WSYNC), Transmit Sync (TSYNC), Delay (DELAY), and trace (TRACE) instructions are decoded and executed under microprogram control by the MPS 280 unit in the AX unit 260.
  • TSYNC Transactional Calendar Clock Updated signal 276 and receive Calendar Clock Updated signal 278 otherwise utilized by the local calendar clock unit 270. Operation of the TSYNC instruction is shown in more detail in FIG. 10. Operation of the WSYNC instruction is shown in more detail in FIG. 1 1. Operation of the DELAY instruction is shown in more detail in FIG. 12.
  • FIG. 6 is a block diagram of an alternate embodiment of the processor 92 as shown in FIG. 3.
  • This alternate embodiment shows a pipelined processor 92' capable of simultaneously executing multiple instructions.
  • the processor 92' is coupled to a bus 96.
  • the bus 96 comprises a data bus 72, a address bus 74, and a control bus 76.
  • Such a bus 96 is typically implemented as a hierarchy of busses.
  • the data bus 72, address bus 74, and control bus 76 together comprise a processor bus.
  • the data bus 72, the address bus 74 and the control bus 76 are coupled to a bus interface 56.
  • the bus interface 56 is coupled to a data cache 54, an instruction cache 56, and a trace cache 58.
  • the data cache 54, the instruction cache 56, and the trace cache 58 are typically constructed of high speed SRAM.
  • the coupling between the data cache 54 and the bus interface 58 is typically bi-directional, whereas the coupling between the bus interface 58 and the instruction cache 56 is typically single directional, since there is typically no need to write instructions back to slower memory (not shown).
  • the Instruction Cache 56, and Data Cache 54 are Level 1 caches in the memory hierarchy in the preferred embodiment.
  • the instruction cache 56 is coupled to and provides instructions to an instruction execution unit 52.
  • the instruction execution unit 52 shown preferably provides for pipelined execution of multiple instructions, synchronization of out-of-order execution, and branch prediction. However, these optimizations are not necessary to practice this invention.
  • the instruction execution unit 52 provides control signals to control execution of an Integer Processing Unit 60, a load/store unit 64, a floating point unit 68, and a systems unit 70 .
  • the load/store unit 64 is bidirectionally coupled to the general pu ⁇ ose registers 62, the floating point registers 66 and the data cache 54.
  • the load/store unit 64 loads values into the general pu ⁇ ose registers 62 and floating point registers 66 from the data cache 54, and writes them back to the data cache 54, as required.
  • the general-pu ⁇ ose registers 62 are bidirectionally coupled to and utilized by the integer-processing unit 60 to perform integer arithmetic, as well as other logical functions.
  • Such an integer processing unit 60 typically comprises logical/shift modules, integer addition/subtraction modules, and integer multiplication/division modules.
  • the integer processing unit 60 will typically set condition code flags in one or more condition code registers in the general pu ⁇ ose registers 62 based on the results of the arithmetic and logical functions performed. These condition code flags are provided to the instruction execution unit 52 for use in conditional branching. In this preferred embodiment, the integer processing unit 60 provides for arithmetic and logical functions.
  • the general-pu ⁇ ose registers 62 are also bidirectionally coupled to and utilized by the systems unit 70 to perform systems functions.
  • the systems unit 70 executes various system-level instructions, including instructions to change environment or state. In order to maintain system state, most of the instructions executed by the systems unit 70 are completion-serialized.
  • the floating point registers 66 are bidirectionally coupled to and utilized by the floating-point unit 68 to perform floating-point arithmetic functions.
  • a single integer processing unit 60 and floating point unit 68 are shown in this FIG. This is done here for clarity. It should be understood that the preferred embodiment of the present invention will include multiple such functional units 60, 66.
  • a pipelined processor 92' such as shown here will typically contain multiple integer processing units 60 providing multiple concurrent integer computations, and multiple floating point units 68 providing multiple concurrent floating point computations. .
  • the Instruction Unit 42 comprises an instruction fetch unit 44, an instruction queue 46, an instruction dispatch unit 48, a branch processing unit 50, and an instruction completion unit 52.
  • the instruction fetch unit 44 is coupled to and receives instructions from the instruction cache 56.
  • the instructions fetch unit 44 provides instruction fetch control signals to the instruction cache 56.
  • Fetched instructions are transmitted upon demand from the instruction fetch unit 44 to the instruction queue 46 for queuing.
  • the queued instructions are subsequently removed from the instruction queue 46 and dispatched to the function units 60, 64, 68, 70 for processing by the instruction dispatch unit 48. Multiple instructions will typically be in simultaneous execution at the same time in a pipelined system.
  • the completing function units 60, 64, 68, 70 provide instruction completion signals to the instruction completion unit 52.
  • the instruction completion unit 52 is coupled to and thereupon notifies the instruction fetch unit 44 of the instruction completions, allowing for further instruction fetches.
  • the branch-processing unit 50 is bidirectionally coupled to and receives branch instructions from the instruction fetch unit 44.
  • the branch- processing unit 50 is coupled to and receives condition code information from the general-pu ⁇ ose registers 62. This condition code information is utilized by the branch-processing unit 50 to perform conditional branching.
  • Modern branch processing units 50 in piplelined systems typically perform branch prediction and lookahead. When using branch prediction, a branch- processing unit 50 will typically provide control signals to the instruction fetch unit 44 to continue to fetch instructions until an unresolved conditional branch is resolved.
  • the contents of general-pu ⁇ ose registers 62 are also received by the branch-processing unit 50 for use in indexed and indirect branching.
  • the systems unit 70 executes a number of instructions that are significant to the present invention. It executes a transmit sync (TSYNC) instruction for transmitting a synchronize signal to the other processors 92 in the system 80. It executes a wait-for-synchronize (WSYNC) instruction for pausing a processor 92 until it receives the synchronize signal from another processor 92. It executes a delay (DELAY) instruction for pausing or delaying a processor 92, 92' for & specified number of instruction. Finally, the systems unit 70 executes a trace (TRACE) instruction for controlling operation of the trace cache 58.
  • TTYNC transmit sync
  • WSYNC wait-for-synchronize
  • DELAY delay
  • TRACE trace
  • the trace cache 58 receives trace signals 59 from different modules in the processor 92. Each of these modules provides information that can be potentially traced.
  • the trace cache 92 is coupled to and receives trace signals 59 from the data cache 54, the instruction cache 56, the branch processing unit 50, and the dispatch unit 48.
  • the trace signals 59 from the data cache 54 and the instruction cache 56 include internal cache state signals. This provides a mechanism for recording in real time state changes for the cache memories 54, 56.
  • the trace cache is coupled to and provides a trace output signal 61 to the bus interface 78. This allows the contents of a trace buffer to be selectively written to and saved in slower speed memory 24 in an MMU 84. This is typically done at the end of a trace so that the data traced can be processed.
  • FIG. 7 is a flowchart illustrating exhaustive testing of the interaction between multiple processors 92 in a single system 80.
  • Table T- l illustrates the instructions executed by three different processors 92.
  • processor H I executes a TSYNC instruction, which transmits a synchronize signal to all of the other processors 92 in the system 80. All of the processors being tested, including the processor executing the TSYNC instruction, then wait for receipt of the synchronize signal through execution of an WSYNC instruction. At this point, all of these processors are synchronized each being ready to execute their next instruction at the next common clock 99 signal edge. Each processor then starts the relevant traces by executing a TRACE instruction and delays for a specified number of clock 99 cycles by executing a DELAY instruction.
  • the WSYNC instruction may be implemented as having a clock count delay operand, resulting in a specified number of clock cycles of delay after receipt of the synchronize signal.
  • the WSYNC instruction both waits for the synchronize signal, and then starts tracing. Two-hundred fifty-six (256) trace entries are then traced, and the trace then automatically terminates. Note also that the traces may be started earlier, especially if trace entries are allowed to wrap around the trace RAM 210.
  • the exhaustive testing is accomplished by varying Tl , T2, and T3 for the three processors through their respective ranges. This is preferably done through use of a three level loop structure in a test driver program. After each processor 92 is synchronized with the other processors 92, has delayed its proscribed number of clock 99 cycles, and has the appropriate traces turned on, each of the processors 92 will execute a series of test instructions. For example, when testing cache memories 54, 56, the processors 92 will execute instructions affecting the state of the cache 256. The processors implementing such cache memory testing may cause their respective caches 256, to compete for ownership of a given range of addresses of memory.
  • the cache states for the relevant caches 256 are received on the trace input signal lines 59 by the Trace Cache 58 and written into the trace RAM 210 every clock 99 cycle during the test.
  • the trace is turned off by either writing a predetermined number of trace entries to the Trace RAM 210, filling up the Trace RAM 210 with trace entries, or execution of a second TRACE instruction.
  • the contents of the Trace RAM 210 for each of the processors 92 is then written to slower (usually DRAM) memory 24 contained in the MMU modules 84 for subsequent evaluation.
  • the trace entries saved in the MMU module 84 memories may also be written to secondary storage 80 for later evaluation, or for archival pu ⁇ oses.
  • the testing is then run again, with a different combination of Tl , T2, and T3 values for the three processors. This is repeated until all interesting combinations of these three timing delay values have been tested.
  • FIG. 7 is a flowchart illustrating a method of exhaustive testing of the interaction between multiple processors 92 in a single system 80.
  • the method utilizes the code shown and discussed in Table T-l .
  • Table T-l the interaction of three processors 92, PI , P2, and P3 is tested.
  • Each of the three processors 92 utilizes a corresponding delay value Tl , T2, and T3, for delaying the execution of its test code.
  • the method starts by entering an outer loop. First, the next test cases are loaded from a test table, step 148. Next, a Tl delay value loop index is initialized, step 150. A second loop is then entered. The Tl delay value is then incremented, step 152, and a test is made whether the Tl delay value is within range, step 154. If the Tl delay value is within a range specified in the test table entry, step 154, a third loop is entered. In the third loop, the T2 delay value is first initialized, step 160.
  • the T2 delay value is then incremented, step 162, and a test is made whether the T2 delay value is within range, step 164. If the T2 delay value is within a range specified in the test table entry, step 164, a fourth, inner, loop is entered. In the fourth loop, the T3 delay value is first initialized, step 170. The T3 delay value is then incremented, step 172, and a test is made whether the T3 delay value is within range, step 174. If the T3 delay value is within a range specified in the test table entry, step 174, a single test is performed, as shown in Table T-l , step 176, utilizing the Tl , T2, and T3 delay values computed in the three embedded loops.
  • the single test run results are evaluated, as appropriate, step 178.
  • the inner loop then repeats, starting with incrementing the T3 delay value, step 172.
  • the fourth loop is complete, and the third loop is repeated, starting with incrementing the T2 delay value, step 162.
  • the T2 delay value exceeds its specified range, step 164
  • the third loop is complete, and the second loop is repeated, starting with incrementing the Tl delay value, step 152.
  • the Tl delay value exceeds its specified range, step 154, the second loop is complete.
  • test results from the multiple tests are then evaluated, step 178.
  • a test is then made whether there are any more test cases to test in the test table, step 158. If there are more test cases to test, the outer loop is repeated, starting with loading the next test entry from the test table, step 148. Otherwise, when there are no more test cases to test in the test table, step 158, the method is complete.
  • the three embedded loops can be viewed as three embedded "DO" or "FOR" loops, incrementing Tl , T2, and T3 through their prescribed ranges. The use of these three embedded loops for testing three processors is for illustrative purposes only. More or fewer embedded loops, for testing correspondingly more or fewer processors, are within the scope of the present invention.
  • FIG. 8 is a flowchart illustrating operation of a master processor during one execution of the Perform Single Test step 176 in FIG. 7.
  • the Perform Single Test step 176, starts by setting up the delay values and test instructions for each processor being utilized, step 180.
  • the delay values for the three processors are the loop indices: Tl , T2, and T3.
  • the test instructions for a given test typically remain constant throughout a given set of tests.
  • a slave number (Slaved) loop index is initialized, step 181, and a loop is then entered.
  • a Flagl corresponding to the slave being setup (Flagl [Slave#]) is set so that that slave will know to pick up its delay and test instructions, step 182.
  • the master processor then spins on a second flag (Flag2[Slave#]) until that second flag is set, step 184.
  • the second flag (Flag2[Slave#]) is set by the slave processor when it has completed setting up for testing, and is ready to execute a WSYNC instruction (see step 144 in FIG. 9).
  • the first flag (Flagl [SIave#]) is then cleared, step 186, for preparation for the next execution of the Perform Single Test, step 176.
  • the Slaved loop index is then incremented, step 188, and a test is made whether any more slaves need to be setup. If more slaves remain to setup, the loop is repeated, setting up the next slave, starting with step 182.
  • step 189 the master processor is setup, step 190.
  • This setup is similar to the setup performed for each of the slave processors.
  • the test delay value is typically loaded into a register.
  • a TSYNC instruction is executed, step 191, resulting in a synchronize signal being transmitted to all of the processors 92 in the data processing system 80.
  • a WSYNC instruction step 192, which awaits receipt of the synchronize signal just transmitted.
  • a TRACE is initiated, tracing 256 entries to the Trace RAM Execution of the WSYNC will also preferably turn on tracing to the TRACE RAM, step 193.
  • the TSYNC, 191, WSYNC, 192, and TRACE, 193, are shown separately. This is for illustrative pu ⁇ oses. In the preferred embodiment, these three functions are combined into the TSYNC instruction.
  • a DELAY instruction is executed in order to delay for a predetermined number of clock cycles, step 194. This is the delay value for the master processor resulting from the Tl , T2, and T3 loops in FIG. 7. In the preferred embodiment, the delay value has been loaded into a register prior to executing the TSYNC, step 191, WSYNC, step 192, and TRACE, step 193, instructions.
  • step 194 After the DELAY instruction, step 194, has completed waiting the prescribed number of clock cycles, the prespecified instruction test sequence is executed, step 195. Then, a second DELAY instruction is executed, step 196, for a long enough delay that all processors 92 being tested have completed their individual test. The Trace RAM 210 is then dumped to the system RAM, step 198, for later evaluation. Note that instead of the second DELAY instruction, step 196, other methods of processor 92 ⁇ synchronization may also be utilized, such as a second usage of the TSYNC and WSYNC instructions.
  • FIG. 9 is a flowchart illustrating operation of a slave processor during execution of multiple tests.
  • the slave computer executes a continuous loop until terminated.
  • the second flag (Flag2[Slave#]) for the slave processor is cleared, step 132.
  • the processor 92 spins until the first flag (Flagl [Slaved]) is set, indicating that a new set of delay values and test instructions is ready for use by this slave.
  • the test instructions are then moved to a target area, step 136.
  • the private cache 256 is preconditioned, step 138. This is especially important if the caching system is being tested.
  • the test delay value is then loaded into a register, step 140.
  • the processor 92 then awaits synchronization by executing a WSYNC instruction, step 192. After receiving the synchronization signal transmitted as a result of the TSYNC instruction executed by the master processor, step 191, a TRACE instruction is executed, step 193, starting tracing to the Trace RAM 210 , and a DELAY instruction is executed, step 194, delaying the number of clock cycles specified by the master processor.
  • test instructions for the slave processor are then executed, step 195, and a long delay is then entered, again by executing the DELAY instruction, step 196.
  • the Trace RAM 210 is dumped to the system RAM, step 198, and the loop repeats, starting with clearing the second flag (Flag2[Slave#]).
  • the WSYNC instruction, step 192, and the TRACE instruction, step 193, are shown as separate steps. This is illustrative. In the preferred embodiment, the functionality of both steps are combined into the WSYNC instruction.
  • FIG. 10 is a flowchart illustrating operation of a Transmit Sync signal (TSYNC) instruction.
  • a special synchronize interrupt signal is transmitted to each of the processors 92 in the system 80. Note that the synchronize interrupt signal is also broadcast to the processor 20 executing the TSYNC instruction.
  • a signal is transmitted to all processors 92, step 102, in the data processing system 80.
  • the synchronize interrupt signal is transmitted as the Transmit Calendar Clock Updated signal 276 from the processor 92 executing the TSYNC instruction, and received by all the processors 92 in the data processing system 80 as the Receive Calendar Clock Updated signal 278.
  • FIG. 10 is a flowchart illustrating operation of a Transmit Sync signal (TSYNC) instruction.
  • TSYNC Transmit Sync signal
  • FIG. 1 1 is a flowchart illustrating operation of a Wait for Sync signal (WSYNC) instruction.
  • WSYNC Wait for Sync signal
  • the WSYNC and TSYNC instructions contain a maximum cycle count operand.
  • This maximum cycle count operand can optionally be implemented as a register operand, an immediate operand, a sum of multiple registers, a sum of a register and an immediate operand, or indeed as any other type of operand supported by the architecture of the processors 92 in the data processing system 80.
  • the WSYNC instruction only terminates when the synchronize interrupt is received.
  • a maximum cycle count operand greater than zero When a maximum cycle count operand greater than zero is encountered, a maximum cycle count is indicated. The instruction will thus terminate after that delay maximum cycle count of cycles have been encountered, or when the synchronize interrupt is received, which ever comes first. Thus, a zero maximum cycle count operand can be viewed as an infinite maximum wait. If the maximum cycle count operand was loaded from a register, that register will receive the remaining number cycle count at the end of instruction execution. Thus, if the instruction terminates with a zero remaining cycle count stored in that register, and started with a maximum cycle count greater than zero, the instruction terminated due to having decremented the counter, and not from having received the synchronize interrupt.
  • the WSYNC instruction effectively starts operation by entering into a loop. First, a check is made of the clock signal 99, step 112.
  • step 112 the loop is repeated, starting with the test whether the clock signal 99 edge has been received, step 112. Otherwise, a test is made whether the synchronize signal has been received, step 114. If the synchronize signal has not been received, step 1 1 , a test is made whether the maximum cycle count operand was greater than zero, step 115. If the initial maximum cycle count operand was not greater than zero, step 115, the loop repeats, starting at step 112. However, if the original maximum cycle count operand was greater than zero, step 115, a timeout count is indicated. A register is loaded with the maximum cycle count value, and decremented step 116, and tested against zero, step 117, at every clock.
  • step 117 the loop repeats, starting at step 112. Otherwise, when the synchronize interrupt has been received, step 114, tracing is started, step 118, and the loop terminates. In the preferred embodiment, 256 events are recorded in the Trace RAM, before the tracing is automatically terminated. Otherwise, if the remaining cycle count decrements to zero, step 117, the Calendar Clock Valid Flag 274 is cleared, step 119, and the loop terminates. Since the Calendar Clock Valid Flag 274 is automatically cleared whenever the Calendar Clock Updated interrupt signal 278 is received (see step 302 in FIG.
  • step 119 guarantees that the WSYNC instruction always exits with the Calendar Clock Valid Flag 274 in a safe state that guarantees that the next Read Calendar Clock instruction will read the Master Calendar Clock 97 instead of the cached calendar clock 272 (see FIG. 16).
  • the remaining cycle count is made available in a register to provide an indication whether the WSYNC instruction terminated through a timeout, or through receipt of the synchronize interrupt.
  • a test is made for receipt of the synchronize signal on the clock 99 edge. This is to guarantee that all processors 92 receive and respond to the synchronize signal at exactly the same time.
  • the WSYNC instruction is implemented utilizing a microcode engine 280 that executes a series of instructions implementing the remainder of the flowchart at each system clock cycle until the instruction terminates.
  • the synchronize signal is implemented as the hardware Receive Calendar Clock Updated interrupt signal 278.
  • FIG. 12 is a flowchart illustrating operation of a delay (DELAY) instruction.
  • the DELAY instruction has one or more operands to specify the number of instruction cycles to delay. This set of operands specifying the number of cycles to delay may be coded as an immediate operand, a register operand, the sum of a pair of registers, the sum of a register and an immediate operand, or indeed, any form of operand supported by the architecture. In an alternative embodiment, the number of cycles to delay can be specified in a fixed repeat count register.
  • the DELAY instruction starts by loading the number of cycles to delay into a counter containing a remaining cycle delay count, step 122. A loop is then entered, and the remaining cycle delay count is decremented, step 126.
  • step 128 the loop is repeated, starting with a test of the relevant edge of the clock signal 99. The loop spins, waiting for the relevant clock 99 edge. When the clock edge is detected, step 124, the remaining cycle delay count is again decremented, step 126, and again tested, step 128. The loop exits when the decrementing, step 126, causes the remaining cycle delay count to go negative, step 128.
  • the result is that the instruction delays for exactly "N" clock 99 cycles, with "N" being the number of cycles to delay specified on the DELAY instruction. This provides a significant advantage when exhaustively testing interactions between multiple processors 92 since testing ranges can be known to have been exhaustively tested.
  • FIG. 13 is a block diagram illustrating the trace cache 58 shown in
  • the systems unit 70 provides trace control signals 57 to a trace buffer control module 202 in response to execution of a Trace instruction.
  • the trace buffer control module 202 provides control signals to an address counter module 204.
  • the address counter module 204 is typically reset by the trace buffer control module 202 when a trace is started.
  • the address counter module 204 is a counter that increments at each clock 99. Address counter module 204 selectively either wraps around, or terminates a trace, when it hits its limit. If the address counter module 204 terminates a trace, the completion is transmitted to the completion unit 52. In any case, the address counter module 204 provides an address signal 212 to a memory address control module 206.
  • the address signal 212 provided is the address of the next trace entry in a trace RAM array 210 to receive data.
  • the memory address control module 206 stores a single trace entry in the Trace RAM 210 at the address specified by the address signal 212 at assertion of each clock b signal.
  • Trace input signals 59 are coupled to and received by a multiplexor (MUX) 208.
  • the trace buffer control module 202 is coupled to and provides trace select signals 216 to the MUX 208 to select trace input signals 59 for tracing. The selection by the trace buffer control module 202 is in response to execution of a TRACE instruction by the systems unit.
  • the MUX 208 - provides a Selected Trace Data signal 218 by selecting Trace input signals 59 in response to trace select signals 216.
  • the values of the Selected Trace Data signals 218 are written in the Trace Ram 210 at the location specified by the address counter 204 at the assertion of each clock 99. In one embodiment, a high-order bit from the address counter module 204 is written with each trace entry in the trace RAM 210.
  • This provides a mechanism for continuously wrapping the trace RAM 210 with trace entries. Then, when the trace data is downloaded to slower memory and evaluated, the trace entries can be properly unrolled based on this wrap bit 214, since the wrap bit 214 toggles for each cycle through the trace RAM 210.
  • the trace cache 58 operates by storing one entry into the trace RAM 210 for each assertion of the clock signal 99.
  • the trace RAM is preferably high-speed memory, such as high speed Static Random Access Memory (SRAM), with a write time no longer than the width of the clock signal 99.
  • SRAM Static Random Access Memory
  • the entire trace entry is typically a power of two (2 ) in size, such as 16, 32, 64, or 128 bits in size.
  • the trace RAM will typically contain a power of two (2 ) number of trace entries. This allows for easy wrapping of the address counter 204 when computing memory write addresses 212.
  • the trace RAM in the preferred embodiment contains 256 (2 ) trace entries.
  • a Master Calendar Clock 97 is maintained in the system control unit (SCU) 86.
  • Two instructions are provided to access the calendar clock.
  • a "Read Calendar Clock” (RCCL) instruction returns the current value of the calendar clock.
  • a "Load Calendar Clock” (LCCL) instruction operates to load the common calendar clock with a new value.
  • the calendar clock comprises a seventy-two (72) bit counter that is incremented every microsecond.'
  • the clock signals driving that incrementation of the calendar clock every microsecond are typically either derived from a system clock, or provided by a separate oscillator.
  • a Transmit Calendar Clock Updated signal 276 is transmitted from the cached calendar clock unit 270 of the updating processor 92. This signal is received as a Receive Calendar Clock Updated signal 278, via the bus 96, by all of the processor 92. This results in each of those processors 92 clearing its Cached Calendar Clock Valid flag 274. The next time that a program executing on any processor 92 reads the calendar clock, the cleared Cached Calendar Clock Valid flag 274 forces that processor 92 to request a current copy of the Master Calendar Clock 97. The result of this caching of the calendar clock in each processor 92 is that typical access times to the calendar clock are significantly reduced. This is because a processor 92 can utilize its own Cached Calendar Clock 272 for most reads of the calendar clock/
  • the TSYNC and WSYNC instructions utilize the Transmit Calendar Clock Updated signal 276 and the Receive Transmit Calendar Clock Updated signal 278. If the processor 92 is in test mode, where the TSYNC and WSYNC instructions are operable, the TSYNC instruction is implemented by transmitting the Transmit Calendar Clock Updated signal 276 to each of the processors 92 in the data processing system 80. This signal is received by each processor 92 in the data processing system 80 as the Receive Transmit Calendar Clock Updated signal 278. When this signal 278 is utilized by any processors 92 waiting to terminate waiting for synchronization after executing the WSYNC instruction.
  • FIG. 14 is a flowchart illustrating operation of a Load Calendar Clock (LCCL) instruction, in accordance with the present invention.
  • the Load Calendar Clock (LCCL) instruction When executed, the Master Calendar Clock 97 is loaded with the instruction operand as the new Master Calendar Clock 97 value, step 332.
  • the Transmit Calendar Clock Updated signal 276 is asserted by the processor 92 executing the Load Calendar Clock instruction, and transmitted to each of the processors 92 in the data processing system 80, step 334, where it is received as the Receive Calendar Clock Updated signal 278 (see FIG. 15).
  • step 334 the processor executing the instruction waits for all other processors 97 in the data processing system 80 to acknowledge receipt of the Calendar Clock Updated interrupt signal 278, step 336. This later step 336, helps to guarantee that all processors 97 in the data processing system 80 have the same Calendar Clock value.
  • FIG. 15 is a flowchart illustrating operation of a processor 92 after receiving a Calendar Clock Updated interrupt signal 278, in accordance with the present invention.
  • This Calendar Clock Updated interrupt signal 278 is received by each processor 92 in the data processing system 80 in response to one processor 92 transmitting the signal on its Transmit Calendar Clock Updated signal line 276.
  • the Cached Calendar Clock Valid flag 274 is cleared for that processor 92, step 302.
  • a test is then made whether testing is enabled, step 304. If testing is enabled, step 304, a test is made whether the processor 92 is waiting for synchronization, step 306, after having executed a WSYNC (or TSYNC in the preferred embodiment) instruction.
  • WSYNC or TSYNC in the preferred embodiment
  • step 304 the processor is activated, step 308.
  • the method in FIG. 15 is shown as a flowchart. However, this is for illustrative pu ⁇ oses. In the preferred embodiment, the method is implemented as a combination of hardware and firmware.
  • the Cached Calendar Clock Valid flag 274 is automatically cleared whenever the Calendar Clock Updated interrupt signal 276 is received. Then, when waiting for Sync, step 306, the processor is activated, step 308, when it tests the Calendar Clock Valid flag 274 at the next clock cycle (see step 114 in FIG. 1 1 ).
  • FIG. 16 is a flowchart illustrating operation of a Read Calendar Clock (RCCL) instruction, in accordance with the present invention.
  • RCCL Read Calendar Clock
  • a test is then made whether the Cached Calendar Clock Valid flag 274 is set, step 314. If the Cached Calendar Clock Valid flag 314 is set, step 264, the Cached Calendar Clock 272 is read, step 318, and loaded into an AQ register, step 326. Otherwise, if the Cached Calendar Clock Valid flag 274 is not set, step 314, the calendar clock value is read from the Master
  • the calendar clock value is loaded into an AQ register, step 324, and the Cached Calendar Clock 272 is marked valid by setting the Cached Calendar Clock Valid flag 274, step 322. In either case, the instruction returns the current calendar clock value in the AQ register.

Abstract

Each processor (92) in a data processing system (80) caches a copy of the master calendar clock (97). The master calendar clock (97) and all of the cached calendar clocks (272) are periodically incremented utilizing a common clock (99). Whenever a processor (92) in the system (80) loads the master calendar clock (97) with a new value, that processor (92) broadcasts a cached calendar clock updated interrupt signal (276) to all of the processors in the system. In response to this interrupt (278), each processor (92) clears its cached calendar clock valid flag (274). Whenever a read calendar clock instruction is executed on a processor (92), the flag (274) is tested, and if set, its cached calendar clock (272) value is returned. Otherwise, the master calendar clock (97) value is retreived, written to that processor's cached calendar clock (272), and returned. The cached calendar clock valid flag (274) is set to indicate a valid cached calendar clock (272).

Description

CALENDAR CLOCK CACHING IN A MULTIPROCESSOR SYSTEM
Field of the Invention
The present invention generally relates to multiprocessing computer systems, and more specifically to exhaustively testing interactions among multiple tightly coupled processors.
Background of the Invention
The literature is full of examples where processor and system faults or "bugs" were discovered long after the processors or systems were shipped to customers. It is well known that the later in the product cycle that a "bug" is discovered, the greater the expense to fix it. Compounding this problem is the trend towards shorter and shorter product cycles. Finally, the problem is compounded again by the trend towards tightly-coupled multiple processor computer systems. This compounding is because in such a tightly-coupled multiple processor system, it is not only necessary to discover and fix the faults in a single processor, it is also now necessary to discover and fix faults resulting from the interaction among the multiple processors.
One problem with implementing tightly coupled multiple processor computer systems are in exhaustively testing the interactions between and among multiple processors. For example, in a tightly coupled system, two or more processors may each have an individual high-speed level one (LI) cache, and share a slightly lower speed level two (L2) cache. This L2 cache is traditionally backed by an even larger main memory. The L I and L2 caches are typically comprised of high speed Static Random Access Memory (SRAM), and the main memory is typically comprised of slower speed Dynamic Random Access Memory (DRAM).
It is necessary that the cache and memory be maintained for coherency. Thus, for example, at most only a single L I cache of a single processor is allowed to contain a cache line corresponding to a given block of main memory. When multiple processors are reading and writing the same block in memory, a conflict arises among their cache controllers. This is conflict is typically resolved in a tightly coupled multiprocessor system with an inteφrocessor cache protocol communicated over an inteφrocessor bus. For example, a first processor may be required to reserve a cache copy of the contested block of memory. This is communicated to the other processors. However, if another (second) processor already has reserved the contested block of memory, the first processor must wait until the block is unlocked, and potentially written at least back to the L2 cache.
Debugging a cache protocol can be quite difficult. This stems from a number of interrelated factors. First, the multiple processors are each typically operating asynchronously from each other at extremely high frequencies or rates of speed. Secondly, the LI caches, and their cache controllers are typically operating at essentially the same speed as the processors. Third, instruction cache misses for test instruction sequences can delay instruction execution by relatively long, somewhat variable, periods of time. There are a number of reasons for this later problem. One reason is it may be possible to retrieve a cache line of instructions from LI cache or from L2 cache, or it may be necessary to load the cache line from slower main memory. The DRAM comprising the main memory typically operates quite a bit slower than the processor (and LI cache). Another problem is that the time it takes to fetch a block of instructions from the main memory may vary slightly. There are a number of causes of this. First, accessing different addresses in the DRAM may take slightly different times. This is partly because of differing signal path lengths. Secondly, different memory banks may have slightly different timing. This is true, even when the specifications for the memories are equivalent. This is particularly true, when the memories are self-timed. This problem may be accentuated when multiple processors or multiple memories share a common memory access bus, where the actions of one processor or memory may lock out, and stall, another processor or memory. Note also that asynchronous Input/Output (I/O) operations to memory can have seemingly random effects on timing.
.9 - Despite the problems described above, in order to effectively test the interaction among multiple processors, it is preferable to exhaustively test each set of possible combinations. In the case of a cache protocol as described above, it is preferable to exhaustively test each possible set of cache states and cache state transitions. It is also preferable to be able to detect and record state changes at a lower level than that available to a user program.
In order to test the interactions among multiple processors, the various combinations of states and state transitions should be tested. This can be done by executing programs simultaneously on each of the processors. Varying the time when each processor executes its program can test the different combinations. Unfortunately, there is no mechanism in the prior art to accurately exhaustively vary the times when each processor executes its program. This is partly due to the processor instruction timing variations described above. The result is that timing windows often arise where particular state and state transition interactions are not tested.
One solution to this problem is to increase the number of tests run and the number of test cycles run. This increases the chances of uncovering faults, but does not guarantee exhaustive fault coverage.
Another set of prior art solutions is to try to control more closely the timing between executions of programs by the multiple processors. One such solution is to use NOP instructions to delay execution. The larger the number of NOP instructions executed, the longer the delay. However, NOP instructions are typically executed out of blocks of instructions held in cache lines. Each time execution crosses a cache line boundary, there is a potential for a cache miss, resulting in retrieving the cache line from slower memory. There is also a potential at that point that execution may be delayed for one or more cycles due to memory bus contention. Each of these potential delays introduces a potential window that did not get tested utilizing this set of solutions. Note also that virtual memory program activity must also be accounted for.
Another problem that arises is that it is often hard to distinguish states and state transitions from a programmer's view of a processor. This is partly because there is much that is not visible at this level. States and state transitions must therefore be assumed from visible programmer model level changes in the processor. This problem of distinguishing state and state transitions is a particular problem when the states and state transitions are cache states and state transitions during interaction testing among multiple processors.
One prior art solution to determining machine states and state transitions is through the use of SCAN. Using SCAN, a known pattern of states can be loaded into a processor. The processor then executes one or two instructions. The states of the various memory elements in the processor are then unloaded from the processor and compared with their expected values. This type of functional testing is becoming common for high-end microprocessors. Unfortunately, it does not lend itself to exhaustively testing the interactions among multiple processors. One reason for this is that a processor under the control of SCAN typically only executes for one or two instruction cycles, before the SCAN latches are unloaded, and another set of values loaded. The result of this is that SCAN is extremely slow, especially in comparison to the speed of modern processors. This significantly reduces the amount of testing that can be realistically done with SCAN. Secondly, there is no readily apparent mechanism available to test multiple processors at the same time, and more importantly to vary the start times of each of the multiple processors being tested together.
In the past, it has been sometimes been possible to run enough signals out of a processor that the states and state transitions being tested can be monitored by test equipment. One problem with this method of testing is that it is a manual and error prone process. Just as important, this method is fast becoming less and less possible as more and more functionality is embedded on single chips. Pin-count has become a major concern, and it has become increasingly unlikely that precious external pins can be dedicated for the sort of inteφrocessor state testing described above.
Testability, and thus reliability through earlier fault detection would be significantly increased in tightly coupled multiprocessor systems if the interactions among multiple processors could be accurately exhaustively tested, with the guarantee that no timing windows were inadvertently left untested. This testability would be further enhanced by a mechanism for recording states and state transitions over a series of clock cycles for each of the processors being tested.
Brief Description of the Drawings
The features and advantages of the present invention will be more clearly understood from the following detailed description taken in conjunction with the accompanying FIGURES where like numerals refer to like and corresponding parts and in which:
FIG. 1 is a block diagram illustrating a General Puφose Computer, in accordance with the present invention;
FIG. 2 is a block diagram of a more detailed view of a multiprocessor data processing system, in accordance with the present invention;
FIG. 3 is a block diagram illustrating a processor (CPU) module as shown in FIG. 2;
FIG. 6 is a block diagram of a piplelined processor as shown in FIG. 3;
FIG. 7 is a flowchart illustrating exhaustive testing of the interaction between multiple processors in a single system, in accordance with the present invention;
FIG. 10 is a flowchart illustrating operation of a Transmit Sync signal (TSY C) instruction, in accordance with the present invention;
FIG. 1 1 is a flowchart illustrating operation of a Receive Sync signal (WSYNC) instruction, in accordance with the present invention;
FIG. 12 is a flowchart illustrating operation of a delay (DELAY) instruction, in accordance with the present invention;
FIG. 13 is a block diagram illustrating the trace cache shown in FIGs. 4 and 6; FIG. 14 is a flowchart illustrating operation of a Load Calendar Clock (LCCL) instruction, in accordance with the present invention;
FIG. 15 is a flowchart illustrating operation of a processor after receiving a calendar clock interrupt, in accordance with the present invention; and
FIG. 16 is a flowchart illustrating operation of a Read Calendar Clock (RCCL) instruction, in accordance with the present invention.
Detailed Description
In the following description, numerous specific details are set forth such as specific word or byte lengths, etc. to provide a thorough understanding of the present invention. However, it will be obvious to those skilled in the art that the present invention may be practiced without such specific details. In other instances, circuits have been shown in block diagram form in order not to obscure the present invention in unnecessary detail. For the most part, details concerning timing considerations and the like have been omitted inasmuch as such details are not necessary to obtain a complete understanding of the present invention and are within the skills of persons of ordinary skill in the relevant art.
The term "bus" will be used to refer to a plurality of signals or conductors which may be used to transfer one or more various types of information, such as data, addresses, control, or status. The terms "assert" and "negate" will be used when referring to the rendering of a signal, status bit, or similar apparatus into its logically true or logically false state, respectively. If the logically true state is a logic level one, the logically false state will be a logic level zero. And if the logically true state is a logic level zero, the logically false state will be a logic level one.
FIG. 1 is a block diagram illustrating a General Purpose Computer 20. The General Puφose Computer 20 has a Computer Processor 22, and Memory 24, connected by a Bus 26. Memory 24 is a relatively high speed machine readable medium and includes Volatile Memories such as DRAM, and SRAM, and Non-Volatile Memories such as, ROM, FLASH, EPROM, EEPROM, and bubble memory. Also connected to the Bus are Secondary Storage 30, External Storage 32, output devices such as a monitor 34, input devices such as a keyboard (with mouse) 36, and printers 38. Secondary Storage 30 includes machine-readable media such as hard disk drives, magnetic drum, and bubble memory. External Storage 32 includes machine- readable media such as floppy disks, removable hard drives, magnetic tape, CD-ROM, and even other computers, possibly connected via a communications line 28. The distinction drawn here between Secondary Storage 30 and External Storage 32 is primarily for convenience in describing the invention. As such, it should be appreciated that there is substantial functional overlap between these elements. Computer software such test programs, operating systems, and user programs can be stored in a Computer Software Storage Medium, such as memory 24, Secondary Storage 30, and External Storage 32. Executable versions of computer software 33, can be read from a Non-Volatile Storage Medium such as
External Storage 32, Secondary Storage 30, and Non- Volatile Memory and loaded for execution directly into Volatile Memory, executed directly out of Non-Volatile Memory, or stored on the Secondary Storage 30 prior to loading into Volatile Memory for execution.
FIG. 2 is a block diagram of a more detailed view of a multiprocessor data processing system, in accordance with the present invention. The multiprocessor data processing system 80 comprises a plurality of modules coupled together via an intramodule bus 82 controlled by a storage control unit 86. In the preferred embodiment, each such module 84, 88, 90 is contained on a single board, with the boards connecting into a backplane. The backplane includes the intramodule bus 82. In the representative data processing system 80 shown in FIG. 2, sixteen modules are shown. The system includes four (4) processor ("CPU") modules 90, four (4) Input/Output ("IOU") modules 88, and eight (8) memory ("MMU") modules 84. Each of the four Input/Output ("IOU") modules 88 is shown coupled to secondary storage 30. This is representative of the function of such IOU modules 88. Each IOU module 88 will typically contain a plurality of IOU processors (not shown). Each of the eight memory modules 84 contains memory 24 and a memory controller (not shown). This memory 24 is typically Dynamic Random Access Memory (DRAM). Large quantities of such memory 24 are typically supported. Also shown in FIG. 2 is a Clock Management Unit 98, which supplies a standard clock signal 99 to the remainder of the system 80. As clock signals are ubiquitous in digital computer architectures, the clock signal 99 will not be shown further herein except where relevant. Note also that in the preferred embodiment, multiple Clock Management Units 98 are utilized to provide a redundant clock signal 99.
FIG. 3 is a block diagram illustrating a processor (CPU) module 90 as shown in FIG. 2. The CPU module 90 contains a plurality of processors (CPU) 92 and a cache memory system 94. In the preferred embodiment, each processor (CPU) module 90 contains up to four (4) processors (CPU) 92. The processors 92 and the cache memory system 94 are coupled together and communicate over an intraprocessor bus 96.
The cache memory system 94 is shared among the processors 92 on the CPU module 90 and maintains cache copies of data loaded into those processors 92. The cache memory system 94 is considered here a Level 2 cache and is coupled to and communicates with the storage control system (SCU) 88 over the intramodule bus 82 in order to maintain cache coherency between Level 1 cache memories 94 on each of the processor modules 90, as well as between cache memories 54, 56 in each of the processors 92, and on the IOU modules 88. The SCU 88 also maintains coherency between the various cache memories 94, 54, 56, and the typically slower speed memory in the MMU modules 84. In the preferred embodiment, a single block of memory will be owned by a single cache or memory at potentially each level in the memory hierarchy. Thus, a given memory block may be owned by one Level 1 cache 54, 56, by one Level 2 cache 94, and by one MMU 84.
FIG. 4 is a block diagram of a processor 92 shown in FIG. 3. The processor 92 communicates with the bus 96 utilizing a bus interface 78. The bus interface is bidirectionally coupled to a unified local cache 256. Cache memories, such as this unified local cache 256, are typically constructed as high speed Static Random Access Memories (SRAM). In the preferred embodiment, the local cache 256 is incoφorated on the same integrated circuit as the remainder of the processor 92. The local cache 256 is the primary block that interfaces with the bus interface 78. Data and instructions are loaded via the bus 96 into the local cache 256, and data is written back from the local cache 256 via the bus 96.
The local cache 256 is bidirectionally coupled to an AX module 260. The AX unit 260 provides the bulk of the functionality of the processor 92, 5 including instruction decode. The AX unit 260 is bidirectionally coupled to and controls execution of a floating point (FP) unit 268 and a decimal/numeric (DN) unit 262. In the preferred embodiment, the floatingpoint unit 268 performs both floating-point operations, and fixed-point multiplications and divisions. It is bidirectionally coupled to the local cache 10 256. The decimal/numeric (DN) unit 262 performs decimal and string operations. It is bidirectionally coupled to the local cache 256, allowing it to operate relatively autonomously from the AX unit 260. Rather, once decimal or string operations are initiated in the DN unit 262, the DN unit 262 is driven by operand availability in the local cache 256.
15. Bidirectionally coupled to both the AX unit 260 and the local cache
256 is a Trace RAM cache 58 which is capable of caching the status of instruction or cache operation. The Trace RAM 58 is controlled by commands decoded and executed by the AX unit 260. The Trace RAM 58 also selectively traces AX unit 260 statuses. The Trace RAM 58 receives 0 and selectively traces cache state signals from the local cache 256. When a trace is complete, the Trace RAM 58 can be written out to the local cache 256, and ultimately to slower memories.
Bidirectionally coupled to both the bus interface 78 and the AX unit 260 is a local calendar clock unit 270. The local calendar clock unit 270 5 contains a Cached Calendar Clock 272 and a Calendar Clock Valid flag 274. The calendar clock unit 270 also contains arithmetic and logical circuitry allowing the Cached Calendar Clock 272 to be updated utilizing the same clock signals 99 as the master calendar clock 97. In the preferred embodiment, the Master Calendar Clock 97 and the Cached Calendar Clock 0 272 are incremented every microsecond utilizing the common clock signal. Thus, the Cached Calendar Clock 272 will maintain the same calendar clock time as the Master Calendar Clock 97, after being loaded with the same calendar clock value. The Calendar clock unit 270 provides a Transmit Calendar Clock Updated signal 276 to the bus interface 78 whenever the Master Calendar Clock 97 is loaded or updated under program control with a new calendar clock value. This signal is transmitted via the bus 96 to all of the other processors 92 in the data processing system 80, which each in turn receive the signal from the bus 96 as a Receive Calendar Clock Updated signal 278. The Receive Calendar Clock Updated signal 278 that is received by the local Calendar Clock Unit 270 results in the clearing of the Calendar Clock Valid flag 274, forcing that processor 92 to request the calendar clock value from the Master Calendar Clock 97 the next time the Calendar Clock is read by that processor 92 under program control. It should be noted that the local calendar clock unit 270 is shown as a separate functional unit in FIG. 4. This is done for illustrative puφoses. In the preferred embodiment, the local calendar clock unit 270 forms a portion of the AX module 260, with parts of its functionality described herein being incoφorated in various AX submodules (see FIG. 5).
FIG. 5 is a block diagram of an AX unit 260 in the processor 92 shown in FIG. 4. The AX unit 260 comprises a Microprogram Control Section (MPS) unit 280, an Auxiliary Operations Section (XOPS) 282, a Basic Operations Section (BOPS) 284, a Safe Store Buffer (SSB) 286, an Address Preparation (AP) section 288, and a NSA Virtual Segment Section 290. The MPS 280 is bidirectionally coupled to and receives instructions from the local cache 256. The MPS 280 performs instruction decode and provides microprogram control of the processor 92. The microprogram control utilizes a microengine executing microcode 281 stored in both dynamic and static memories in response to the execution of program instructions. The MPS 280 is bidirectionally coupled to and controls operation of the Auxiliary Operations Section (XOPS) 282, the Basic Operations Section (BOPS) 284, the floating point (FP) unit 268, the decimal/numeric (DN) unit 262, the Address Preparation (AP) section 288, and the NSA Virtual Segment Section 290. The Basic Operations Section (BOPS) 284 is used to perform fixed point arithmetic, logical, and shift operations. The Auxiliary Operations Section (XOPS) 282 performs most other operations. The Address Preparation (AP) section 288 forms effective memory addresses utilizing virtual memory address translations. The NSA Virtual Segment Section 290 is bidirectionally coupled to and operates in conjunction with the AP section 288, in order to detect addressing violations.
The Safe Store Buffer (SSB) 286 stores the current status of the processor 92 environment, including user and segment registers, for the purpose of changing processor state. The SSB 286 is coupled to and receives signals from the BOPS 284, the AP section 288, the MPS 280, and the NSA 290. The SSB 286 is bidirectionally coupled to the local cache 256, allowing SSB 286 frames to be pushed out to cache 256 when entering a new processor environment, and pulled back from cache 256 when returning to an old processor environment.
In the preferred embodiment, the Wait for Sync (WSYNC), Transmit Sync (TSYNC), Delay (DELAY), and trace (TRACE) instructions are decoded and executed under microprogram control by the MPS 280 unit in the AX unit 260. The Wait for Sync (WSYNC) and Transmit Sync
(TSYNC) instructions utilize the transmit Calendar Clock Updated signal 276 and receive Calendar Clock Updated signal 278 otherwise utilized by the local calendar clock unit 270. Operation of the TSYNC instruction is shown in more detail in FIG. 10. Operation of the WSYNC instruction is shown in more detail in FIG. 1 1. Operation of the DELAY instruction is shown in more detail in FIG. 12.
FIG. 6 is a block diagram of an alternate embodiment of the processor 92 as shown in FIG. 3. This alternate embodiment shows a pipelined processor 92' capable of simultaneously executing multiple instructions. The processor 92' is coupled to a bus 96. The bus 96 comprises a data bus 72, a address bus 74, and a control bus 76. Such a bus 96 is typically implemented as a hierarchy of busses. In this instance, the data bus 72, address bus 74, and control bus 76 together comprise a processor bus. The data bus 72, the address bus 74 and the control bus 76 are coupled to a bus interface 56. The bus interface 56 is coupled to a data cache 54, an instruction cache 56, and a trace cache 58. The data cache 54, the instruction cache 56, and the trace cache 58 are typically constructed of high speed SRAM. The coupling between the data cache 54 and the bus interface 58 is typically bi-directional, whereas the coupling between the bus interface 58 and the instruction cache 56 is typically single directional, since there is typically no need to write instructions back to slower memory (not shown). As noted in FIG. 3, the Instruction Cache 56, and Data Cache 54 are Level 1 caches in the memory hierarchy in the preferred embodiment.
The instruction cache 56 is coupled to and provides instructions to an instruction execution unit 52. The instruction execution unit 52 shown preferably provides for pipelined execution of multiple instructions, synchronization of out-of-order execution, and branch prediction. However, these optimizations are not necessary to practice this invention. The instruction execution unit 52 provides control signals to control execution of an Integer Processing Unit 60, a load/store unit 64, a floating point unit 68, and a systems unit 70 . The load/store unit 64 is bidirectionally coupled to the general puφose registers 62, the floating point registers 66 and the data cache 54. The load/store unit 64 loads values into the general puφose registers 62 and floating point registers 66 from the data cache 54, and writes them back to the data cache 54, as required.
The general-puφose registers 62 are bidirectionally coupled to and utilized by the integer-processing unit 60 to perform integer arithmetic, as well as other logical functions. Such an integer processing unit 60 typically comprises logical/shift modules, integer addition/subtraction modules, and integer multiplication/division modules. The integer processing unit 60 will typically set condition code flags in one or more condition code registers in the general puφose registers 62 based on the results of the arithmetic and logical functions performed. These condition code flags are provided to the instruction execution unit 52 for use in conditional branching. In this preferred embodiment, the integer processing unit 60 provides for arithmetic and logical functions. The general-puφose registers 62 are also bidirectionally coupled to and utilized by the systems unit 70 to perform systems functions. The systems unit 70 executes various system-level instructions, including instructions to change environment or state. In order to maintain system state, most of the instructions executed by the systems unit 70 are completion-serialized. The floating point registers 66 are bidirectionally coupled to and utilized by the floating-point unit 68 to perform floating-point arithmetic functions. A single integer processing unit 60 and floating point unit 68 are shown in this FIG. This is done here for clarity. It should be understood that the preferred embodiment of the present invention will include multiple such functional units 60, 66. A pipelined processor 92' such as shown here will typically contain multiple integer processing units 60 providing multiple concurrent integer computations, and multiple floating point units 68 providing multiple concurrent floating point computations. .
The Instruction Unit 42 comprises an instruction fetch unit 44, an instruction queue 46, an instruction dispatch unit 48, a branch processing unit 50, and an instruction completion unit 52. The instruction fetch unit 44 is coupled to and receives instructions from the instruction cache 56. The instructions fetch unit 44 provides instruction fetch control signals to the instruction cache 56. Fetched instructions are transmitted upon demand from the instruction fetch unit 44 to the instruction queue 46 for queuing. The queued instructions are subsequently removed from the instruction queue 46 and dispatched to the function units 60, 64, 68, 70 for processing by the instruction dispatch unit 48. Multiple instructions will typically be in simultaneous execution at the same time in a pipelined system. Upon completion of each of the dispatched instructions, the completing function units 60, 64, 68, 70 provide instruction completion signals to the instruction completion unit 52. The instruction completion unit 52 is coupled to and thereupon notifies the instruction fetch unit 44 of the instruction completions, allowing for further instruction fetches.
The branch-processing unit 50 is bidirectionally coupled to and receives branch instructions from the instruction fetch unit 44. The branch- processing unit 50 is coupled to and receives condition code information from the general-puφose registers 62. This condition code information is utilized by the branch-processing unit 50 to perform conditional branching. Modern branch processing units 50 in piplelined systems typically perform branch prediction and lookahead. When using branch prediction, a branch- processing unit 50 will typically provide control signals to the instruction fetch unit 44 to continue to fetch instructions until an unresolved conditional branch is resolved. The contents of general-puφose registers 62 are also received by the branch-processing unit 50 for use in indexed and indirect branching.
The systems unit 70 executes a number of instructions that are significant to the present invention. It executes a transmit sync (TSYNC) instruction for transmitting a synchronize signal to the other processors 92 in the system 80. It executes a wait-for-synchronize (WSYNC) instruction for pausing a processor 92 until it receives the synchronize signal from another processor 92. It executes a delay (DELAY) instruction for pausing or delaying a processor 92, 92' for & specified number of instruction. Finally, the systems unit 70 executes a trace (TRACE) instruction for controlling operation of the trace cache 58.
The trace cache 58 receives trace signals 59 from different modules in the processor 92. Each of these modules provides information that can be potentially traced. In the embodiment shown in FIG. 6, the trace cache 92 is coupled to and receives trace signals 59 from the data cache 54, the instruction cache 56, the branch processing unit 50, and the dispatch unit 48. The trace signals 59 from the data cache 54 and the instruction cache 56 include internal cache state signals. This provides a mechanism for recording in real time state changes for the cache memories 54, 56. The trace cache is coupled to and provides a trace output signal 61 to the bus interface 78. This allows the contents of a trace buffer to be selectively written to and saved in slower speed memory 24 in an MMU 84. This is typically done at the end of a trace so that the data traced can be processed.
FIG. 7 is a flowchart illustrating exhaustive testing of the interaction between multiple processors 92 in a single system 80. Table T- l illustrates the instructions executed by three different processors 92.
Figure imgf000017_0001
In order to exhaustively test the interaction among multiple processors 92, the above sequence of code can be executed on each of the processors 92. One of the processors (here processor H I) executes a TSYNC instruction, which transmits a synchronize signal to all of the other processors 92 in the system 80. All of the processors being tested, including the processor executing the TSYNC instruction, then wait for receipt of the synchronize signal through execution of an WSYNC instruction. At this point, all of these processors are synchronized each being ready to execute their next instruction at the next common clock 99 signal edge. Each processor then starts the relevant traces by executing a TRACE instruction and delays for a specified number of clock 99 cycles by executing a DELAY instruction. Note that since each of the tested processors executes an WSYNC, TRACE, and DELAY instruction for each test run, any two or more of these instructions may be combined into a single instruction. For example, the WSYNC instruction may be implemented as having a clock count delay operand, resulting in a specified number of clock cycles of delay after receipt of the synchronize signal. In the preferred embodiment, the WSYNC instruction both waits for the synchronize signal, and then starts tracing. Two-hundred fifty-six (256) trace entries are then traced, and the trace then automatically terminates. Note also that the traces may be started earlier, especially if trace entries are allowed to wrap around the trace RAM 210. The exhaustive testing is accomplished by varying Tl , T2, and T3 for the three processors through their respective ranges. This is preferably done through use of a three level loop structure in a test driver program. After each processor 92 is synchronized with the other processors 92, has delayed its proscribed number of clock 99 cycles, and has the appropriate traces turned on, each of the processors 92 will execute a series of test instructions. For example, when testing cache memories 54, 56, the processors 92 will execute instructions affecting the state of the cache 256. The processors implementing such cache memory testing may cause their respective caches 256, to compete for ownership of a given range of addresses of memory. The cache states for the relevant caches 256 are received on the trace input signal lines 59 by the Trace Cache 58 and written into the trace RAM 210 every clock 99 cycle during the test. At the end of the test, the trace is turned off by either writing a predetermined number of trace entries to the Trace RAM 210, filling up the Trace RAM 210 with trace entries, or execution of a second TRACE instruction. In any case, the contents of the Trace RAM 210 for each of the processors 92 is then written to slower (usually DRAM) memory 24 contained in the MMU modules 84 for subsequent evaluation. The trace entries saved in the MMU module 84 memories may also be written to secondary storage 80 for later evaluation, or for archival puφoses. The testing is then run again, with a different combination of Tl , T2, and T3 values for the three processors. This is repeated until all interesting combinations of these three timing delay values have been tested.
FIG. 7 is a flowchart illustrating a method of exhaustive testing of the interaction between multiple processors 92 in a single system 80. The method utilizes the code shown and discussed in Table T-l . In this test example, the interaction of three processors 92, PI , P2, and P3 is tested.
Each of the three processors 92 utilizes a corresponding delay value Tl , T2, and T3, for delaying the execution of its test code. The method starts by entering an outer loop. First, the next test cases are loaded from a test table, step 148. Next, a Tl delay value loop index is initialized, step 150. A second loop is then entered. The Tl delay value is then incremented, step 152, and a test is made whether the Tl delay value is within range, step 154. If the Tl delay value is within a range specified in the test table entry, step 154, a third loop is entered. In the third loop, the T2 delay value is first initialized, step 160. The T2 delay value is then incremented, step 162, and a test is made whether the T2 delay value is within range, step 164. If the T2 delay value is within a range specified in the test table entry, step 164, a fourth, inner, loop is entered. In the fourth loop, the T3 delay value is first initialized, step 170. The T3 delay value is then incremented, step 172, and a test is made whether the T3 delay value is within range, step 174. If the T3 delay value is within a range specified in the test table entry, step 174, a single test is performed, as shown in Table T-l , step 176, utilizing the Tl , T2, and T3 delay values computed in the three embedded loops. At the end of the single test, the single test run results are evaluated, as appropriate, step 178. The inner loop then repeats, starting with incrementing the T3 delay value, step 172. When the T3 delay value exceeds its specified range, step 174, the fourth loop is complete, and the third loop is repeated, starting with incrementing the T2 delay value, step 162. When the T2 delay value exceeds its specified range, step 164, the third loop is complete, and the second loop is repeated, starting with incrementing the Tl delay value, step 152. When the Tl delay value exceeds its specified range, step 154, the second loop is complete. At this point in the method, the interaction over the specified ranges of Tl , T2, and T3 for a particular test case in the test table have been exhaustively tested. The test results from the multiple tests are then evaluated, step 178. A test is then made whether there are any more test cases to test in the test table, step 158. If there are more test cases to test, the outer loop is repeated, starting with loading the next test entry from the test table, step 148. Otherwise, when there are no more test cases to test in the test table, step 158, the method is complete. It should be noted that the three embedded loops can be viewed as three embedded "DO" or "FOR" loops, incrementing Tl , T2, and T3 through their prescribed ranges. The use of these three embedded loops for testing three processors is for illustrative purposes only. More or fewer embedded loops, for testing correspondingly more or fewer processors, are within the scope of the present invention.
FIG. 8 is a flowchart illustrating operation of a master processor during one execution of the Perform Single Test step 176 in FIG. 7. The Perform Single Test, step 176, starts by setting up the delay values and test instructions for each processor being utilized, step 180. In the example in FIG. 7, the delay values for the three processors are the loop indices: Tl , T2, and T3. The test instructions for a given test typically remain constant throughout a given set of tests. A slave number (Slaved) loop index is initialized, step 181, and a loop is then entered. At the top of the loop, a Flagl corresponding to the slave being setup (Flagl [Slave#]) is set so that that slave will know to pick up its delay and test instructions, step 182. The master processor then spins on a second flag (Flag2[Slave#]) until that second flag is set, step 184. The second flag (Flag2[Slave#]) is set by the slave processor when it has completed setting up for testing, and is ready to execute a WSYNC instruction (see step 144 in FIG. 9). The first flag (Flagl [SIave#]) is then cleared, step 186, for preparation for the next execution of the Perform Single Test, step 176. The Slaved loop index is then incremented, step 188, and a test is made whether any more slaves need to be setup. If more slaves remain to setup, the loop is repeated, setting up the next slave, starting with step 182.
When no more slaves remain to be setup, step 189, the master processor is setup, step 190. This setup is similar to the setup performed for each of the slave processors. In particular, the test delay value is typically loaded into a register. After setting up for testing, a TSYNC instruction is executed, step 191, resulting in a synchronize signal being transmitted to all of the processors 92 in the data processing system 80. This is followed by execution of a WSYNC instruction, step 192, which awaits receipt of the synchronize signal just transmitted. Upon receipt of the synchronize interrupt, a TRACE is initiated, tracing 256 entries to the Trace RAM Execution of the WSYNC will also preferably turn on tracing to the TRACE RAM, step 193. In this FIG., the TSYNC, 191, WSYNC, 192, and TRACE, 193, are shown separately. This is for illustrative puφoses. In the preferred embodiment, these three functions are combined into the TSYNC instruction. After the synchronize signal has been received, and tracing started to the trace RAM 210 , step 193, a DELAY instruction is executed in order to delay for a predetermined number of clock cycles, step 194. This is the delay value for the master processor resulting from the Tl , T2, and T3 loops in FIG. 7. In the preferred embodiment, the delay value has been loaded into a register prior to executing the TSYNC, step 191, WSYNC, step 192, and TRACE, step 193, instructions. After the DELAY instruction, step 194, has completed waiting the prescribed number of clock cycles, the prespecified instruction test sequence is executed, step 195. Then, a second DELAY instruction is executed, step 196, for a long enough delay that all processors 92 being tested have completed their individual test. The Trace RAM 210 is then dumped to the system RAM, step 198, for later evaluation. Note that instead of the second DELAY instruction, step 196, other methods of processor 92 ^synchronization may also be utilized, such as a second usage of the TSYNC and WSYNC instructions.
FIG. 9 is a flowchart illustrating operation of a slave processor during execution of multiple tests. The slave computer executes a continuous loop until terminated. At the top of the loop, the second flag (Flag2[Slave#]) for the slave processor is cleared, step 132. Then, the processor 92 spins until the first flag (Flagl [Slaved]) is set, indicating that a new set of delay values and test instructions is ready for use by this slave. The test instructions are then moved to a target area, step 136. The private cache 256 is preconditioned, step 138. This is especially important if the caching system is being tested. The test delay value is then loaded into a register, step 140. The first flag (Flagl [Slave#]) is then cleared, step 142, and the second flag ' (Flag2[Slave#]) is then set, step 144, indicating that the slave processor is ready for testing. The processor 92 then awaits synchronization by executing a WSYNC instruction, step 192. After receiving the synchronization signal transmitted as a result of the TSYNC instruction executed by the master processor, step 191, a TRACE instruction is executed, step 193, starting tracing to the Trace RAM 210 , and a DELAY instruction is executed, step 194, delaying the number of clock cycles specified by the master processor. The test instructions for the slave processor are then executed, step 195, and a long delay is then entered, again by executing the DELAY instruction, step 196. Upon completion of the second DELAY instruction, step 196, the Trace RAM 210 is dumped to the system RAM, step 198, and the loop repeats, starting with clearing the second flag (Flag2[Slave#]). In this FIG., the WSYNC instruction, step 192, and the TRACE instruction, step 193, are shown as separate steps. This is illustrative. In the preferred embodiment, the functionality of both steps are combined into the WSYNC instruction.
FIG. 10 is a flowchart illustrating operation of a Transmit Sync signal (TSYNC) instruction. A special synchronize interrupt signal is transmitted to each of the processors 92 in the system 80. Note that the synchronize interrupt signal is also broadcast to the processor 20 executing the TSYNC instruction. In the flowchart, a signal is transmitted to all processors 92, step 102, in the data processing system 80. In the preferred embodiment, the synchronize interrupt signal is transmitted as the Transmit Calendar Clock Updated signal 276 from the processor 92 executing the TSYNC instruction, and received by all the processors 92 in the data processing system 80 as the Receive Calendar Clock Updated signal 278. FIG. 15 illustrates operation in the preferred embodiment of each of the processors as it receives the Calendar Clock Updated interrupt signal 278. Finally, in the preferred embodiment, the TSYNC instrucfion continues execution after step 102 by dropping into the WSYNC instruction functionality shown in FIG. 1 1.
FIG. 1 1 is a flowchart illustrating operation of a Wait for Sync signal (WSYNC) instruction. As noted above, execution of the TSYNC instruction shown in FIG. 10 drops into this functionality. In the preferred embodiment, the WSYNC and TSYNC instructions contain a maximum cycle count operand. This maximum cycle count operand can optionally be implemented as a register operand, an immediate operand, a sum of multiple registers, a sum of a register and an immediate operand, or indeed as any other type of operand supported by the architecture of the processors 92 in the data processing system 80. When a zero maximum cycle count operand is encountered during execution, the WSYNC instruction only terminates when the synchronize interrupt is received. When a maximum cycle count operand greater than zero is encountered, a maximum cycle count is indicated. The instruction will thus terminate after that delay maximum cycle count of cycles have been encountered, or when the synchronize interrupt is received, which ever comes first. Thus, a zero maximum cycle count operand can be viewed as an infinite maximum wait. If the maximum cycle count operand was loaded from a register, that register will receive the remaining number cycle count at the end of instruction execution. Thus, if the instruction terminates with a zero remaining cycle count stored in that register, and started with a maximum cycle count greater than zero, the instruction terminated due to having decremented the counter, and not from having received the synchronize interrupt. The WSYNC instruction effectively starts operation by entering into a loop. First, a check is made of the clock signal 99, step 112. If the relevant edge of the clock signal 99 has not been encountered, step 112, the loop is repeated, starting with the test whether the clock signal 99 edge has been received, step 112. Otherwise, a test is made whether the synchronize signal has been received, step 114. If the synchronize signal has not been received, step 1 1 , a test is made whether the maximum cycle count operand was greater than zero, step 115. If the initial maximum cycle count operand was not greater than zero, step 115, the loop repeats, starting at step 112. However, if the original maximum cycle count operand was greater than zero, step 115, a timeout count is indicated. A register is loaded with the maximum cycle count value, and decremented step 116, and tested against zero, step 117, at every clock. As long as the decremented remaining cycle count is greater than zero, step 117, the loop repeats, starting at step 112. Otherwise, when the synchronize interrupt has been received, step 114, tracing is started, step 118, and the loop terminates. In the preferred embodiment, 256 events are recorded in the Trace RAM, before the tracing is automatically terminated. Otherwise, if the remaining cycle count decrements to zero, step 117, the Calendar Clock Valid Flag 274 is cleared, step 119, and the loop terminates. Since the Calendar Clock Valid Flag 274 is automatically cleared whenever the Calendar Clock Updated interrupt signal 278 is received (see step 302 in FIG. 15, step 119 guarantees that the WSYNC instruction always exits with the Calendar Clock Valid Flag 274 in a safe state that guarantees that the next Read Calendar Clock instruction will read the Master Calendar Clock 97 instead of the cached calendar clock 272 (see FIG. 16). In the case of an initial maximum cycle count greater than zero, at the termination of the instruction execution, the remaining cycle count is made available in a register to provide an indication whether the WSYNC instruction terminated through a timeout, or through receipt of the synchronize interrupt.
It should also be noted that a test is made for receipt of the synchronize signal on the clock 99 edge. This is to guarantee that all processors 92 receive and respond to the synchronize signal at exactly the same time. Secondly, note that in the flowchart a tight loop is shown where the executing processor spins, waiting for clock edges, step 112. This is for illustrative puφoses. In the preferred embodiment, the WSYNC instruction is implemented utilizing a microcode engine 280 that executes a series of instructions implementing the remainder of the flowchart at each system clock cycle until the instruction terminates. Finally, as noted above in FIG. 10, in the preferred embodiment, the synchronize signal is implemented as the hardware Receive Calendar Clock Updated interrupt signal 278.
FIG. 12 is a flowchart illustrating operation of a delay (DELAY) instruction. The DELAY instruction has one or more operands to specify the number of instruction cycles to delay. This set of operands specifying the number of cycles to delay may be coded as an immediate operand, a register operand, the sum of a pair of registers, the sum of a register and an immediate operand, or indeed, any form of operand supported by the architecture. In an alternative embodiment, the number of cycles to delay can be specified in a fixed repeat count register. The DELAY instruction starts by loading the number of cycles to delay into a counter containing a remaining cycle delay count, step 122. A loop is then entered, and the remaining cycle delay count is decremented, step 126. A test is then made, comparing the remaining cycle delay count to zero. If the remaining cycle delay count is greater than or equal to zero (i.e. has not gone negative), step 128, the loop is repeated, starting with a test of the relevant edge of the clock signal 99. The loop spins, waiting for the relevant clock 99 edge. When the clock edge is detected, step 124, the remaining cycle delay count is again decremented, step 126, and again tested, step 128. The loop exits when the decrementing, step 126, causes the remaining cycle delay count to go negative, step 128. The result is that the instruction delays for exactly "N" clock 99 cycles, with "N" being the number of cycles to delay specified on the DELAY instruction. This provides a significant advantage when exhaustively testing interactions between multiple processors 92 since testing ranges can be known to have been exhaustively tested.
FIG. 13 is a block diagram illustrating the trace cache 58 shown in
FIGs. 4 and 6. The systems unit 70 provides trace control signals 57 to a trace buffer control module 202 in response to execution of a Trace instruction. The trace buffer control module 202 provides control signals to an address counter module 204. The address counter module 204 is typically reset by the trace buffer control module 202 when a trace is started. The address counter module 204 is a counter that increments at each clock 99. Address counter module 204 selectively either wraps around, or terminates a trace, when it hits its limit. If the address counter module 204 terminates a trace, the completion is transmitted to the completion unit 52. In any case, the address counter module 204 provides an address signal 212 to a memory address control module 206. The address signal 212 provided is the address of the next trace entry in a trace RAM array 210 to receive data. The memory address control module 206 stores a single trace entry in the Trace RAM 210 at the address specified by the address signal 212 at assertion of each clock b signal.
Trace input signals 59 are coupled to and received by a multiplexor (MUX) 208. The trace buffer control module 202 is coupled to and provides trace select signals 216 to the MUX 208 to select trace input signals 59 for tracing. The selection by the trace buffer control module 202 is in response to execution of a TRACE instruction by the systems unit. The MUX 208 - provides a Selected Trace Data signal 218 by selecting Trace input signals 59 in response to trace select signals 216. The values of the Selected Trace Data signals 218 are written in the Trace Ram 210 at the location specified by the address counter 204 at the assertion of each clock 99. In one embodiment, a high-order bit from the address counter module 204 is written with each trace entry in the trace RAM 210. This provides a mechanism for continuously wrapping the trace RAM 210 with trace entries. Then, when the trace data is downloaded to slower memory and evaluated, the trace entries can be properly unrolled based on this wrap bit 214, since the wrap bit 214 toggles for each cycle through the trace RAM 210.
The trace cache 58 operates by storing one entry into the trace RAM 210 for each assertion of the clock signal 99. The trace RAM is preferably high-speed memory, such as high speed Static Random Access Memory (SRAM), with a write time no longer than the width of the clock signal 99. The entire trace entry is typically a power of two (2 ) in size, such as 16, 32, 64, or 128 bits in size. The trace RAM will typically contain a power of two (2 ) number of trace entries. This allows for easy wrapping of the address counter 204 when computing memory write addresses 212. The trace RAM in the preferred embodiment contains 256 (2 ) trace entries.
One problem encountered when implementing multiple processors 92, 92' on multiple processor modules 84 is that access time to certain resources shared among the processors 92, 92' can become both lengthy and variable. Part of both the length and variability of time can be attributed to contention over a shared bus 82. Some of the resources that are commonly shared are system clocks. In the preferred embodiment, as shown in FIG. 2, a plurality of clock signals 99 are generated for all of the processors 92, 92' in the system 80 with a clock generator 98.
One clock that is maintained by the system control unit (SCU) 86, but is only provided the processors 92, 92' upon request, is a calendar clock. In the preferred embodiment, a Master Calendar Clock 97 is maintained in the system control unit (SCU) 86. Two instructions are provided to access the calendar clock. A "Read Calendar Clock" (RCCL) instruction returns the current value of the calendar clock. A "Load Calendar Clock" (LCCL) instruction operates to load the common calendar clock with a new value. In this embodiment, the calendar clock comprises a seventy-two (72) bit counter that is incremented every microsecond.' The clock signals driving that incrementation of the calendar clock every microsecond are typically either derived from a system clock, or provided by a separate oscillator.
It is important that all of the processors 92 in the data processing system 80 have the same calendar clock value. Among other reasons for this, this is important in enabling programs to be executed on different processors 92 at different times during their execution. As noted above though, in the currently disclosed data processing system 80, the time it takes to read the Master Calendar Clock 97 is lengthy and highly variable. In the preferred embodiment, this problem is solved by caching a copy of the calendar clock in each processor 92. The Cached Calendar Clock 272 is then incremented by each processor 92 utilizing the same clock signals 99 as used by the Master Calendar Clock 97. In the preferred embodiment, this is done every microsecond. Whenever a processor 92 updates the Master Calendar Clock 97, a Transmit Calendar Clock Updated signal 276 is transmitted from the cached calendar clock unit 270 of the updating processor 92. This signal is received as a Receive Calendar Clock Updated signal 278, via the bus 96, by all of the processor 92. This results in each of those processors 92 clearing its Cached Calendar Clock Valid flag 274. The next time that a program executing on any processor 92 reads the calendar clock, the cleared Cached Calendar Clock Valid flag 274 forces that processor 92 to request a current copy of the Master Calendar Clock 97. The result of this caching of the calendar clock in each processor 92 is that typical access times to the calendar clock are significantly reduced. This is because a processor 92 can utilize its own Cached Calendar Clock 272 for most reads of the calendar clock/
In the preferred embodiment of the present invention, the TSYNC and WSYNC instructions utilize the Transmit Calendar Clock Updated signal 276 and the Receive Transmit Calendar Clock Updated signal 278. If the processor 92 is in test mode, where the TSYNC and WSYNC instructions are operable, the TSYNC instruction is implemented by transmitting the Transmit Calendar Clock Updated signal 276 to each of the processors 92 in the data processing system 80. This signal is received by each processor 92 in the data processing system 80 as the Receive Transmit Calendar Clock Updated signal 278. When this signal 278 is utilized by any processors 92 waiting to terminate waiting for synchronization after executing the WSYNC instruction.
FIG. 14 is a flowchart illustrating operation of a Load Calendar Clock (LCCL) instruction, in accordance with the present invention. When the Load Calendar Clock (LCCL) instruction is executed, the Master Calendar Clock 97 is loaded with the instruction operand as the new Master Calendar Clock 97 value, step 332. Simultaneously, the Transmit Calendar Clock Updated signal 276 is asserted by the processor 92 executing the Load Calendar Clock instruction, and transmitted to each of the processors 92 in the data processing system 80, step 334, where it is received as the Receive Calendar Clock Updated signal 278 (see FIG. 15). After the Master Calendar Clock 97 has been loaded, step 332, and the Calendar Clock Updated signal 276 has been transmitted, step 334, the processor executing the instruction waits for all other processors 97 in the data processing system 80 to acknowledge receipt of the Calendar Clock Updated interrupt signal 278, step 336. This later step 336, helps to guarantee that all processors 97 in the data processing system 80 have the same Calendar Clock value.
FIG. 15 is a flowchart illustrating operation of a processor 92 after receiving a Calendar Clock Updated interrupt signal 278, in accordance with the present invention. This Calendar Clock Updated interrupt signal 278 is received by each processor 92 in the data processing system 80 in response to one processor 92 transmitting the signal on its Transmit Calendar Clock Updated signal line 276. After the interrupt has been received by a processor, the Cached Calendar Clock Valid flag 274 is cleared for that processor 92, step 302. A test is then made whether testing is enabled, step 304. If testing is enabled, step 304, a test is made whether the processor 92 is waiting for synchronization, step 306, after having executed a WSYNC (or TSYNC in the preferred embodiment) instruction. If the processor 92 is waiting for synchronization, step 306, and testing is enabled, step 304, the processor is activated, step 308. The method in FIG. 15 is shown as a flowchart. However, this is for illustrative puφoses. In the preferred embodiment, the method is implemented as a combination of hardware and firmware. In particular, note that the Cached Calendar Clock Valid flag 274 is automatically cleared whenever the Calendar Clock Updated interrupt signal 276 is received. Then, when waiting for Sync, step 306, the processor is activated, step 308, when it tests the Calendar Clock Valid flag 274 at the next clock cycle (see step 114 in FIG. 1 1 ).
FIG. 16 is a flowchart illustrating operation of a Read Calendar Clock (RCCL) instruction, in accordance with the present invention. When the Read Calendar Clock (RCCL) instruction is executed by a processor 92, a test is then made whether the Cached Calendar Clock Valid flag 274 is set, step 314. If the Cached Calendar Clock Valid flag 314 is set, step 264, the Cached Calendar Clock 272 is read, step 318, and loaded into an AQ register, step 326. Otherwise, if the Cached Calendar Clock Valid flag 274 is not set, step 314, the calendar clock value is read from the Master
Calendar Clock 97, step 316, and written to the Cached Calendar Clock 272, step 320. The calendar clock value is loaded into an AQ register, step 324, and the Cached Calendar Clock 272 is marked valid by setting the Cached Calendar Clock Valid flag 274, step 322. In either case, the instruction returns the current calendar clock value in the AQ register.
The above instructions were shown in their corresponding FIGs. implemented sequentially in flowcharts. Sequential flowcharts are used there solely for illustrative puφoses. In the preferred embodiment, these instructions are implemented as a combination of firmware executed as microcode, and hardware. As such, steps in the flowcharts that appear to be sequential in the FIGs. may be executed in parallel in the preferred embodiment.
Those skilled in the art will recognize that modifications and variations can be made without departing from the spirit of the invention. Therefore, it is intended that this invention encompasses all such variations and modifications as fall within the scope of the appended claims.
Claim elements and steps herein have been numbered and/or lettered solely as an aid in readability and understanding. As such, the numbering and/or lettering in itself is not intended to and should not be taken to indicate the ordering of elements and/or steps in the claims.

Claims

Claims What is claimed is:
1 . A data processing system comprising:
a master calendar clock is incremented in response to a calendar clock signal;
a plurality of processors, wherein:
each of the plurality of processors comprises:
a Cached Calendar Clock,
a Cached Calendar Clock Valid flag having a first logical state and a second logical state,
a first of the plurality of processors is capable of executing a Read Calendar Clock instruction,
the first one of the plurality of processors in response to executing the Read Calendar Clock instruction:
if its Cached Calendar Clock Valid flag is in the first logical state will:
read the master calendar clock,
update its Cached Calendar Clock from a value of the master calendar clock, and
set its Cached Calendar Clock Valid flag to the second logical state, and if its Cached Calendar Clock Valid flag is in the second logical state will:
read the Cached Calendar Clock.
2. The data processing system in claim 1 wherein:
a second one of the plurality of processors is capable of executing a Load Calendar Clock instruction;
the second one of the plurality of processors in response to executing the Load Calendar Clock Instruction will:
update the master calendar clock with a new value, and
cause the Cached Calendar Clock Valid flag of a third one of the plurality of processors to be set to the first logical state.
3. The data processing system in claim 1 wherein:
the data processing system further comprises:
a bus that includes a Calendar Clock Updated signal;
each of the plurality of processors is responsively coupled to the bus;
the first one of the plurality of processors sets its Cached Calendar Clock Valid flag to the first logical state in response to detecting the Calendar Clock Updated signal being asserted.
4. The data processing system in claim 3 wherein:
a second of the plurality of processors is capable of executing a Load Calendar Clock instruction; and
the second one of the plurality of processors in response to executing the Load Calendar Clock instruction will:
update the master calendar clock with a new value, and
assert the Calendar Clock Updated signal.
5. The data processing system in claim 4 wherein:
each of the plurality of processors is capable of executing the Read Calendar Clock instruction and the Load Calendar Clock instruction.
6. The data processing system in claim 4 wherein:
the Calendar Clock Updated signal is broadcast to each of the plurality of processors when the Calendar Clock Updated signal is asserted by the second one of the plurality of processors in response to that second one of the plurality of processors executing the Load Calendar Clock instruction.
7. The data processing system in claim 1 wherein:
the Cached Calendar Clock for each of the plurality of processors increments in response to the Calendar Clock signal.
8. The data processing system in claim 7 wherein:
the Calendar Clock signal is asserted once per microsecond.
The data processing system in claim 1 wherein:
the master calendar clock and the Cached Calendar Clock for each of the plurality of processors all represent a calendar clock value, and
the calendar clock value is represented as an integer number of microseconds after a prespecified date.
0. A data processing system comprising:
a bus comprising:
a Calendar Clock Updated signal, and
a Calendar Clock Increment signal,
a master calendar clock is incremented in response to the Calendar Clock Increment signal; a plurality of processors responsively coupled to the bus, wherein:
each of the plurality of processors comprises:
a Cached Calendar Clock incremented in response to the Calendar Clock Increment signal,
a Cached Calendar Clock Valid flag having a first logical state and a second logical state,
a first of the plurality of processors is capable of executing a Read Calendar Clock instruction,
the first one of the plurality of processors in response to executing the read calendar clock instruction:
if its Cached Calendar Clock Valid flag is in the first logical state will:
read the master calendar clock,
update its Cached Calendar Clock from a value of the master calendar clock, and
set its Cached Calendar Clock Valid flag to the second logical state, and
if its Cached Calendar Clock Valid flag is in the second logical state will: read the Cached Calendar Clock;
a second of the plurality of processors is capable of executing a Load Calendar Clock instruction; and
the second one of the plurality of processors in response to executing the Load Calendar Clock instruction will: update the master calendar clock with a new value, and
assert the Calendar Clock Updated signal which is broadcast to each of the plurality of processors; and
when each of the processors detects assertion of the Calendar Clock Updated signal, it will set its Cached Calendar Clock Valid flag to the first logical state if its Cached Calendar Clock Valid flag is in the second logical state.
1. A data processing system comprising:
a Master Calendar Clock; and
a first processor capable of executing a Read Calendar Clock instruction that loads a register with a current calendar clock value, wherein:
the first processor comprises:
a Cached Calendar Clock, and
a Cached Calendar Clock Valid flag having a first logical state and a second logical state;
the first processor performs a first set of operations in response to executing the Read Calendar Clock instruction when the Cached Calendar Clock Valid flag is in the first logical state, wherein the first set of operations comprises:
fetching the current calendar clock value from the Master Calendar Clock,
writing the current calendar clock value to the Cached Calendar Clock, and
setting the Cached Calendar Clock Valid flag to its second logical state; and
the first processor performs a second set of operations in response to executing the Read Calendar Clock instruction when the Cached Calendar Clock Valid Flag Is In The Second Logical State, wherein The Second Set of operations comprises:
reading the current calendar clock value from the Cached Calendar Clock.
12. The data processing system in claim 1 1 which further comprises:
a second processor capable of executing a Load Calendar Clock instruction, wherein:
the second processor in response to executing the Load Calendar Clock Instruction will:
update the master calendar clock with a new value, and
cause the Cached Calendar Clock Valid flag of the first processor to be set to the first logical state.
13. The data processing system in claim 1 1 wherein: the data processing system further comprises:
a bus that includes a Calendar Clock Updated signal;
the first processor is responsively coupled to the bus;
the first processor sets its Cached Calendar Clock Valid flag to the first logical state in response to assertion of the Calendar Clock Updated signal.
14. The data processing system in claim 13 which ftirther comprises:
a second processor capable of executing a Load Calendar Clock instruction, wherein:
the second processor in response to executing the Load Calendar Clock instruction will:
update the master calendar clock with a new value, and
assert the Calendar Clock Updated signal.
1 . The data processing system in claim 14 wherein:
both the first processor and the second processor are each capable of executing the Read Calendar Clock instruction and the Load Calendar Clock instruction.
16. The data processing system in claim 14 wherein:
the Calendar Clock Updated signal is broadcast to the first processor when the Calendar Clock Updated signal is asserted by the second processor in response to that second processor executing the Load Calendar Clock instruction.
17. The data processing system in claim 1 1 which ftirther comprises:
an Increment Calendar Clock signal generator that generates an Increment Calendar Clock signal, wherein:
the Cached Calendar Clock for the first processor increments in response to the Increment Calendar Clock signal.
18. The data processing system in claim 17 wherein:
the master calendar clock increments in response to the Increment Calendar Clock signal.
19. The data processing system in claim 17 wherein:
the Increment Calendar Clock signal is asserted once per microsecond.
0. The data processing system in claim 1 1 wherein:
the master calendar clock and the Cached Calendar Clock for the first processor both represent a calendar clock value, and
the calendar clock value is represented as an integer number of microseconds after a prespecified date.
PCT/US1999/009303 1998-09-17 1999-04-29 Calendar clock caching in a multiprocessor system WO2000016183A1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
EP99921532A EP1121630A4 (en) 1998-09-17 1999-04-29 Calendar clock caching in a multiprocessor system

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
US09/156,104 1998-09-17
US09/156,104 US6052700A (en) 1998-09-17 1998-09-17 Calendar clock caching in a multiprocessor data processing system

Publications (1)

Publication Number Publication Date
WO2000016183A1 true WO2000016183A1 (en) 2000-03-23

Family

ID=22558109

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/US1999/009303 WO2000016183A1 (en) 1998-09-17 1999-04-29 Calendar clock caching in a multiprocessor system

Country Status (3)

Country Link
US (1) US6052700A (en)
EP (1) EP1121630A4 (en)
WO (1) WO2000016183A1 (en)

Families Citing this family (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP3116901B2 (en) * 1998-04-28 2000-12-11 日本電気株式会社 Program inspection method, program inspection device, and recording medium recording program inspection program
US6493797B1 (en) * 2000-03-31 2002-12-10 Intel Corporation Multi-tag system and method for cache read/write
US20020042844A1 (en) * 2000-08-04 2002-04-11 Giovanni Chiazzese Synchronized sampling on a multiprocessor backplane via a broadcast timestamp
US7260684B2 (en) * 2001-01-16 2007-08-21 Intel Corporation Trace cache filtering
US7010762B2 (en) * 2002-02-27 2006-03-07 At&T Corp. Pre-loading content to caches for information appliances
US20040117690A1 (en) * 2002-12-13 2004-06-17 Andersson Anders J. Method and apparatus for using a hardware disk controller for storing processor execution trace information on a storage device
US8166459B2 (en) * 2008-02-27 2012-04-24 Sap Ag Apparatus and method of generating self-debugging computer software
US7921317B2 (en) * 2008-09-02 2011-04-05 Unisys Corporation Method and apparatus for synchronizing central processing units in a multiprocessor apparatus
US8775880B2 (en) * 2009-06-11 2014-07-08 STMicroelectronics Intenational N.V. Shared fuse wrapper architecture for memory repair

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US4590550A (en) * 1983-06-29 1986-05-20 International Business Machines Corporation Internally distributed monitoring system
US5444780A (en) * 1993-07-22 1995-08-22 International Business Machines Corporation Client/server based secure timekeeping system
US5761683A (en) * 1996-02-13 1998-06-02 Microtouch Systems, Inc. Techniques for changing the behavior of a link in a hypertext document
US5852824A (en) * 1997-05-22 1998-12-22 Brown; Roger W. Apparatus and method for processing year-date data in computer systems

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5067071A (en) * 1985-02-27 1991-11-19 Encore Computer Corporation Multiprocessor computer system employing a plurality of tightly coupled processors with interrupt vector bus
AU616213B2 (en) * 1987-11-09 1991-10-24 Tandem Computers Incorporated Method and apparatus for synchronizing a plurality of processors
US5551050A (en) * 1989-12-20 1996-08-27 Texas Instruments Incorporated System and method using synchronized processors to perform real time internal monitoring of a data processing device
JP2908739B2 (en) * 1994-12-16 1999-06-21 インターナショナル・ビジネス・マシーンズ・コーポレイション System and method for monitoring a CPU in a multiprocessor system

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US4590550A (en) * 1983-06-29 1986-05-20 International Business Machines Corporation Internally distributed monitoring system
US5444780A (en) * 1993-07-22 1995-08-22 International Business Machines Corporation Client/server based secure timekeeping system
US5761683A (en) * 1996-02-13 1998-06-02 Microtouch Systems, Inc. Techniques for changing the behavior of a link in a hypertext document
US5852824A (en) * 1997-05-22 1998-12-22 Brown; Roger W. Apparatus and method for processing year-date data in computer systems

Non-Patent Citations (1)

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

Also Published As

Publication number Publication date
EP1121630A4 (en) 2005-09-21
US6052700A (en) 2000-04-18
EP1121630A1 (en) 2001-08-08

Similar Documents

Publication Publication Date Title
US6223228B1 (en) Apparatus for synchronizing multiple processors in a data processing system
US6604060B1 (en) Method and apparatus for determining CC-NUMA intra-processor delays
US6530076B1 (en) Data processing system processor dynamic selection of internal signal tracing
US5357626A (en) Processing system for providing an in circuit emulator with processor internal state
US5511175A (en) Method an apparatus for store-into-instruction-stream detection and maintaining branch prediction cache consistency
EP0391173B1 (en) Debug peripheral for microcomputers, microprocessors and core processor integrated circuits and system using the same
KR100403405B1 (en) Integrated circuit with multiple functions sharing multiple internal signal buses according to distributed bus access and control arbitration
US8327161B2 (en) Command decoder for microcontroller based flash memory digital controller system
US7506205B2 (en) Debugging system and method for use with software breakpoint
US20090259875A1 (en) Store Clock and Store Clock Fast Instruction Execution
US5815688A (en) Verification of accesses in a functional model of a speculative out-of-order computer system
US20080208555A1 (en) Simulation method and simulation apparatus
JPH05100905A (en) System having hardware support break-point function and method of providing said function
GB2413418A (en) Selective generation of trace elements
US5263153A (en) Monitoring control flow in a microprocessor
JP3553946B2 (en) Execution of data processing instructions
US6760835B1 (en) Instruction branch mispredict streaming
GB2362729A (en) Memory access debug using an emulator
US5515521A (en) Circuit and method for reducing delays associated with contention interference between code fetches and operand accesses of a microprocessor
US5649137A (en) Method and apparatus for store-into-instruction-stream detection and maintaining branch prediction cache consistency
US6249880B1 (en) Method and apparatus for exhaustively testing interactions among multiple processors
US6052700A (en) Calendar clock caching in a multiprocessor data processing system
US6230263B1 (en) Data processing system processor delay instruction
KR100351527B1 (en) Code breakpoint decoder
Nielsen Titan system manual

Legal Events

Date Code Title Description
AL Designated countries for regional patents

Kind code of ref document: A1

Designated state(s): AT BE CH CY DE DK ES FI FR GB GR IE IT LU MC NL PT SE

DFPE Request for preliminary examination filed prior to expiration of 19th month from priority date (pct application filed before 20040101)
121 Ep: the epo has been informed by wipo that ep was designated in this application
REEP Request for entry into the european phase

Ref document number: 1999921532

Country of ref document: EP

WWE Wipo information: entry into national phase

Ref document number: 1999921532

Country of ref document: EP

WWP Wipo information: published in national office

Ref document number: 1999921532

Country of ref document: EP