当前位置:网站首页>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 :
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 :
All associative mapping :
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 :
边栏推荐
- JS mask important data of ID card and mobile phone number with * *
- 扫码登录基本流程
- Redis学习笔记—数据类型:哈希(hash)
- The sliding window of the force button "step by step" (209. sub array with the smallest length, 904. fruit basket)
- 也无风雨也无晴
- js 用**遮罩身份证以及手机号的重要数据
- node request模块cookie使用
- How to use "tomato working method" in flowus, notation and other note taking software?
- Bit binding
- 'coach, I want to play basketball!'—— AI Learning Series booklet for system students
猜你喜欢
随机推荐
社区文章|MOSN 构建 Subset 优化思路分享
cooding代码库的使用笔记
一元函数求极限三大方法---洛必达法则,泰勒公式
Redis学习笔记—事务
Leetcode topic analysis contains duplicate II
Utilisation du cookie du module de demande de noeud
36 krypton launched | cloud native database company "tuoshupai" completed a new round of strategic financing, and the valuation has reached the level of quasi Unicorn
MQTT+Flink实现实时消息的订阅与发布
GPIO初识
力扣之滑动窗口《循序渐进》(209.长度最小的子数组、904. 水果成篮)
36氪首发|云原生数据库公司「拓数派」完成新一轮战略融资,估值已达准独角兽级别
Click Add drop-down box
JSP入门总结
MySQL故障案例 | ERROR 1071 (42000): Specified key was too long
Implementation of s5p4418 bare metal programming (replace 2ndboot)
An idea of using keep alive to cache data in vue3 form pages
Redis学习笔记—持久化机制之AOF
嵌入式系统概述(学习笔记)
Redis学习笔记—持久化机制之RDB
528. Random Pick with Weight








