Coss MidSemester Regular
Coss MidSemester Regular
This exercise of benchmarking looks at few critical parameters such as CPI, MIPS and cycle time, and
the organization wants you to answer the following so that they can validate their results.
i. Calculate the CPI . [1]
ii. What is the “MIPS” processor speed for the benchmark in millions of instructions per second?
[1]
iii. The hardware expert says that if you double the number of registers, the cycle time must be
increased by 30%. What would the new clock speed be (in GHz)? [2]
B. About 2.5 quintillion bytes of data created each day at our current pace, but that pace is only
accelerating with the growth of social media, and Internet of Things (IoT). The data gets stored in
various storage devices and subsequently gets analyzed for business decisions. Magnetic disk drive
continues to lead the market share. Size of data stored and access time continues to be a critical
performance metrics of storage devices.
“Bgate” company which manufactures Magnetic Disk Drives seeks your help in evaluating critical
performance metrics using the following inputs:
Magnetic Disc pack has 32 surfaces, 256 tracks per surface and 512 sectors per track. There are 512
bytes per sector.
i. What is the capacity of disk pack? [1]
ii. What is the number of bits required to address a sector? [1]
iii. If the disk is rotating at 60 RPS (revolutions per second), what is the data transfer rate? [2]
B. Indian Meteorological Department’s computer data scientists contemplating the preference of using
LFU and FIFO replacement algorithms. The associative cache is having 4 lines and the address block
generated by the CPU is 2,3,6,4,3,2,5,7,6,5.
Help these Data scientists to choose the better of the two replacement algorithms. Justify your selection
with the help of the following table. [2+2 = 4]
Note: In LFU, in case of tie between cache lines for replacement, select the line which has been
there for longer time in the cache.
LFU
Time 0 1 2 3 4 5 6 7 8 9
Block # 2 3 6 4 3 2 5 7 6 5
L0
L1
L2
L3
Hit/Miss
FIFO
Time 0 1 2 3 4 5 6 7 8 9
Block # 2 3 6 4 3 2 5 7 6 5
L0
L1
L2
L3
Hit/Miss
B. Consider a program with 50 instructions to be executed by a processor with two pipeline configurations
Mode 1 and Mode 2.
Mode 1 pipeline configuration consists of 5 stages: Instruction Fetch(IF), Instruction Decode(ID),
Fetch Operand(FO), Execution(EX), and Write Back(WB) with 12, 10, 25, 20 and 8 nano seconds (ns)
respectively. The inter-stage delay between each stage is 3 ns.
Mode 2 pipeline configuration is similar to that of Mode1 except the FO stage is divided into FO1,
FO2, FO3 with time duration 10ns, 8 ns, 7ns respectively and 3ns delay between stages.
i. Find out the time taken by the program using Mode1 pipeline configuration [1.5]
ii. Find out the time taken by the program using Mode2 pipeline configuration [1.5]
iii. Find out and comment on the speedup achieved by mode2 configuration over
mode1configuration. [2]
Q4: Answer the following questions. [7 Marks]
The single cycle implementation of MIPS is as shown below. Answer the following questions with reference
to “beq $S1, $S2, 8H” instruction. Assume that the contents of the registers S1 = 10 H, S2 = 10H, and PC =
16H, pointing to the instruction under consideration.
i. What is the addressing mode of the instruction? [1]
ii. Which part of the instruction format, address of S1 and S2 are stored? [1]
iii. What is the status of different control signals to execute the instruction? Answer should be presented
in the form of table given below. Indicate Don’t care as X. [3.5]
Signal Status
RegDst
Branch
MemRead
MemtoReg
ALUOp
ALUSrc
RegWrite