当前位置:网站首页>A 32KB cache with direct mapping Memory exercises after class

A 32KB cache with direct mapping Memory exercises after class

2022-06-23 09:18:00 Gaolw1102

A method of direct mapping 32KB cache , Suppose the block length is 8 individual 32 Bitwise word , And CPU Access cache hit , The address is ABCDEF(H) The number of blocks in the cache ?

Memory of an original question after class , This question mainly focuses on main memory - cache Direct mapping Storage principle of main memory and cache :

The solution is as follows :
 Insert picture description here

Knowledge principle :

Direct mapping principle : The intra block word length of the cache is equal to the intra block word length of the main memory , Are in the lowest position of the address ; Number of cached sub blocks 2^c I.e C The number of bit addresses corresponds to the main memory C Bit address , Pictured :
 Insert picture description here

All associative mapping :
 Insert picture description here

Group associative mapping principle : The intra block word length of the cache is equal to the intra block word length of the main memory , Are in the lowest position of the address ; Number of cached packets R The number of bit addresses also corresponds to the main memory R Bit address . Pictured :
 Insert picture description here

原网站

版权声明
本文为[Gaolw1102]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/174/202206230858150461.html