NPTEL Online Certification Course Advanced Computer Architecture Gem5 - Practice Questions Indian Institute of Technology Guwahati
NPTEL Online Certification Course Advanced Computer Architecture Gem5 - Practice Questions Indian Institute of Technology Guwahati
********Base Configuration*********
Numberof Cores/CPUs: 1
Cacheline/Cache-block-szie: 64B
Benchmark: bzip2
Note:
a) Command line
b) configs/common/Options.py or
ii) In cpu2006.py (inside gem5/configs/common), change the path variables to the correct path of benchmark directory
at in all the lines where it is used.
iii) Build the system with ALPHA ISA, gem5.opt binary and by invoking RUBY memory module and MESI Two-Level
protocol for cache coherence
Ques1)
Using the above configuration, change the cpu type to i) TimingSimpleCPU (inOrder Processor) ii) DerivO3CPU
(OutOfOrder Processor)
Calculate Cycles Per Instruction (CPI) for both the cases and choose the correct option.
c) CPI(i) = CPI(ii)
Ans is: b)
Ques2)
In the same configuration with cpu-type as DerviO3CPU, experiment with two different ROBEnteries. Change the
numROBEnteries in the file O3CPU.py to a) numROBEnteries= 30 and b) numROBEnteries= 60.
[the number of ReOrder buffer (numROB)= 1 in both the cases]. Calculate the ratio of cpu.fetch.rate in ‘a’
cpu.fetch.rate in ‘b’
NPTEL Online Certification Course
Advanced Computer Architecture
gem5 – Practice questions
Indian Institute of Technology Guwahati
[Note: Before making each runs on changing the numROBEnteries, perform the build operation.]
Ques3)
In the same configuration with cpu-type as DerivO3CPU, experiment with L2 cache size as: 32kB, 64kB & 128kB. Which
one of the following is true? (set numROBEntries to default as 192 and no_of_instructions as: 100000)
Ans is b)
Ques4)
Use the base configuration to measure L2 cache MPKI for two cpu types: a) TimingSimpleCPU (In-order Processor/IOP)
b) DerivO3CPU (OutOfOrder Processor/OOOP) with benchmark as namd
Ans is b)
Ques5)
In base configuration, use –cpu-type=DerivO3CPU and change the cacheline to 128B, benchmark to leslie3d. What will
be the value of L1-I cache MPKI: