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

原文地址:https://www.cnblogs.com/yiyedada/p/6094153.html