Lab3-Stage3 and Forwarding

Lab3-Stage3 and Forwarding - Lab 3 Fall10; Lec11b;...

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

View Full Document Right Arrow Icon
Lab 3 – Fall’10; Lec11b; 10/27/2010. How to implement the EXE stage in a 5-stage pipeline? How to deal with the forwarding issue? Questions: 1. In which stage should we implement the forwarding mechanism? 2. How to detect hazards in stage 3? Stage 3: What’s new? - Updated function interface - New data structure for the latches - Consider MEM hazards in addition to EXE hazards IF if_id ID id_ex EX ex_mem MEM mem_wb WB op_a/op_a_Vaule registerRd registerRd op_b/op_a_Value registerRd_Value registerRd_Value ^-------------------------------------------------| new_ex_mem instruction_exe(id_ex, gpr[], *mem, ex_mem, mem_wb) { /* Question: What information should be obtained from the id_ex latch? */ /* Answer: op, operand_a, operand_b /* Question: How to represent operand_a, operand_b? */ /* Answer: name and its value */ op <- get op from id_ex; operand_a <- get operand_a from id_ex; operand_a_Value <- get operand_a_Value from id_ex;
Background image of page 1

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

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

This note was uploaded on 12/07/2011 for the course COMP 3400 taught by Professor Staff during the Fall '10 term at Auburn University.

Page1 / 2

Lab3-Stage3 and Forwarding - Lab 3 Fall10; Lec11b;...

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

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