计算机系统概论(H)
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
- Computer is an Universal Computing Device(Turing Machine Model)
- Stored program computer(Von Neumann Model)
- Abstraction Helps Us Manage Complexity(Layers of Representation/Interpretation)
- 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:
- copy bits from right to left until (and including) the first ‘1’
- fip remaining bits to the left
Methods of converting Decimal to Binary(2’s C)
- Division
- Subtract Powers of Two
Sign Extension
0100(4) —> 00000100(4)
1100(-4) —> 11111100(-4)
Floating Point
Use equivalence of “scientific notation”:
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
,
,
Further Reading
Text
ASCII Characters
LC3
Data type: 16 bit 2’s complement signed integer operations: ADD, AND, NOT
Digital Logic Structures
Transistor
支持与分享
如果这篇文章对你有帮助,欢迎分享给更多人或赞助支持!
Blog-Yao