Professional Documents
Culture Documents
Faculty of Engineering
Computer & Systems Eng. Dept.
Memories Sheet
1. A set-associative cache consists of 64 lines, or slots, divided into four-line sets. Main
memory contains 4K blocks of 128 words each. Show the format of main memory
addresses.
2. A two-way set-associative cache has lines of 16 bytes and a total size of 8 KB. The 64-
Mbyte main memory is byte addressable. Show the format of main memory addresses.
3.
5.
6. For a direct-mapped cache design with a 32-bit address and byte-addressable memory,
the following bits of the address are used to access the cache:
b. How many entries (cache lines) does the cache have? Cache lines are also called
blocks.
7. Recall that we have two write policies and write allocation policies, and their
combinations can be implemented either in L1 or L2 cache. Assume the following
choices for L1 and L2 caches:
8. A Virtual memory system has a 32-bit virtual address, 4 KB pages, and 4 bytes per page
table entry. Compute the total page table size.