计算机组成 1
Lecture 1
Logical board - Composed of integrated circuits in an iPad
- CPU (Processor)
- data path 数据通路
- control 控制通路
- Flash (Memory)
- Volatile
- DRAM
- SRAM
- Nonvolatile
- Solid state memory, flash memory
- Magnetic disk
- Volatile
- Power controller
- I/O controller
Computer Organization
- Software
- Application software
- System Software
- Operation System (OS)
- Compiler :GCC
- Firmware (Driver software)
- Hardware
- CPU
- Control unit
- Data Path
- path: mux
- ALU
- Registers
- …
- Memory
- I/O interface
- input: keyboard
- Output: LCD
- …
- CPU
From a High-Level Language to the Language of Hardware
ISA is the interface btw hardware and lowest level-software
How to build a processor?
晶圆切片、划线、光刻印电路、检查、封装
良率 Yield: proportion of working dies per wafer $Yield=\frac{1}{(1+(defects\ per area \times die\ area/2))^2}$
比较计算机的“好坏” Performance
Response time and Throughput 反应时间和吞吐量
- Response time : how long it takes to do a task. 反应时间是指做一个任务要花多久(网速)
- Throughput : total work executed per unit time. 吞吐率是指同一时间能做多少任务(带宽)
Relative Performance 相对性能
define: performance:=1/execution time. 性能是执行时间的倒数
Measuring Execution time
Elapsed time :
total response time, IO included 总体响应时间,包含IO的部分CPU time :
不包含IO的时间
= Clock Cycles (一共多少时钟周期) / Clock Rate(一秒钟多少时钟周期CPU主频)= 多少秒 = CPU时间
Instruction count:
Clock Cycle多少周期=Instruction count多少指令 * Cycles Per Instruction (CPI)一个指令占几个周期
So, $\mathbf{CPU time=\frac{InstructionCount\times CPI}{Clock Rate}}$$\mathbf{Power=Capability\times Voltage^2\times Frequency}$
SPEC CPU Benchmark
衡量计算机计算性能的程序
本博客所有文章除特别声明外,均采用 CC BY-NC-SA 4.0 许可协议。转载请注明来自 Chuan 川 Charles!
评论