Podcast Beta
Questions and Answers
What is the format of the main memory addresses in a set-associative cache with 64 lines divided into four-line sets and 4K blocks of 128 words each?
The format consists of 12 bits for set plus tag lengths, with the tag length being 8 bits and 7 bits for specifying the word.
In a two-way set-associative cache with lines of 16 bytes and a total size of 8 kbytes, what is the format of main memory addresses?
The format consists of 8 bits for the set number, 14 bits for the tag length, and 4 bits for the word field length.
For a machine with a byte addressable main memory of 216 bytes and a block size of 8 bytes, and using a direct mapped cache with 32 lines, how is a 16-bit memory address divided into tag, line number, and byte number?
The 16-bit memory address is divided into 5 bits for the line number, 10 bits for the tag, and 3 bits for the byte number.