Lesson 8 - Parts and Function (CPU)
Lesson 8 - Parts and Function (CPU)
What is CPU?
CONTROL UNIT(CU)
ARITHMETIC AND LOGICAL UNIT (ALU)
REGISTERS
Program Counter (PC)
Memory Address Register (MAR)
Memory Data Register (MDR)
Current Instruction Register (CIR)
Accumulator (ACC)
CONTROL UNIT(CU)
1. Arithmetic Operations.
2. Logical Operations.
Logical Operations
Logical AND
Logical OR
Logical NOT
Logical EXCLUSIVE OR
ALU (Arithmetic & Logical Unit) 12
Operation : Symbol
Addition : +
Subtraction : -
Multiplication : *
Division : /
REGISTER
Program Counter (PC) - Contains the address of the next instruction to be executed.
Memory Address Register (MAR) - Contains the address of the memory location currently in
use.
Memory Data Register (MDR) - Contains instructions/data to be executed.
Current Instruction Register (CIR) - Holds the instruction whilst it is decoded.
Accumulator (ACC) - Stored the results of calculations processed by the CPU (ALU).
BUSES
Buses are a collection of wires through which data is transmitted from one part of a computer to
another. These typically include:
Data Bus - The path along which data is transmitted, usually between the CPU and memory.
This is a half-duplex pathway; data can travel in either direction but only one at a time.
Address Bus - When data is saved to/loaded from memory, the address of the memory location
to which it must be stored/loaded from must also be sent. The address always travels along the
address bus. This is a simplex pathway; the CPU only ever sends the memory address, it never
receives one from the memory.
Control Bus - The Control Unit sends and receives signals from all parts of the computer,
ensuring all the processes occur at the correct time, in the correct order. These signals travel
along the control bus.
CPU MACHINE CYCLE
A heat sink is an electronic device that incorporates either a fan or a peltier device
to keep a hot component such as a processor cool. There are two heat sink types:
active and passive. Active heat sinks utilize power and are usually a fan type or
some other peltier cooling device.