80 likes | 95 Views
RAT. R1 R2 R3 R4 R5 R6 R7. Fetch Q. RS. MOB. ROB. Execute. Retire. RAT. Sub R1,R1,R1. Addi R10,R0,100. R1 R2 R3 R4 R5 R6 R7. Fetch Q. RS. MOB. ROB. Execute. Retire. RAT. Lw R5, 100(R4). Addi R4,R0,20. rb1. R1 R2 R3 R4 R5 R6. Instruction Q. R7 R8 R9 R10.
E N D
RAT R1 R2 R3 R4 R5 R6 R7 Fetch Q RS MOB ROB Execute Retire
RAT Sub R1,R1,R1 Addi R10,R0,100 R1 R2 R3 R4 R5 R6 R7 Fetch Q RS MOB ROB Execute Retire
RAT Lw R5, 100(R4) Addi R4,R0,20 rb1 R1 R2 R3 R4 R5 R6 Instruction Q R7 R8 R9 R10 RS MOB RB0<-R0+100 rb0 RB1<-R1-R1 ROB RS0 Addi R10,R0,100 RS1 Sub R1,R1,R1 Execute Retire
RAT Addi R5,R3,2 MOB Addi R3,R2,2 RB4<-MEM(rb3) rb1 R1 R2 R3 R4 R5 R6 Instruction Q rb2 rb4 R7 R8 R9 R10 RS RB0<-R0+100 rb0 RB1<-R1-R1 ROB RB2<-R0+20 RS0 Addi R10,R0,100 RB3<-rb2+100 RS1 Sub R1,R1,R1 RS2 Addi R4,R0,20 RB0<-R0+100 RS3 Execute X <- 100+R4 RB1<-R1-R1 M0 Lw R5, [x] Retire
RAT Add R7,R5,R0 MOB Addi R6,R0,6 RB4<-MEM(RB3) rb1 R1 R2 R3 R4 R5 R6 rb5 Instruction Q rb2 rb6 RS R7 R8 R9 R10 RB2<-R0+20 W rb0 RB3<-rb2+100 W ROB RB5<-R2+2 ok Addi R10,R0,100 RB6<-rb5+2 ok Sub R1,R1,R1 RS2 Addi R4,R0,20 RB2<-R0+20 RS3 Execute X <- 100+R4 M0 Lw R5, [x] RS4 Addi R3,R2,2 RS5 Addi R5,R3,2 Retire
RAT Addi R9,R0,9 MOB Addi R8,R0,8 RB4<-MEM(RB3) ok Addi R10,R0,100 ok Sub R1,R1,R1 ok Addi R4,R0,20 RS3 X <- 100+R4 M0 Lw R5, [x] RS4 Addi R3,R2,2 RS5 Addi R5,R3,2 RS0 Addi R6,R0,6 RS1 Add R7,R5,R0 R1 R2 R3 R4 R5 R6 rb5 Instruction Q rb2 rb6 rb7 RS rb8 R7 R8 R9 R10 RB7<-R0+6 RB8<-rb6+R0 W ROB RB3<-rb2+100 RB5<-R2+2 W RB6<-rb5+2 RB3<-rb2+100 Execute RB5<-R2+2 R10<-RB0 R1<-RB1 Retire
RAT Bne R1,R10,L1 MOB Addi R1,R1,1 RB4<-MEM(RB3) ok ok M0 ok RS5 RS0 Addi R6,R0,6 RS1 Add R7,R5,R0 R1 R2 R3 R4 R5 R6 rb5 Instruction Q rb6 rb7 RS rb8 R7 R8 R9 R10 RB7<-R0+6 rb9 W RB8<-rb6+R0 rb0 RB9<-R0+8 (1) ROB RB0<-R0+9 Addi R9,R0,9 RS3 RB6<-rb5+2 Addi R4,R0,20 X <- 100+R4 RB6<-rb5+2 Lw R5, [x] Execute RB7<-R0+6 Addi R3,R2,2 Addi R5,R3,2 R4<-RB2 Retire Addi R8,R0,8 RS2
RAT Lw R5,100(R4) MOB Addi R4,R0,20 RB4<-MEM(RB3) Only 2 ALU! ok M0 ok ok ok Addi R6,R0,6 RS1 Add R7,R5,R0 rb1 R1 R2 R3 R4 R5 R6 rb5 Instruction Q rb6 rb7 RS rb8 R7 R8 R9 R10 rb9 RB8<-rb6+R0 rb0 RB9<-R0+8 (2) ROB RB0<-R0+9 W (SH) Addi R9,R0,9 RS3 RB1<-R1+1 RS4 Addi R1,R1,1 RB2<-rb1-R10 Bne R1,R10,L1 RS5 X <- 100+R4 RB8<-rb6+R0 Lw R5, [x] Execute RB9<-R0+8 Addi R3,R2,2 Addi R5,R3,2 Retire Addi R8,R0,8 RS2