Skip to content

Commit 4cabfe6

Browse files
committed
upload 0903,0904 log of 计算机组成原理
1 parent 93b1080 commit 4cabfe6

File tree

179 files changed

+7436
-1767
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

179 files changed

+7436
-1767
lines changed

content/posts/0903.md

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
+++
2+
date = '2025-09-05T23:00:46+08:00'
3+
draft = false
4+
title = '0903学习日志'
5+
6+
categories="log"
7+
8+
tags=["计算机组成原理","虚拟存储器","TLB","Cache"]
9+
10+
+++
11+
12+
## 计算机组成原理
13+
14+
### 虚拟存储器
15+
16+
1. 基本概念
17+
2. 页式虚拟存储器
18+
1. 页表
19+
2. 地址转换
20+
3. 快表(TLB translation lookaside buffer)
21+
4. 具有TLB和Cache的多级存储系统
22+
3. 段式虚拟存储器
23+
4. 段页式虚拟存储器
24+
5. 虚拟存储器与Cache的比较
25+
1. 相同之处
26+
* 最终目标都是为了提高系统性能,两者都有容量、速度、价格的梯度
27+
* 都把数据划分为小信息块,并作为基本的交换单位,虚存系统的信息块更大
28+
* 都有地址映射、替换算法、更新策略等问题
29+
* 都依据局部性原理应用快速缓存的思想,将活跃的数据放在相对高速的部件中
30+
2. 不同之处
31+
* Cache主要解决系统速度,而虚拟存储器却是为了解决主存容量
32+
* Cache全由硬件实现,是硬件存储器,对所有程序员透明;而虚拟存储器由OS和硬件共同实现,是逻辑上的存储器,对系统程序员不透明,但对应用程序员透明
33+
* 对于不命中性能影响, 因为CPU的速度约为Cache的10倍,主存的速度为硬件的100倍以上,因此虚拟存储器系统不命中时对系统性能影响更大
34+
* CPU与Cache和主存都建立了直接访问通道,而辅存与CPU没有直接通路。也就是说在Cache不命中时能和CPU直接通信,同时将数据调入Cache;而虚拟存储器系统不命中时,只能先由硬盘调入主存,而不能直接和CPU通信

content/posts/0904.md

Lines changed: 107 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,107 @@
1+
+++
2+
date = '2025-09-05T23:42:41+08:00'
3+
draft = false
4+
title = '0904学习日志'
5+
6+
categories='log'
7+
8+
tags=["计算机组成原理","指令系统"]
9+
10+
+++
11+
12+
## 计算机组成原理
13+
14+
### 指令系统
15+
16+
1. 指令集体系结构(ISA)
17+
18+
ISA规定的内容主要包括:
19+
20+
1. 指令格式,指令寻址方式,操作类型,以及每种操作对应的操作数的相应规定
21+
2. 操作数的类型,操作数寻址方式,以及是按大段方式还是小端方式
22+
3. 程序可访问的寄存器编号、个数和位数,存储空间的大小和编址方式
23+
4. 指令执行过程的控制方式等,包括程序计数器、条件码定义等
24+
25+
2. 指令的基本格式
26+
27+
| 操作码字段 | 地址码字段 |
28+
| ---------- | ---------- |
29+
30+
定长指令字结构,变长指令字结构。主存一般是按字节编址的,所以指令字长通常为字节的整数倍。
31+
32+
1. 零地址指令
33+
34+
| OP | |
35+
| ---- | ---- |
36+
37+
2. 一地址指令
38+
39+
| OP | $A_1$ |
40+
| ---- | ----- |
41+
42+
3. 二地址指令
43+
44+
| OP | $A_1$ | $A_2$ |
45+
| ---- | ----- | ----- |
46+
47+
4. 三地址指令
48+
49+
| OP | $A_1$ | $A_2$ | $A_3$(结果) |
50+
| ---- | ----- | ----- | ------------- |
51+
52+
5. 四地址指令
53+
54+
| OP | $A_1$ | $A_2$ | $A_3$(结果) | $A_4$(下址) |
55+
| ---- | ----- | ----- | ------------- | ------------- |
56+
57+
3. 定长操作码指令格式
58+
59+
4. 扩展操作码指令格式
60+
61+
5. 指令的操作类型
62+
63+
1. 数据传送MOV,LOAD,STORE,PUSH,POP
64+
2. 算数和逻辑运算ADD,SUB,MUL,DIV,INC,DEC,AND,OR,NOT,XOR
65+
3. 移位操作
66+
4. 转移操作JMP,BRANCH,CALL,RET,TRAP
67+
5. 输入输出操作
68+
69+
### 指令的寻址方式
70+
71+
1. 指令寻址和数据寻址
72+
73+
1. 指令寻址
74+
75+
1. 顺序寻址PC+1
76+
2. 跳跃寻址
77+
78+
2. 数据寻址
79+
80+
| 操作码 | 寻址特征 | 形式地址A |
81+
| ------ | -------- | --------- |
82+
83+
2. 常见的数据寻址方式
84+
85+
1. 隐含寻址
86+
2. 立即(数)寻址
87+
3. 直接寻址
88+
4. 间接寻址
89+
5. 寄存器寻址EA=$R_i$
90+
6. 寄存器间接寻址
91+
7. 相对寻址
92+
8. 基址寻址
93+
9. 变址寻址
94+
10. 堆栈寻址
95+
96+
| 寻址方式 | 有效地址 | 访存次数 |
97+
| ------------------ | ----------- | -------- |
98+
| 立即寻址 | A即是操作数 | 0 |
99+
| 直接寻址 | EA=A | 1 |
100+
| 一次性间接寻址 | EA=(A) | 2 |
101+
| 寄存器寻址 | EA=$R_i$ | 0 |
102+
| 寄存器间接一次寻址 | EA=($R_i$) | 1 |
103+
| 相对寻址 | EA=(PC)+A | 1 |
104+
| 基址寻址 | EA=(BR)+A | 1 |
105+
| 变址寻址 | EA=(IX)+A | 1 |
106+
107+

