14.11.2012 Views

PC Architecture. A book by Michael B. Karbo

PC Architecture. A book by Michael B. Karbo

PC Architecture. A book by Michael B. Karbo

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Motorola G4 4 500 MHz<br />

Motorola G4e 7 1000 MHz<br />

Pentium II and III 12 1400 MHz<br />

Athlon XP 10/15 2500 MHz<br />

Athlon 64 12/17 >3000 MHz<br />

Pentium 4 20 >3000 MHz<br />

Pentium 4 „Prescott“ 31 >5000 MHz<br />

Fig. 89. Higher clock frequencies require long “assembly lines” (pipelines).<br />

Note that the two AMD processors have different pipeline lengths for integer and floating point<br />

instructions. One can also measure a processor’s efficiency <strong>by</strong> looking at the I<strong>PC</strong> number (Instructions<br />

Per Clock), and AMD’s Athlon XP is well ahead of the Pentium 4 in this regard. AMD’s Athlon XP<br />

processors are actually much faster than the Pentium 4’s at equivalent clock frequencies.<br />

The same is even more true of the Motorola G4 processors used, for example, in Macintosh computers.<br />

The G4 only has a 4-stage pipeline, and can therefore, in principle, offer the same performance as a<br />

Pentium 4, with only half the clock frequency or less. The only problem is, the clock frequency can’t be<br />

raised very much with such a short pipeline. Intel have therefore chosen to future-proof the Pentium 4<br />

<strong>by</strong> using a very long pipeline.<br />

Execution units<br />

What is it that actually happens in the pipeline? This is where we find the so-called execution units. And<br />

we must distinguish between to types of unit:<br />

● ALU (Arithmetic and Logic Unit)<br />

● FPU (Floating Point Unit)<br />

If the processor has a brain, it is the ALU unit. It is the calculating device that does operations on<br />

whole numbers (integers). The computer’s work with ordinary text, for example, is looked after <strong>by</strong> the<br />

ALU.<br />

The ALU is good at working with whole numbers. When it comes to decimal numbers and especially<br />

numbers with many decimal places (real numbers as they are called in mathematics), the ALU chokes,<br />

and can take a very long time to process the operations. That is why an FPU is used to relieve the load.<br />

An FPU is a number cruncher, specially designed for floating point operations.<br />

There are typically several ALU’s and FPU’s in the same processor. The CPU also has other operation<br />

units, for example, the LSU (Load/Store Unit).<br />

An example sequence<br />

Look again at Fig. 73 on page 29. You can see that the processor core is right beside the L1 cache.<br />

Imagine that an instruction has to be processed:

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!