請教一下,兩題記憶體的問題..
第一題:
The main memory of a computer is organized as 16 blocks, with a block
size of 8 words. The cache has 4 clock frames. In (1) through (3),
show the mappings from the numbered blocks in main memory to the block
frames in the cache. Draw all lines showing the mappings as clearly as
possible.
(3) show the two-way set-associative mapping and the address bits that
identify the tag field, the set number, and the word number.
解:http://kuso.cc/4Iw9
這個解答上的SET這樣切,是不是有錯呢??
是不是應該只有1個SET 兩個BLOCK而已?
第二題:
A computer system has a 32-bit virtual address and a 28-bit physical address.
The virtual address is divided into three parts. The last 9 bits represent
the address within a page. The next 12 bit represent the segment number. The
machine user a translation look-aside buffer(TLB)
(3)Suggest a suitable sizes for to TLB.
解:http://kuso.cc/4Iwd (圖)
http://kuso.cc/4Iwh (說明)
請教一下,分頁表的19bit是怎麼來的呢?
還有那個segment為什麼是11個bit呢?
謝謝幫忙
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 61.224.201.43