public/404.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
<meta property='og:description' content="無職受験生 ~408に挑んだら本気だす~">
1111
<meta property='og:url' content='https://auroraemiya.github.io/npee_learning_log.github.io/404.html'>
1212
<meta property='og:site_name' content='shyの考研日志'>
13-
<meta property='og:type' content='website'><meta property='og:updated_time' content=' 2025-09-03T22:37:10&#43;08:00 '/>
13+
<meta property='og:type' content='website'><meta property='og:updated_time' content=' 2025-09-05T23:42:41&#43;08:00 '/>
1414
<meta name="twitter:title" content="404 Page not found">
1515
<meta name="twitter:description" content="無職受験生 ~408に挑んだら本気だす~">
1616

public/categories/diary/index.html

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
<meta property='og:description' content="無職受験生 ~408に挑んだら本気だす~">
1111
<meta property='og:url' content='https://auroraemiya.github.io/npee_learning_log.github.io/categories/diary/'>
1212
<meta property='og:site_name' content='shyの考研日志'>
13-
<meta property='og:type' content='website'><meta property='og:updated_time' content=' 2025-09-03T22:37:10&#43;08:00 '/>
13+
<meta property='og:type' content='website'><meta property='og:updated_time' content=' 2025-09-05T23:42:41&#43;08:00 '/>
1414
<meta name="twitter:title" content="Category: Diary - shyの考研日志">
1515
<meta name="twitter:description" content="無職受験生 ~408に挑んだら本気だす~"><link rel="alternate" type="application/rss&#43;xml" href="https://auroraemiya.github.io/npee_learning_log.github.io/categories/diary/index.xml">
1616

@@ -280,7 +280,7 @@ <h2 class="widget-title section-title">Archives</h2>
280280
<a href="/npee_learning_log.github.io/page/archives/#2025-09">
281281

282282
<span class="year">2025-09</span>
283-
<span class="count">2</span>
283+
<span class="count">4</span>
284284

285285
</a>
286286
</div>
@@ -337,14 +337,18 @@ <h2 class="widget-title section-title">Tags</h2>
337337
英语
338338
</a>
339339

