[Solved] COMP4300 Homework2

$25

File Name: COMP4300_Homework2.zip
File Size: 169.56 KB

SKU: [Solved] COMP4300 Homework2 Category: Tag:
5/5 - (1 vote)
  1. Suppose you are designing a cache for a machine with 32-bit addresses. The cache is 8MB in size. Cache blocks are 4096bytes.
    1. How many blocks can be held in the cache?
    2. How many bits of the address are devoted to the offset
  1. If the cache is direct-mapped, how many bits are devoted to the tag and index?
  2. If the cache is 4-way set associative, how many bits are devoted to the tag and index? How many sets are there?
  3. If the cache is fully associative, how many bits are devoted to the tag and index?
  4. Suppose you have a machine with separate I-and D-caches. The miss rate on the I-cache is 1.6%, and on the D-cache 5.4%. On an I-cache hit, the value can be read in the same cycle the data is requested. On a D-cache hit, one additional cycle is required to read the value. The miss penalty is 110 cycles for data cache, 120 for I-cache. 25% of the instructions on this RISC machine are LW or SW instructions, the only instructions that access data memory. A cycle is 1ns. What is the average memory access time?

For I-cache:

For D-cache:

Average memory access time:

Reviews

There are no reviews yet.

Only logged in customers who have purchased this product may leave a review.

Shopping Cart
[Solved] COMP4300 Homework2
$25