CDA3101-L24L25-Pipeline-Ctl2Hazards

CDA3101-L24L25-Pipeline-Ctl2Hazards - CDA 3101 Summer 2011...

Info iconThis preview shows pages 1–10. 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

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

View Full DocumentRight Arrow Icon

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

View Full DocumentRight Arrow Icon

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

View Full DocumentRight 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: CDA 3101 Summer 2011 Introduction to Computer Organization Pipeline Control And Pipeline Hazards 24,26 October 2011 Control Signals PC Add Instr. Mem Data Mem Regs Sign extend ALU M u x 4 IF/ID ID/EX EX/MEM MEM/WB Add Shift left 2 ALU Control M u x M u x M u x Branch Zero MemWrite MemRead MemtoReg PCSrc ALUSrc ALUOp RegDst rt[20-16] rd[15-11] RegWrite ALU Control Input Instruction ALUOp Function code ALU Action ALU Control Lw 00 xxxxxx Add 010 Sw 00 xxxxxx Add 010 Beq 01 xxxxxx Subtract 110 Add 10 100000 Add 010 Sub 10 100010 Subtract 110 And 10 100100 And 000 Or 10 100101 Or 001 Slt 10 101010 Set on less than 111 Control Lines Instruction Execution stage control lines Memory access control lines WriteBack control lines Reg Dst ALU Op1 ALU Op2 ALU Src Branch Mem Read Mem Write Reg Write Mem2 Reg R-format 1 1 1 Lw 1 1 1 1 Sw x 1 1 x Beq x 1 1 x Control Implementation • Pipelining leaves the meaning of the 9 control lines unchanged • Set control lines (to defined values) in each stage for each instruction • Extend pipeline registers to include control information • Nothing to control during IF and ID • Create control information during ID Generation/Propagation of Control IF/ID ID/EX EX/MEM MEM/WB Control WB M EX Instruction WB WB M PC Add Instr. Mem Data Mem Regs Sign extend ALU M u x 4 IF/ID ID/EX EX/MEM MEM/WB Add Shift left 2 ALU Control M u x M u x M u x Branch Zero MemWrite MemRead MemtoReg PCSrc ALUSrc ALUOp RegDst rt[20-16] rd[15-11] RegWrite Control W B M E W B M W B Example lw $10, 20($1) sub $11, $2, $3 and $12, $4, $5 or $13, $6, $7 add $14, $8, $9 Cycle 1 Cycle 2...
View Full Document

This note was uploaded on 12/10/2011 for the course CDA 3101 taught by Professor Small during the Fall '08 term at University of Florida.

Page1 / 28

CDA3101-L24L25-Pipeline-Ctl2Hazards - CDA 3101 Summer 2011...

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

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