340-
<a href="/npee_learning_log.github.io/tags/%E8%AE%A1%E7%AE%97%E6%9C%BA%E7%BB%84%E6%88%90%E5%8E%9F%E7%90%86/" class="font_size_5">
340+
<a href="/npee_learning_log.github.io/tags/%E8%AE%A1%E7%AE%97%E6%9C%BA%E7%BB%84%E6%88%90%E5%8E%9F%E7%90%86/" class="font_size_7">
341341
计算机组成原理
342342
</a>
343343

344344
<a href="/npee_learning_log.github.io/tags/%E5%90%8C%E6%AD%A5/" class="font_size_3">
345345
同步
346346
</a>
347347

348+
<a href="/npee_learning_log.github.io/tags/cache/" class="font_size_2">
349+
Cache
350+
</a>
351+
348352
<a href="/npee_learning_log.github.io/tags/%E4%B8%80%E5%85%83%E5%BE%AE%E5%88%86/" class="font_size_2">
349353
一元微分
350354
</a>
@@ -357,10 +361,6 @@ <h2 class="widget-title section-title">Tags</h2>
357361
互斥
358362
</a>
359363

360-
<a href="/npee_learning_log.github.io/tags/%E6%8E%92%E5%BA%8F/" class="font_size_2">
361-
排序
362-
</a>
363-
364364
</div>
365365
</section>
366366

public/categories/index.html

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
<meta property='og:description' content="無職受験生 ~408に挑んだら本気だす~">
1111
<meta property='og:url' content='https://auroraemiya.github.io/npee_learning_log.github.io/categories/'>
1212
<meta property='og:site_name' content='shyの考研日志'>
13-
<meta property='og:type' content='website'><meta property='og:updated_time' content=' 2025-09-03T22:37:10&#43;08:00 '/>
13+
<meta property='og:type' content='website'><meta property='og:updated_time' content=' 2025-09-05T23:42:41&#43;08:00 '/>
1414
<meta name="twitter:title" content="Categories">
1515
<meta name="twitter:description" content="無職受験生 ~408に挑んだら本気だす~"><link rel="alternate" type="application/rss&#43;xml" href="https://auroraemiya.github.io/npee_learning_log.github.io/categories/index.xml">
1616

@@ -280,7 +280,7 @@ <h2 class="widget-title section-title">Archives</h2>
280280
<a href="/npee_learning_log.github.io/page/archives/#2025-09">
281281

282282
<span class="year">2025-09</span>
283-
<span class="count">2</span>
283+
<span class="count">4</span>
284284

285285
</a>
286286
</div>
@@ -337,14 +337,18 @@ <h2 class="widget-title section-title">Tags</h2>
337337
英语
338338
</a>
339339

340-
<a href="/npee_learning_log.github.io/tags/%E8%AE%A1%E7%AE%97%E6%9C%BA%E7%BB%84%E6%88%90%E5%8E%9F%E7%90%86/" class="font_size_5">
340+
<a href="/npee_learning_log.github.io/tags/%E8%AE%A1%E7%AE%97%E6%9C%BA%E7%BB%84%E6%88%90%E5%8E%9F%E7%90%86/" class="font_size_7">
341341
计算机组成原理
342342
</a>
343343

344344
<a href="/npee_learning_log.github.io/tags/%E5%90%8C%E6%AD%A5/" class="font_size_3">
345345
同步
346346
</a>
347347

348+
<a href="/npee_learning_log.github.io/tags/cache/" class="font_size_2">
349+
Cache
350+
</a>
351+
348352
<a href="/npee_learning_log.github.io/tags/%E4%B8%80%E5%85%83%E5%BE%AE%E5%88%86/" class="font_size_2">
349353
一元微分
350354
</a>
@@ -357,10 +361,6 @@ <h2 class="widget-title section-title">Tags</h2>
357361
互斥
358362
</a>
359363

360-
<a href="/npee_learning_log.github.io/tags/%E6%8E%92%E5%BA%8F/" class="font_size_2">
361-
排序
362-
</a>
363-
364364
</div>
365365
</section>
366366

@@ -392,7 +392,7 @@ <h1 class="section-term">Categories</h1>
392392
<div class="article-details">
393393
<h2 class="article-title">Log</h2>
394394
<footer class="article-time">
395-
<time datetime='2025-09-03T22:37:10&#43;08:00'>Sep 03, 2025</time>
395+
<time datetime='2025-09-05T23:42:41&#43;08:00'>Sep 05, 2025</time>
396396
</footer>
397397
</div>
398398
</a>

