190 likes | 341 Views
Computer Organization & Assembly Language. Lecture # 10 By Muhammad Jafer. CENTERAL PROCESSING UNIT. Register Set Athematic Logic Unit Control Unit Data path. Instruction Cycle. Instruction Register. DATA PATH. Capable of performing certain operation on data Athematic Logic Unit
E N D
Computer Organization & Assembly Language Lecture # 10 By Muhammad Jafer
CENTERAL PROCESSING UNIT • Register Set • Athematic Logic Unit • Control Unit • Data path
Instruction Cycle • Instruction Register
DATA PATH • Capable of performing certain operation on data • Athematic Logic Unit • External Busses & Internal Busses • Both can have different design
One-bus organization • Single Bus • One instruction fetching per CPU cycle • Simple & Cheapest • Slow
two-bus organization • two Bus • Two instruction fetching per CPU cycle • In-bus & Out-bus design
three-bus organization • Three Bus • Two In-bus & one Out-bus design • More busses will have data transfer faster • More complex hardware design • Expensive
Instruction Cycle EXAMPLES • MOV AL,5 • ADD AL,[003]
Interrupts • Mechanism by which other modules (e.g. I/O) may interrupt normal sequence of processing • Program • e.g. overflow, division by zero • Timer • Generated by internal processor timer • Used in pre-emptive multi-tasking • I/O • from I/O controller • Hardware failure • e.g. memory parity error
IF Interrupts • Suspend execution of current program • Save context • Set PC to start address of interrupt handler routine • Process interrupt • Restore context and continue interrupted program
IF Interrupts • Suspend execution of current program • Save context • Set PC to start address of interrupt handler routine • Process interrupt • Restore context and continue interrupted program
Control unit • Part of CPU • Management of Computer Resources • Control and Timing Signals • Directs Flow of Data • CU Types • Mircoprogrammed • Hardwire
MICROPROGRAMMED • Memory Units storing Control Signals • Inaccessible Memory Units in RAM or ROM • Control Word is microinstruction • Microinstruction = 1/More Microoperations • Sequence of microinstructions are microprograms
hardwired • Fixed Logical Instructions • Far more faster • Not cheaper & Complex
Chapter Review • Fundamentals of Computer Organization and Architecture by MostafaAbd-Al-Barr & HeshamAlRewini • Chapter # 5 • CPU Basics • Register Set • Datapath • CPU Instruction Cycle • Control Unit