To calculate the total time it takes for the CPU to access 100 program instructions, we can follow these steps:
- Each memory access takes 5 nanoseconds.
- The CPU accesses 100 instructions.
Now, we multiply the number of instructions by the time taken for each access:
\[ \text{Total time} = \text{Number of instructions} \times \text{Time per access} \] \[ \text{Total time} = 100 \text{ instructions} \times 5 \text{ ns/instruction} = 500 \text{ ns} \]
Thus, the total time for the CPU to access 100 instructions is 500 nanoseconds (ns).