Kien-Truc-May-Tinh - Vo-Tan-Phuong - Chapter04-Exercise - (Cuuduongthancong - Com)
Kien-Truc-May-Tinh - Vo-Tan-Phuong - Chapter04-Exercise - (Cuuduongthancong - Com)
Kien-Truc-May-Tinh - Vo-Tan-Phuong - Chapter04-Exercise - (Cuuduongthancong - Com)
2013
COMPUTER ARCHITECTURE
CE2013
Faculty of Computer Science and
Engineering
BK
TP.HCM Department of Computer Engineering
Vo Tan Phuong
http://www.cse.hcmut.edu.vn/~vtphuong
dce
2013
Chapter 4
Single-cycle & Pipeline
Processor
30 30
Instruction E
0 Rt 5 L Address u
m RB 0 32 x
u Address
BusB
m
U Data_out 1
PC
0
x m u
x Data_in
1 u RW BusW
Rd x 1
1
5
clk
ALUop
func
Op
RegDst RegWrite ExtOp ALU
Ctrl MemRead
ALUSrc
MemWrite MemtoReg
Main
Control
1 1 x 0 0 0 0 0 0 0
b. bne $t0,$zero,exit_label
Reg Reg Ext ALU Beq Bne J Mem Mem Mem
Dst Write Op Src Read Write toReg
• The ALU Control signals for the JALR instruction are shown
below. JReg = 1 and RA = 1. ALUCtrl is a don't care
a. What is the total delay for each instruction class and the clock cycle for the
single-cycle CPU design
b. Assume we fix the clock cycle to 200 ps for a multi-cycle CPU, what is the
CPI for each instruction class and the speedup over a fixed-length clock
cycle?