PTT
Submit
Submit
選擇語言
正體中文
简体中文
PTT
Grad-ProbAsk
[理工] 計組 byte offset定義!
作者:
Aa841018
(andrew)
2018-12-27 17:44:05
https://i.imgur.com/sE3N47J.jpg
感覺好矛盾,出現(每個區塊X word)時,就沒問題,當出現per block就會有錯,像這
張圖,32 byte per block 32=2^5,offset應該是5吧?結果是2
https://i.imgur.com/LyrP28W.jpg
然後這張標準又變,offset=4
2^4 byte*8=128 bits來算完全沒問題………
明明offset要表達的是一個block有幾個byte,而byte per.block就是這個意思,為何有
時就是會錯啊??
作者:
w199381
(噁心肥宅)
2018-12-27 18:30:00
Byte offset 固定是2 offset 是包含word byte數加上byteoffset
作者:
gama79530
(Perfect Man)
2018-12-27 18:32:00
https://stackoverflow.com/questions/14259088/cache-
addressing-length-of-index-block-offset-byte-offset-tag
作者:
w199381
(噁心肥宅)
2018-12-27 18:33:00
所以你第二張圖中 a的offset數為4 = 2 + 2 意即 這cache的一個block 大小為 2^2的 words 而 4words 又等於2^4 bytes 也就是16 bytes
作者:
Aa841018
(andrew)
2018-12-27 19:08:00
哦!謝謝解釋,我還以為byte offset=offset.....
繼續閱讀
107成大資管資結
JocMon
[理工] 計組p20......!
Aa841018
[理工] 台聯大工數C卷PDE
duncan1315
[理工] 計組cache觀念!
Aa841018
[理工] 張凡計組 下冊 p106 13題
h3882249
[理工] Time complexity, NP
eggy1018
[理工] 線代 第七章
AAQ8
[理工] 兩題資結
AAQ8
[理工] 計組下冊122 34題
st474ddr
[理工] 計組下冊38!
Aa841018
Links
booklink
Contact Us: admin [ a t ] ucptt.com