cache基本结构

下图为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  阅读(3167)  评论(0编辑  收藏  举报

导航