Professional Documents
Culture Documents
SLO # 3
What is the role of CPU in
computer system;
SLO # 3.1.1
Role of CPU in computer system
Data Bus: The data bus allows data to travel back and forth between
the microprocessor (CPU) and memory (RAM).
Control Bus : The control bus carries the control signals that make sure
everything is flowing smoothly from place to place.
Describe the functions of following registers
and their types, i.e.
SLO # 3.1.3
CPU Registers
• These are the high speed memory locations built into the
microprocessor.
CPU Registers
• These are the high speed memory locations built into the microprocessor.
• The CPU uses these locations to store data and instructions temporarily
for processing.
• CPU processes, stores and transfer data from one component to another
with the help of registers.
• The number of register varies among computers.
• It increases the performance of CPU.
• Each register receives the information, holds it temporarily and pass it on,
as directed by CU.
• The size of register depends on the computer architecture.
There are four types Special Purpose
Register
SLO # 3.1.3
Special Purpose Registers
Program Counter (PC)
2134 10110011 1 PC
2134
ADDRESS
2135 10100011 4
2136 11100011 2
2137
2138 11110000 3
Special Purpose Registers
Instruction Register (IR)
2134 10110011 1 PC
2134
ADDRESS
2135 10100011 4
2136 11100011 2 IR
10110011
2137
2138 11110000 3
Special Purpose Registers
Memory Address Register (MAR)
2134 10110011 1 PC
2134
ADDRESS
2135 10100011 4
2136 11100011 2 IR
10110011
2137
2135 10100011 4
Accumulator (AX)
An accumulator is a register for short-term, intermediate storage
of arithmetic and logic data in a computer's CPU (central
processing unit). It is used for arithmetic and data operations.
Data Register (DX)
The data register is responsible for division and multiplication
operations.
General Purpose Register
SLO # 3.2
Compare three types of instructions of CPU, i.e.
data transfer instructions, data processing
instructions and program control instructions;
SLO # 3.2.1
Data Transfer Instructions
SLO # 3.2.2
What is instruction set?
An instruction is a statement that tells the computer to do
something. The way an instruction is given is called instruction
format.
A computer has a variety of instruction formats. The control unit of
CPU is responsible to interpret the instruction code. The control
unit also provides the necessary control function required to
process the instructions. A simple instruction format consists of 16
bits.
There are two parts of instruction code format:
• Operand code
• Address of Operand
Instruction Code Format
1. Operand code
16 bits
Instruction Code Format
2. Address of Operand
The example of this instruction format are MOV, ADD, MUL etc.
How Two-Address instruction format works
X = (A+B) * (C+D)
MOV R1 2 A 2
MOV R1, A ADD R1 6 B 4
ADD R1, B
MOV R2 3 C 3
MOV R2, C ADD R2 9 D 6
ADD R2, D
MUL R1 54 R2 9
MUL R1,R2 MOV X 54 R1 54
MOV X, R1
Types of instruction formats
Different types of instruction formats are as follows:
MUL (6)*(9)
PUSH A
PUSH B ADD (6+3)
PUSH D 6
ADD
PUSH C PUSH C 3
PUSH D
ADD (2+4)
ADD
PUSH B 4
MUL
PUSH A 2
POP X
https://bit.ly/356NdSa
Describe
fetch – decode – execute cycle with
the help of a diagram;
SLO # 3.2.3
Fetch Execute Cycle?
The contents (instruction) at the memory location Lookup MAR and get
3 (address) contained in MAR are then copied into contents. Copy contents
the MDR into the MDR
How this cycle works
The contents (instruction) in the MDR is then Copy MDR contents into
4
copied and placed into the CIR the CIR
7 Repeat
Fetch Execute Cycle
Differentiate between Complex Instruction Set
Computer (CISC) and Reduced Instruction Set
Computer (RISC) Architecture;
SLO # 3.2.4
Difference between RISC and CISC
RISC CISC
1. RISC stands for Reduced Instruction Set 1. CISC stands for Complex Instruction Set
Computer. Computer.
5. The most common RISC microprocessors are 5. Examples of CISC processors are the
Alpha, ARC, ARM, AVR, MIPS, PA-RISC, PIC, System/360, VAX, PDP-11, Motorola 68000 family,
Power Architecture, and SPARC. AMD, and Intel x86 CPUs.
Differentiate between Intel P4 and
advance micro devices (AMD) Athlon
on the basis of clock speed, bus width,
cache and architecture.
SLO # 3.2.5
Intel P4 VS (AMD) Athlon