Docsity

Instruction Level Parallelism-Advance Computer Architecture-Lecture Slides, Slides of Advanced Computer Architecture

Partial preview of the text

Download Instruction Level Parallelism-Advance Computer Architecture-Lecture Slides and more Slides Advanced Computer Architecture in PDF only on Docsity!

Today’s Topics

Recap: Pipelining Basics

Longer Pipelines – FP Instructions

Loop Level Parallelism

FP Loop Hazards

Summary

Recap: Pipelined datapath and control

In the previous lecture we reviewed the pipelined datapath to understand the basics of ILP – overlap among the instruction execution to enhance performance Key components of pipeline data path Performance enhancement due to pipeline:

  • Pipelining helps instruction bandwidth

but not latency

Recap: Pipeline Hazards ….. Cont’d

Data Hazards

Recap: Three Generic Data Hazards

Read After Write (RAW): (dependence)

  • instrJ tries to read operand before instri writes it; i: add r1,r2,r j: sub r4,r1,r

Recap: Three Generic Data Hazards

  • Write After Write (WAW)

i: sub r1,r4,r j: add r1,r2,r

Recap: Pipeline Hazards ….. Cont’d

Control hazards

How to overcome Hazards?

Stall

Instruction Level Parallelism

  • clock speed
  • number of instructions that can

execute in parallel, i.e., increasing

ILP

How to achieve Instruction Level Parallelism?

A superscalar processor:

    • pre-fetch and decode
  • Start several branch instruction streams
  • Finally, discard all but the correct stream

MIPS Longer Pipelines – FP Instructions

MIPS Longer Pipelines – FP Instructions

For example to ADD two FP minimum

four steps are performed in the

following sequence:

Steps for FP Addition

Step 1: Exponents of two numbers are compared, the smaller number is shifted to the right to till its exponent matches to the larger exponent Step 2: Add the significands Step 3: Normalize the sum – shift right and increment or shift left and decrement Step 4: If no overflow or underflow then round the significand to number of bits Stop if further normalization is not required, otherwise go to step 3

MIPS Longer Pipelines …… Cont’d

  • The latency of functional unit is defined as: the number of cycles between the instructions that produces a result and the one that uses the result of the operation
  • The initiation or repeat interval is defined as: the number of cycles that must elapse between issuing two operations (repeat of an operation) of the same type

Typical MIPS FP Pipeline

Let us consider a typical MIPS FP pipeline with three un-pipelined FP functional units

Insert Fig. A.29 (page A-48)

Explanation next please

Typical MIPS FP Pipeline