225 字
1 分钟

计算机系统概论(H)

2026-09-07
2026-09-14

Intro#

Instructor: Hong An(安虹)
Email: han@ustc.edu.cn
Midterm: 2026-11-09
Final: 2027-01-11

Problems Sets: ~8
Labs: 6~7
Honor Class Required: A Calculator Design or LC-3 Simulator/Assembler Design

Links: https://acsa.ustc.edu.cn/ics/

Grade = Middle(15%)+Final(25%)+Assignments(50%)+EPA(10%)

Four Great Ideas#

  1. Computer is an Universal Computing Device(Turing Machine Model)
  2. Stored program computer(Von Neumann Model)
  3. Abstraction Helps Us Manage Complexity(Layers of Representation/Interpretation)
  4. Software and Hardware Co-design

Bits, Data, Types and Operations#

Unsigned Integers#

Unsigned Binary Arithmetic

Signed Integers#

Signed Magnitude(原码)
10101B=-5D

1’s Complement(反码)
原码数据位取反
11010B=-5D
11111B=-0
11010B(-5)+00101B(5)=11111B(-0)

2’s Complement(补码)
反码+1, 解决了0出现两种表示的问题, 同时便于加法运算
11011B=-5D
00101B(5)+11011B(-5)=0

To take the two’s complement of a number:

  1. copy bits from right to left until (and including) the first ‘1’
  2. fip remaining bits to the left

Methods of converting Decimal to Binary(2’s C)

  1. Division (104/2=52r0)(104/2=52r0)
  2. Subtract Powers of Two (104−64=40,40−32=8)(104-64=40,40-32=8)

Sign Extension#

0100(4) —> 00000100(4)
1100(-4) —> 11111100(-4)

Floating Point#

Use equivalence of “scientific notation”: F×2EF \times 2^{E}
Need to represent F(fraction), E(exponent), and Sign

IEEE 754 Floating-Point Standard (32-bit):
Sign: 1 bit
Exponent: 8 bits
Fraction: 23 bits
N=(−1)S⋅(1+F)⋅2E−127N = (-1)^{S}\cdot (1+F) \cdot 2^{E-127}, E∈{1,2,…,254}E\in \{1,2,\dots,254\}
N=(−1)S⋅(F)⋅2−126N = (-1)^{S}\cdot (F) \cdot 2^{-126}, E=0E = 0

−658=−(6+48+18)=−110.101=−1.10101×22=−1.10101×2129−127-6\frac{5}{8}=-(6+\frac{4}{8}+\frac{1}{8})=-110.101=-1.10101\times 2^2=-1.10101\times 2^{129-127} \\⇒−658=1 10000001 101 0100 0000 0000 0000 0000\Rightarrow -6\frac{5}{8}=1\ 10000001\ 101\ 0100\ 0000\ 0000\ 0000\ 0000

Further Reading#

Defining Floating Point Precision

Text#

ASCII Characters

LC3#

Data type: 16 bit 2’s complement signed integer operations: ADD, AND, NOT

Digital Logic Structures#

Transistor#

支持与分享

如果这篇文章对你有帮助,欢迎分享给更多人或赞助支持!

赞助
计算机系统概论(H)
https://yhx1415926.github.io/posts/ics/
作者
yao1415926
发布于
2026-09-07
许可协议
CC BY 4.0

评论区

Profile Image of the Author
Yao1415926
Hello, I'm yao1415926.
公告
欢迎所有旅人踏进我的魔女驿站——请慢慢探索。
音乐
封面

音乐

暂未播放

0:00 0:00
暂无歌词
分类
标签
站点统计
文章
18
分类
5
标签
20
总字数
10,380
运行时长
0 天
最后活动
0 天前

目录