Understanding Instruction Execution and Performance Improvements in Pipelining, Study notes of Computer Science

The concept of pipelining in processor performance, discussing the execution time of instructions, the role of benchmarks in comparing machine performance, and the sources of performance improvement. It also delves into the passage of an instruction through the processor, the concept of pipelining, and the challenges of pipeline-conscious architecture.

Typology: Study notes

Pre 2010

Uploaded on 08/04/2009

koofers-user-4ce
koofers-user-4ce 🇺🇸

9 documents

1 / 8

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
Pipelining and Performance
(Ch 6, 2)
pf3
pf4
pf5
pf8

Partial preview of the text

Download Understanding Instruction Execution and Performance Improvements in Pipelining and more Study notes Computer Science in PDF only on Docsity!

Pipelining and Performance

(Ch 6, 2)

Processor Performance

  • Exec. time = Instr * CPI * cycle time• An example:
    • Instr. Class A : 1, B : 2, C : 5 cycles– code sequence 1:
      • A = 5; B = 3; C = 1 instructions executed
        • code sequence 2:
          • A = 3; B = 2; C = 2 instructions executed
            • which is faster?

Sources of Perf. Improvement

  • Increases in clock speed• Organization leading to lower CPI• Issuing multiple instructions every clock

cycle (superscalar processor design)

  • Compiler enhancements• All of the above and more in later courses...

Passage of an Instruction

  • IF: fetch an instruction• ID: decode• EX: execute• what portion of datapath used for each

state?

  • how can we use all of the hardware in the

datapath all the time?

Pipelining

  • consider an auto assembly line• apply to instruction execution
    • breakup datapath into “autonomous sections”– IF, DECODE&RR, EXEC, RW stages– what is each part of the datapath working on?
      • how to keep them autonomous?• what info is needed as instruction moves

from one stage to the next?

Pipeline-Conscious Architecture

  • need for symmetric instruction format• need to make sure equal amount of work in

each clock cycle

  • things to worry about
    • structural hazards– control hazards– data hazards
      • more in later courses….