看板 Grad-ProbAsk 關於我們 聯絡資訊
※ 引述《bernachom (Terry)》之銘言: : 請教一下 : 這題是一個TLB的計算 : A virtual memory system often implements a TLB to speed up the : virtual-to-physical address translation. : A TLB has the following characteristics. Assume each TLB entry has a valid bit : a dirty bit, a tag, and the page number. Determine the exact total number of : bits to implement this TLB. : -It is direct-mapped. : -It has 16 entries. : -The page size is 4K bytes. : -The virtual address space is 4G bytes. : -The physical memory is 1G bytes. : 我計算是 20+18+1+1=40 40*16=640 : 和書上算的好像不太一樣..我這樣子算是哪裡錯了? : 其它的就是一些名詞了 : 查過之後還是不太了解,希望可以幫忙解答一下.. : 1.regular function call : 2.ioctl system call : 3.process migration : 謝謝幫忙 page size : 4KB => 2^12B va : 4GB = 2^32B => 32bits pa : 1GB = 2^30B => 30bits 16 entries => 2^4 => index = 4bits so, 32 - 12 - 4 = 16bits = tag =>2^4*(1+1+16+18)=576bits 有錯請指教。 -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 61.57.78.159
bernachom:了解..我是看著恐龍畫的圖想說怎麼怪怪的..謝謝 12/24 00:05
assassin88:差很多..我有時也會被搞混= = 12/24 00:45