Quiz #2: KT14203-Computer Architecture and Organization
Quiz #2: KT14203-Computer Architecture and Organization
Keakitekturan Komputer
Semester 2 2013/2014
Quiz #2
Answer:
There are a total of 8 kbytes/16 bytes = 512 lines [1] in the cache.
Thus the cache consists of 256 sets [1] of 2 lines each.
Therefore 8 bits [1] are needed to identify the set number.
For the 64-Mbyte main memory, a 26-bit address is needed. Main memory
consists of 64-Mbyte/16 bytes = 222 blocks [1].
Therefore, the set plus tag lengths must be 22 bits, so the tag length is 14
bits [1] and the word field length is 4 bits (16 bytes = 24) [2].