Академический Документы
Профессиональный Документы
Культура Документы
SECONDA
RY
STORAGE
DEVICES
MAIN MEMORY
CACHE MEMORY
PC
ACCUMUL
IR
ATOR AND
MBR
GENERAL
PURPOSE
REGISTER
I/O R
MAR
CONTROL
UNIT
ARITHMETIC
AND LOGICAL
UNIT
INPUT
AND
OUTPUT
DEVICES
Execution Unit:
The execution unit mainly consists of CU, ALU and Registers.
Control Unit:
The main function of the CPU is to direct and coordinate the computer operations.
It interprets the instructions and initiates action to execute them.
It controls the flow of the data through computer system and directs the ALU, registers and Input / Output devices.
It controls all the operations within the processor.
It also responsible for fetching, decoding, executing instructions and storing results.
Arithmetic and Logical Unit:
ALU performs Arithmetic (Add, Subtract, Multiply, Divide etc., ) and Logical (Comparison) and Other operations.
Registers:
A processor register is a computer memory that provides quick access to the data currently being used for processing.
ALU stores all temporary results and final results in the processor registers.
Registers are at top of the memory hierarchy and always preferred to speed up the program execution.
These are also used to store the instructions of the program currently being executed.
There are different types of registers.
Accumulator and General Purpose Registers:
These are frequently used to store the data brought from the main memory and the intermediate results during the program execution.
When program execution is completed, the result of processing is transferred to the main memory through Memory Buffer Register (MBR).
Special Purpose Registers:
MAR:
The memory Address Register (MAR) stores the address of the data or instructions to be fetched from the main memory.
MBR
The Memory Buffer Register stores the data or instructions fetched from the main memory
If an instruction is fetched from the memory, then the contents of the MBR are copied into the Instruction Register (IR)
If a data is fetched from the memory, the contents are either transferred to Accumulator or to the I/O Register.
IR
The IR stores the instructions currently being executed.
In general an instruction consists of two parts.
1. Operation
When IR is loaded an instruction the address of the data is transferred to the MAR and the operation part is given to the CPU.
I/O Register
The I/O Register is used to transfer data and instructions to or from an I/O device.
PC
The Program Counter stores the address of the next instruction.
Instruction Cycle:
To execute an instruction, a processor normally follows a set of basic operations that are together known as instruction cycle.
Store
Fetch
Execu
te
Decod
e
3. Data Bus