下图为direct mapped set associative fully associative图示
direct mapped,相当于set number为1
fully associative,相当于set number等于block number
下图为cache的基本结构
cache中包含set
index(下标)用来选择cache中对应set
set可能包含几个block
tag就是用来选择对应的block
对于1个包含8个block的cache
posted on 2016-11-23 16:26 yiyedada 阅读(3258) 评论(0) 收藏 举报