The following partial specifications are given:

Untitled


Question 1.1

To determine the miss penalty (time to replace the block in cache) for the worst-case scenario (D-bit for the block to be replaced always = $1$) calculate the following:

This question is just a matter of knowing the formula.


Question 1.2 Determine the miss penalty if main memory is based on DDR-SDRAM with the same system parameters as in previous case (according to the above specification).

Whenever you see DDR-SDRAM, just know that you have to divide the block transfer time by two.

$$ T_{\text{bt}} = \frac{\text{\# of words} \times t_{\text{bus}}}{2} = \frac{240\;\text{ns}}{2} = 120\;\text{ns} $$

This is because it allows two data-words during one clock cycle period, so the block transfer gets cut in half. The rest of the formula remains the same.

$$ T_{\text{miss}} = T_{\text{br}} = (80\;\text{ns} + 120\;\text{ns}) (2) + 10\;\text{ns} = 410\;\text{ns} $$

The system with DDR-SDRAM main memory has a miss penalty of $410\;\text{ns}$.


Question 1.3 Taking in account that average access time for the cache is equal to: Hit rate $\times$ Hit time + Miss rate $\times$ Miss penalty. Find the best variant of systems organization (with minimum average data access time) out of the following options:

  1. Block size = $32$ words and Hit rate = $98\%$ & SDRAM based main memory
  2. Block size = $16$ words and Hit rate = $96\%$ & SDRAM based main memory
  3. Block size = $32$ words and Hit rate = $98\%$ & DDR-SDRAM based main memory
  4. Block size = $16$ words and Hit rate = $96\%$ & DDR-SDRAM based main memory

Calculate the value for the average data access time for each option. Fill in the Table 1.1 and select the best variant with $\min\{T_{\text{av}}\}$.

For this question, we are already given the formula for average access time, which is: