xuwei-zhaoxiaodong_v3 - MIPS Pipelined RISC PIPELINE...

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

View Full Document Right Arrow Icon
MIPS Pipelined RISC 徐徐 徐徐徐
Background image of page 1

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

View Full DocumentRight Arrow Icon
PIPELINE 徐徐徐徐徐 Forwarding Hazard 2-Bit Predictor
Background image of page 2
PIPELINE 徐徐徐徐徐 * 徐徐 * ID EX PCBranch move to EX Equal module before ALU Hazard module flush
Background image of page 3

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

View Full DocumentRight Arrow Icon
IF Predict module Mux1 Predict jump or not Mux2 fix wrong predict Branch Predict
Background image of page 4
Branch Predict Bimodal Predict 00,01: predict jump 10,11: predict not jump
Background image of page 5

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

View Full DocumentRight Arrow Icon
ID EX PCBranch move to EX Equal module before ALU Hazard module flush Branch Predict
Background image of page 6
仿仿仿仿 lw $1, 40($0) ;$1=1 lw $2, 44($0) ;$2=5 nop add $3, $1, $2 ;$3=6 sub $4, $2, $1 ;$4=4 or $5, $3, $4 ;$5=6 slt $5, $5, $1 ;$5=0 sw $3, 52($5) ; and $5, $3, $4 ;$5=4 lw $6, 48($0) ;$6=4 nop 10 beq $5, $6, end predict nop 11 add $5, $5, $5 ;$5=no data 12 add $5, $5, $5 ;$5=no data 13 end: sw $5, 44($4)
Background image of page 7

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

View Full DocumentRight Arrow Icon
Branch 仿仿仿仿 lw $1, 40($0) ;$1=1 lw $2, 44($0) ;$2=5 nop add $3, $1, $2 ;$3=6 sub $4, $2, $1 ;$4=4 or $5, $3, $4 ;$5=6 slt $5, $5, $1 ;$5=0 sw $3, 52($5) ; and $5, $3, $4 ;$5=4 9 end: lw $6, 48($0);$6=4 nop 10 beq $5, $6, end predict nop 11 add $5, $5, $5 ;$5=no data 12 add $5, $5, $5 ;$5=no data 13 sw $5, 44($4)
Background image of page 8
Branch 仿仿 From ins 11 to ins 13 *Include the hazard of ins 11
Background image of page 9

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

View Full DocumentRight Arrow Icon
Hazard 1. LW keep PC keep IF/ID clean Control 2. BEQ change PC change IF/ID clean Control
Background image of page 10
Image of page 11
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 02/28/2012 for the course CS 451 taught by Professor Chenying during the Fall '10 term at Shanghai Jiao Tong University.

Page1 / 17

xuwei-zhaoxiaodong_v3 - MIPS Pipelined RISC PIPELINE...

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

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