Download Student Papers in Computer Architecture, 2004

Transcript
50
CHAPTER 12. MIPS R10000
8. It uses non-blocking cache, the processor can in advance execute load and store
instructions if the data block isn’t in the primary cache already
9. It has separate on-chip 32 kilobytes primary instruction and data caches
10. It has individually optimized secondary cache and System interface ports
11. It has an internal controller for the external secondary cache
12. It has an internal System interface controller with multiprocessor support
The T5 gain much of its power through the combination of dynamic scheduling, the
non-blocking cache and the out-of-order execution. Thanks to these functions the processor can operate on the highest possible effect by executing instruction on available
executions units without bother about the order of them [3].
Furthermore, the T5 can predict the outcome of branches and speculatively execute
the code that follows. Only when all dependencies are resolved, the results of the
completed instructions are retired and restored to their original sequences. Up to four
results can be graduated every cycle. A four quadwords branch-buffer is used for the
retirement of a wrong predicted branch, more about that in Section 12.3.4 on page 52.
Loads and stores in the T5 is non-blocking; i.e. cache misses won’t stall the processor, all other parts not involved continues to work on independent instructions while as
many as up to four cache misses are being evaluated. Hence, the R10000 is a particularly good CPU for busy database servers [1].
12.3.1 Cache and Execution Units
R10000 can fetch four 32-bits instructions from its 32 kB two-way set-associative instruction cache (also called the I-cache), i.e. there are two cache blocks for each set.
The I-cache implements the LRU (Least Recently Used) replacement algorithm making
it almost four times more efficient than the R4000. T5 also got an external secondary
cache that can range from 512 kB up to 16 MB in size, actually, the primary cache is a
subset of the secondary. Both caches use the same algorithm [1, 4]. Previous versions
of the Rx000 series chip had scalar pipelines that always executed instructions as they
where written in the program, in contrast the T5 has five totally independent pipeline
execution units.
Cached instructions are 37 bits long because five extra bits are appended during the
pre-decode-stage when instruction are being prefetched to the cache. The extra bits
assist the decode-unit by classifying the instructions after attributes and assign them
to appropriate execution unit. This step is not counted as a pipeline stage, so it is not
considered in Table 12.1 on page 52.
After an instruction has been fetched from the I-cache it passes through a twostaged decoder, the actually decoding is taking one step and the other is for the “register
renaming” mechanism explained in Section 12.3.3 on the facing page.
September 29, 2005
Taha, Löfstedt and Ågren (editors)