§4 存储系统

type
status
date
slug
summary
tags
category
icon
password

§4.1 概述

一、存储器分类

  1. 按存储介质:半导体存储器、磁存储器、激光存储器
  1. 按存取方式分类:随机访问存储器、顺序存取存储器、直接存取存储器
  1. 按读/写功能分类:只读存储器(ROM,程序执行时无法改写)、读/写存储器(RAM)
  1. 按信息的可保存性分类:易失性存储器(断电信息消失,SRAM、DRAM)、非易失性存储器
  1. 按在计算机中的作用分类
notion image

二、存储器的层次结构

notion image
notion image

§4.2 主存储器

一、概述

  1. 主存的基本组成
notion image
  1. 主存和CPU的联系
notion image
  1. 主存中的数据组织
按边界对齐方式存储数据
  1. 主存中存储单元地址的分配
notion image
大端序、小端序
notion image
  1. 主存的技术指标
  • 存储容量
  • 存储速度
    • 存取时间:存储器的访问时间
      存取周期:连续两次独立的存储器操作所需的最小间隔时间
  • 存储器的带宽:单位时间内存储器存取的信息量(位/秒,bps)

二、半导体存储芯片简介

  1. 半导体存储芯片的基本结构
notion image
  1. 半导体存储芯片的译码驱动方式:线选法、重合法

三、随机存取存储器(RAM)

  1. 静态RAM(SRAM)
基本电路:信息存放在触发器中,读/写操作
芯片举例
读写时序
  1. 动态RAM(DRAM)
基本单元电路:信息存放在电容器中,三管单元、单管单元
芯片举例
读写时序:行、列地址分开传送
刷新:与行地址有关
① 集中刷新
notion image
② 分散刷新
notion image
③ 分散刷新与集中刷新相结合(异步刷新)
notion image
  1. 动态RAM和静态RAM的比较
notion image

四、只读存储器(ROM)

  1. 掩模ROM(MROM)
  1. PROM一次性编程
  1. EPROM(多次性编程)
  1. Flash Memory(快擦型存储器)

五、存储器与CPU的连接

  1. 存储器容量的扩展
notion image
一定不要忘记接控制线
  1. 存储器与CPU的连接
notion image
notion image
notion image
notion image

六、存储器的校验

  1. 奇偶校验码
notion image
  1. 汉明校验码
notion image
notion image
notion image
notion image
注意配偶/奇原则
notion image

期末真题

22秋
notion image
P4=0 P2=1 P1=1 0100101 0101

七、提高访存速度的措施

notion image
  1. 单体多字系统
notion image
  1. 多体并行系统
(1)高位交叉:各存储体顺序编址
notion image
(2)低位交叉:各存储体轮流编址
notion image
notion image
notion image
  1. 高性能存储芯片
notion image

§4.3 高速缓冲存储器

一、概述

  1. 问题的提出:避免CPU“空等”现象
程序访问的局部性原理
notion image
  1. Cache的工作原理
(1)主存和缓存的编址
notion image
(2)命中与未命中
notion image
(3)Cache的命中率和平均访问时间
notion image
notion image
(4)Cache-主存系统的效率
notion image
  1. Cache的基本结构

二、Cache-主存的地址映射

  1. 直接映射
notion image
  1. 全相联映射
notion image
  1. 组相联映射
notion image
notion image

三、查找方法

notion image

四、替换算法

  1. 随机法
实现简单
  1. 先进先出法FIFO
  1. 最近最少使用法LRU
notion image

五、Cache的读写操作

notion image
notion image
notion image

六、Cache结构举例

七、改进Cache性能

notion image

期末真题

24春
访cache需要20ns,主存需要100ns,cache的命中率为95%,则使用cache后,访问的性能提高多少?
Ta=0.95*20+0.05*100
100/Ta=4.17倍

§4.4 虚拟存储器

一、虚拟存储器概述

notion image
notion image
notion image

二、虚拟存储器地址映射与变换

notion image
notion image
notion image
notion image
notion image
notion image
notion image
notion image
notion image
notion image
notion image

三、举例

VN=VPN+VPO=TLBI+TLBO+VPO
VPO=PPO
PN=PPN+PPO=CT+CI+CO

期末真题

22秋
notion image
40-14=26 2^26
36-14+4=26

§4.5 辅助存储器

一、概述

  1. 特点
notion image
notion image
  1. 磁表面存储器的技术指标
notion image
notion image
notion image

三、硬磁盘存储器(机械磁盘)

  1. 磁盘驱动器
  1. 磁盘控制器
  1. 盘片

五、光盘

  1. 概述:利用激光写入和读出
  1. 光盘的存储原理
notion image
Loading...