# 4.存储器A

## 存储器分类

### 按照介质分

(1) 半导体存储器 ：TTL 、MOS （易失）

(2) 磁表面存储器 ：磁头、载磁体 （非易失）

(3) 磁芯存储器 ：硬磁材料、环状元件 （非易失）

(4) 光盘存储器：激光、磁光材料 （非易失）

### 按存取方式分类

存取时间与物理地址无关(随机访问)

> 随机存储器 在程序的执行过程中可读可写
>
> 只读存储器 在程序的执行过程中只读

存取时间与物理地址有关(串行访问)

> 顺序存取存储器 磁带
>
> 直接存取存储器 磁盘

### 按在计算机中的作用分类

![](/files/-Lr8h0C2CulpkZ-z26si)

## 存储器的层次结构

### 存储器三个主要特性的关系

> 速度 容量 价格

![](/files/-Lr8h0C4XFKqQXaLMr7q)

### 缓存&主存层次和主存&辅存层次

![](/files/-Lr8h0C6nnny33s_oT7Z)

## 主存储器

### 基本构成

![](/files/-Lr8h0C8LnOtCv0hLGE3)

### 主存和CPU联系

![](/files/-Lr8h0CAtH02umfOWLkW)

### 存储单元地址分配

数字：12345678，32位机器，一个字4字节，4个字0-3有32字节

地址线24根,按字节寻址范围为$$2^{24} =16M$$;

若字长32位,则一个字有4个字节,所以要留2根地址线指出该字中的哪个字节\[00,01,10,11],即寻址范围为 $$2^{24−2}=4M$$;

若字长16位,则一个字有2个字节,所以要留1根地址线指出该字中的哪个字节\[0,1],即寻址范围为 $$2^{24−1}=8M$$;

![](/files/-Lr8h0CCbnDZY0U_VH1x)

### 主存技术指标

![](/files/-Lr8h0CEZY_ztqsqpDNZ)

### 半导体存储芯片的基本结构

![](/files/-Lr8h0CGBE_rlFFxpYJ6)![](/files/-Lr8h0CIHLBqESBVeis7)

#### 存储芯片选线的作用

65535选择第4组的8片，8片同一个位置读取，可以一次性得到一个字节数据

![](/files/-Lr8h0CKD9lxKtlkbcI7)

#### 存储芯片选线的译码驱动方式


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://im-qianuxn.gitbook.io/pytorch/ji-suan-ji/interview/1-2.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
