Docsity

Introduction to Pipelined Processors: Principles, Design Problems, and Branch Handling, Exams of Advanced Computer Architecture

Partial preview of the text

Download Introduction to Pipelined Processors: Principles, Design Problems, and Branch Handling and more Exams Advanced Computer Architecture in PDF only on Docsity!

Chapter One

Introduction to Pipelined

Processors

Principle of Designing

Pipeline Processors

(Design Problems of Pipeline Processors)

Instruction Prefetch and Branch

Handling

  • (^) Arithmetic/Load Operations (60%) : - (^) These operations require one or two operand fetches. - (^) The execution of different operations requires a different number of pipeline cycles

Instruction Prefetch and Branch

Handling

  • (^) Store Type Instructions (15%) :
    • (^) It requires a memory access to store the data.
  • (^) Branch Type Instructions (5%) :
    • (^) It corresponds to an unconditional jump.

Instruction Prefetch and Branch

Handling

  • (^) Arithmetic-load and store instructions do not alter the execution order of the program.
  • (^) Branch instructions and Interrupts cause some damaging effects on the performance of pipeline computers.

Handling Example – Interrupt System of Cray

Instruction Prefetch and Branch

Handling

  • (^) In general, the higher the percentage of branch type instructions in a program, the slower a program will run on a pipeline processor.

Effect of Branching on Pipeline Performance

  • (^) Consider a linear pipeline of 5 stages Fetch Instruction Decod e Fetch Operand s Execu te Store Results
  • I Instruction without branching
    • I
      • I
        • I
          • I
            • I
              • I
                • I
  • I I5 is a branch instruction
    • I
      • I
        • I
          • I
            • I
              • I
                • I

Estimation of the effect of branching on an n-segment instruction pipeline

Estimation of the effect of

branching

  • (^) Suppose there are m instructions
  • (^) Then no. of instructions of successful branches = mxpxq (mx0.2x0.6)
  • (^) Delay of (n-1)/n is required for each successful branch to flush pipeline.

Estimation of the effect of

branching

  • (^) Thus, the total instruction cycle required for m instructions =

n

mpq n

n m

n

Estimation of the effect of

branching

  • (^) As m becomes large , the average no. of instructions per instruction cycle is given as   n mpq n n n m m Lt m (^) 1 (  1 )    

pq n

n

Estimation of the effect of

branching

  • (^) When p =0, the above measure reduces to n, which is ideal.
  • (^) In reality, it is always less than n.