Week 1 - Assignment
Week 1 - Assignment
Instruction decode → Instruction fetch -> Operand fetch → Execute → Result store
1 point
Which one of the following is the feature of the Little Endian scheme?
14 bits
8 bits
10 bits
15 bits
1 point
Consider the following operations done on a Stack Machine Architecture:
Push D
Push C
Push B
Mult
Add
Pop A
If the values in memory locations B, C, and D, are 6, 2, and 4, respectively. What will
be stored in memory location A after the execution of the above program?
14
16
26
12
A program has 30% Load instructions, 20% Store instructions, 40% ALU instructions, and
10% Branch instructions. On a processor each Load, Store, ALU and Branch instructions take
4, 3, 1 and 2 cycles, respectively. What is the average CPI (Cycles Per Instruction) on the
processor for this program?
Answer 2.4
2 points
A new Graphics Processing Unit (GPU) is added to a system, which speeds up the execution
of graphics-related instructions by 6 times. If a program has 50% graphics-related
instructions, what is the overall speedup gained while running the program on the system
with the GPU compared to running it on the system without the GPU?
Answer 3.5