L10 - 1 ECS 154B Computer Architecture II Winter 2008...

Info iconThis preview shows pages 1–3. Sign up to view the full content.

View Full Document Right Arrow Icon

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: 1 ECS 154B Computer Architecture II Winter 2008 Introduction to Pipelining 6.1 Partially adapted from slides by Mary Jane Irwin, Penn State 2 CPU Pipelining Example A L U IM Reg DM Reg A L U IM Reg DM Reg A L U IM Reg DM Reg A L U IM Reg DM Reg Instruction A Instruction B Instruction C Instruction D One Clock Cycle 3 Pipelining Difficulties Pipelining introduces some difficulties Hazards must be resolved Structural Hazard Conflict caused by CPU architecture Using the same resource at the same time Data Hazard Conflict caused by instruction order Using a register value before it is computed Control Hazard Conflict caused by not knowing next instructions Instructions to execute after conditional branches 4 Data Hazards Read before write data hazard A L U IM Reg DM Reg A L U IM Reg DM Reg A L U IM Reg DM Reg A L U IM Reg DM Reg add $1, $4, $5 add $8, $9, $1 add $7, $12, $1 add $2, $3, $1 2 5 Fixing Data Hazards Could fix with stalls A L...
View Full Document

This note was uploaded on 05/06/2008 for the course ECS 154b taught by Professor Krado during the Winter '08 term at UC Davis.

Page1 / 4

L10 - 1 ECS 154B Computer Architecture II Winter 2008...

This preview shows document pages 1 - 3. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online