Basic Operational Concepts
Basic Operational Concepts
Architecture
Unit I – BASIC STRUCTURE OF
COMPUTERS
2. Basic Operational Concepts
Dr.R.Kalaiselvi
Overview
➢What is Interrupt?
A Typical Instruction
➢Add LOCA, R0
➢Add R1, R0
➢Add R1, R0
PC
IR
Memory
MDR
R0
R1
Control
ALU
Processor
n general purpose
registers
201F In
I1
CPU
IR Decoder
Memory
I1
ALU
Typical Operating Steps
(cont.,)
• Programs reside in the memory through input devices
• PC is set to point to the first instruction
• The contents of PC are transferred to MAR
• A Read signal is sent to the memory
• The first instruction is read out and loaded into MDR
• The contents of MDR are transferred to IR
• Decode and execute the instruction
Typical Operating Steps
(Cont’)
• Get operands for ALU
➢General-purpose register
➢Memory (address to MAR – Read – MDR to ALU)
• Perform operation in ALU
• Store the result back
➢To general-purpose register
➢To memory (address to MAR, result to MDR – Write)
• During the execution, PC is incremented to
the next instruction
Interrupt
➢Normal execution of programs may be preempted if some
device requires urgent servicing.
➢Interrupt-service routine
➢ MAR and MDR have the direct connection with the memory