Module 1 PT 2
Module 1 PT 2
Module 1 PT 2
MO DULE 1: C O M P U T E R A R C HI T EC TU R E & O R G A N I S AT I O N
TOPIC: C O M P U T E R A R C HI T EC TU R E
Objective:
Describe the main characteristics of a processor
CPU Components
Central Processing Unit (CPU):
◦ Is a silicon chip comprising of microscopic circuits and minute electronic components whose principal
function is to act as the information processor within a computer system.
◦ Control Unit
◦ Bus
◦ CPU Clock
◦ Registers
The components making up the CPU are:
Control Unit
The electronic component which controls the flow of information through the processor and
coordinates the activities of the other components within it. It is controls what happens in the
processor.
• Characterized by the number of bits that they can carry at a single time and also the type
of data that they carry
• Two categories:
specific functions:
◦ Control Bus: carries commands from the CPU to devices and returns status
Controls how fast a processor makes calculations. CPU clocks are rated on how much pulse they can
Registers
High speed memory locations within ta microprocessor which store information temporarily. There
are several types of registers (Accumulator, Instruction Register, Memory Address Registers and
Operand
https://www.geeksforgeeks.org/computer-organization-instruction-
formats-zero-one-two-three-address-instruction/
Instruction Types
An instruction within a computer is comprised of an operation code (op-
The op-code is the part of the instruction which recognizes the type of
The operand is the part that identifies the source and the destination of the
Example:
ADD A R1
Add the content of R1 register to accumulator; leave the result in the accumulator
DEC A
Decrement the value stored in the accumulator by 1; store the result in the accumulator
Logical instructions: these perform boolean operations such as AND, NOT,
OR, XOR on data byte on a bit-by-bit basis
Example:
ANL A 020H
Compare the content at the 20H location in RAM with the contents of the
accumulator using the AND operator; store the result in the accumulator
ORL A R2
Compare the content of the R2 register with the contents of the accumulator
using the OR operator; store the result in the accumulator.
Data transfer instructions: these are used to transfer data between an internal
RAM location and a Special Function Register (SFR) without going through the
accumulator or between an internal RAM location and an external RAM location
by using indirect addressing.
Example:
MOV R0 R2
Transfer the contents of the 23H location in RAM to the R0
PUSH 020H
CLR C
SUBB A R0
JNC ARRAY2
MOV A #20H
https://www.geeksforgeeks.org/addressing-modes/
Instruction set
An instruction set, instruction set architecture (ISA) or command set is the
Types of caching:
◦ Memory Caching
◦ Disk Caching