Intro To COA Ans Von Neumann
Intro To COA Ans Von Neumann
Intro To COA Ans Von Neumann
Tasneem Mirza
Difference between Computer Organization
and Computer Architecture
Computer Architecture is related to attributes visible to a
programmer.
Eg: Instruction set
Representation of various data types
I/O mechanisms
Addressing modes
Computer Organization is about the operational units, and
their interconnections.
Eg: Control signals.
Memory technology
Interface between the computer and peripherals
Prof. Tasneem Mirza
All computers more or less based on the same basic design, the
Von Von Neumann Architecture.
Processor (CPU)
Memory Input-Output
Control Unit
ALU
Communicate with
Store data and program
"outside world", e.g.
• Screen
• Keyboard
Interprets Instructions
• Storage devices
• ...
Do arithmetic/logic operations
requested by program
CMPUT101 Introduction to
(c) Yngvi Bjornsson Computing 5
ALU + CU -- Central processing unit (CPU)
The primary function of a CPU is to execute a sequence of
instructions stored in main memory which is external to the
CPU
Instruction Cycle :The sequence of operations involved in
processing an instruction constitutes an instruction cycle
Instruction Cycle
Instruction Includes:
is obtained 1.Decoding the instruction
from MM 2.Fetching the required
operands(if any)
3.Performing the
operation as
Main Memory
Address
Data Control
Bus
Bus Bus
MAR MDR
Control
PC R0
R1
IR
ALU
Rn-1
N general
purpose reg.
1-D memory
1000 25
1001
1002
1003
1004
1. Instruction register(IR)
IR contains the instruction which is being executed.
2. Program counter(PC)
Keeps track of program execution.
During the execution of the current instruction, the contents of
the PC are updated to correspond to the address of the next
instruction to be executed.
Two registers that facilitate communication with the main
Memory.
3. Memory address register(MAR)
Used to hold the address of the location to or from which data
is to be transferred.
4. Memory data register(MDR)
Contains the data to be written into or read out of the addressed
location
5. General purpose register
Used for temporary storage.
6. Stack Pointer
Stack memory is intended for saving key information about
an
interrupted program via push operation so that the saved
information can be retrieved later via a pop operation.
The stack pointer keeps track of the stack’s entry point.
Operation of the CPU :
1. Programs are stored in the main memory.
MDR Status
Register
T
o
Data Bus
Address Bus
M
e Control Bus
m Program
o MAR IR Control
r Unit
y
PC Address
Control
Generation
Logic Unit
SP