10. Exceptions and Interrupts
CPU must prepare for unplanned events! Instruction fail External IO devices Quantum expiration (1) Check for every possible contingency (Polling) CPU 낭비 (2) 그 문제는 별로 안일어나니까. 생길때만 처리...
10. HIP - Cognitive and Motor Processor
Cognitive Processor cognitive processing rate: $\tau_c = 70ms$. HIP에서 basic principle은, Recognize-Act Cyle of Cognitive processor 이다. 즉, 인지하고 행동하기를 명령하는 사이클인 것이다. Recognize The contents of ...
9. HIP - Perceptual Processor and Memory
Human Information processor model 인지심리학의 컨셉을 ‘통합’하여 만들어짐 컴퓨터과학자들에게 이해시키기 위한 모델 매우 간단화되었음. Practical! HIP has subsystems 메모리는 공유되고, 각각의 프로세서를 가진다. 메모리: decay가 있다. (정보손실), capacity ...
9. Pipelined CPU - Control Hazard
Data Dependence (Review) True dependence (Read-after-Write) Instruction must wait for all required input operands Anti-Dependence (Write-after-Read) Later write ...
8. Pipelined CPU - Data Hazard
이전 글에서, 파이프라이닝이 똥망하는 이유를 봤다. Data Dependence Data dependence r3 ← r1 + r2 r4 ← MEM[r3] Read-after-write dependency (RAW) Anti-dependence r3 ← r1 + r2 r1 ← r4 + r5 Write-after-read dependen...
7. Pipelined CPU
Pipelining… is laundry. 이론적으로 세탁 - 건조 - 개기 - 옷장을 하나하나 단위로 하면 한참~ 걸린다. 몇개가 건조기 도는 동안 세탁기를 돌리고… 처럼 병렬로 연결하면 throughput이 4배 가까이 늘어난다. 이론적으로 완벽한, 리소스 낭비가 없는 그림이 나온다. 하지만, 실제로는 각 단계가 일정하지 않다. 각 tho...
6. Performance
Latency VS Throughput Latency: 하나의 명령어를 시작해서 끝내는데 까지 걸린 시간 Throughput: 단위시간당 끝마친 작업의 수 동시에 작업을 수행할 수 있다면 항상 latency가 throughput의 역수는 아니다. bus는 latency는 큰데 thorughput은 큼. racecar는 지연은 작지면 t...
8. Human Factor - Brain
Brain Most complex structure known Sensor와 responder를 연결해주는 역할을 한다. → 이 역할을 잘 못하는 disabled 환자도 있어서, accessibility가 중요하다. Human Uniqueness 사람은 그들이 상호작용하는 기계보다 훨씬 대단하다. (sensory input에 대한 asso...
5. Multi-Cycle CPU
Single-cycle implementation is… Sequential 하고, atomic하여 ISA의 의미와 잘 부합한다. instruction이 다음 상태를 직접 의미한다. (ex. LOAD 명령어는 다음 cycle의 레지스터가 어떻게 변할것인지를 알려줌) → but, inefficient 모든 명령어의 실행 시간이 가장 오래 걸...