public/categories/index.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,10 @@
66
<description>Recent content in Categories on shyの考研日志</description>
77
<generator>Hugo -- gohugo.io</generator>
88
<language>zh-cn</language>
9-
<lastBuildDate>Wed, 03 Sep 2025 22:37:10 +0800</lastBuildDate><atom:link href="https://auroraemiya.github.io/npee_learning_log.github.io/categories/index.xml" rel="self" type="application/rss+xml" /><item>
9+
<lastBuildDate>Fri, 05 Sep 2025 23:42:41 +0800</lastBuildDate><atom:link href="https://auroraemiya.github.io/npee_learning_log.github.io/categories/index.xml" rel="self" type="application/rss+xml" /><item>
1010
<title>Log</title>
1111
<link>https://auroraemiya.github.io/npee_learning_log.github.io/categories/log/</link>
12-
<pubDate>Wed, 03 Sep 2025 22:37:10 +0800</pubDate>
12+
<pubDate>Fri, 05 Sep 2025 23:42:41 +0800</pubDate>
1313

1414
<guid>https://auroraemiya.github.io/npee_learning_log.github.io/categories/log/</guid>
1515
<description></description>

public/categories/interests/index.html

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
<meta property='og:description' content="無職受験生 ~408に挑んだら本気だす~">
1111
<meta property='og:url' content='https://auroraemiya.github.io/npee_learning_log.github.io/categories/interests/'>
1212
<meta property='og:site_name' content='shyの考研日志'>
13-
<meta property='og:type' content='website'><meta property='og:updated_time' content=' 2025-09-03T22:37:10&#43;08:00 '/>
13+
<meta property='og:type' content='website'><meta property='og:updated_time' content=' 2025-09-05T23:42:41&#43;08:00 '/>
1414
<meta name="twitter:title" content="Category: Interests - shyの考研日志">
1515
<meta name="twitter:description" content="無職受験生 ~408に挑んだら本気だす~"><link rel="alternate" type="application/rss&#43;xml" href="https://auroraemiya.github.io/npee_learning_log.github.io/categories/interests/index.xml">
1616

@@ -280,7 +280,7 @@ <h2 class="widget-title section-title">Archives</h2>
280280
<a href="/npee_learning_log.github.io/page/archives/#2025-09">
281281

282282
<span class="year">2025-09</span>
283-
<span class="count">2</span>
283+
<span class="count">4</span>
284284

285285
</a>
286286
</div>
@@ -337,14 +337,18 @@ <h2 class="widget-title section-title">Tags</h2>
337337
英语
338338
</a>
339339

340-
<a href="/npee_learning_log.github.io/tags/%E8%AE%A1%E7%AE%97%E6%9C%BA%E7%BB%84%E6%88%90%E5%8E%9F%E7%90%86/" class="font_size_5">
340+
<a href="/npee_learning_log.github.io/tags/%E8%AE%A1%E7%AE%97%E6%9C%BA%E7%BB%84%E6%88%90%E5%8E%9F%E7%90%86/" class="font_size_7">
341341
计算机组成原理
342342
</a>
343343

344344
<a href="/npee_learning_log.github.io/tags/%E5%90%8C%E6%AD%A5/" class="font_size_3">
345345
同步
346346
</a>
347347

348+
<a href="/npee_learning_log.github.io/tags/cache/" class="font_size_2">
349+
Cache
350+
</a>
351+
348352
<a href="/npee_learning_log.github.io/tags/%E4%B8%80%E5%85%83%E5%BE%AE%E5%88%86/" class="font_size_2">
349353
一元微分
350354
</a>
@@ -357,10 +361,6 @@ <h2 class="widget-title section-title">Tags</h2>
357361
互斥
358362
</a>
359363

360-
<a href="/npee_learning_log.github.io/tags/%E6%8E%92%E5%BA%8F/" class="font_size_2">
361-
排序
362-
</a>
363-
364364
</div>
365365
</section>
366366

0 commit comments

Comments
 (0)