Professor Lord
Shafayat Chowdhury
9/22/2025
Assignment 1
Problem 1.
Compare volatility, approximate relative access time, and approximate relative cost of DRAM ,
Flash
memory and Disk storage.
Answer 1.
DRAM is volatile memory, meaning that it only stays in memory temporarily. Relative access
time is 50ns, and has the highest approximate relative cost.
Flash memory is nonvolatile and relative access time is much slower than DRAM but much
faster than disk storage. It has much lower relative cost than DRAM, but higher than disk
storage.
Disk storage is nonvolatile and has the slowest access time and lowest relative cost. The general
trend being faster memory being more expensive than slower memory. But they serve different
functions and therefore have their uses.
Problem 2.
Consider three different processors P1, P2, and P3 executing the same instruction set. P1 has a
3GHz
clock rate and a CPI of 1.5. P2 has a 2.5GHz clock rate and a CPI of 1.0. P3 has a 4.0GHz clock
rate and
has a CPI of 2.2.
a) Which processor has the highest performance expressed in instructions per second?
b) If the processors each execute a program in 10 seconds, find the number of cycles and the
number of instructions.
c) We are trying to reduce the execution time by 30%, but this leads to an increase of 20% in the
CPI. What clock rate should we have to get this time reduction?
Answer 2.
Instructions per second (IPS) = clock rate / CPI.
a) IPS= Clock Rate/CPI
P1: 3 GHz / 1.5 = 2.0 × 10^9 IPS, P2: 2.5 GHz / 1.0 = 2.5 × 10^9 IPS , P3: 4.0 GHz / 2.2 ≈
1.818 × 10^9 IPS. P2 has the highest performance.
b)