Professional Documents
Culture Documents
Computer Organization and Architecture: Mr. Rajab Muhammad Ssemwogerere 0784410986 / 0705064320
Computer Organization and Architecture: Mr. Rajab Muhammad Ssemwogerere 0784410986 / 0705064320
AND ARCHITECTURE
CHAPTER 1
Mr. Rajab Muhammad Ssemwogerere
0784410986 / 0705064320
rajabhovah@gmail.com
Ssemwogerere.rajab@kc.iuiu.ac.ug
FEEDBACK
6
6
Input and Output Devices
Store data
Examples include;
-Hard disks
-Flash Disks
-CDs
-DVDs(Digital Versatile Disc)
©2018 Comp Organisation and
Architecture By Rajab Ssemwogerere -
0705064320
Functions of a computer
1. Accepting Instructions & data from the user.
2. Performing various arithmetic and Logical
operations as per Instructions given.
3. Presenting the Information or Output to the
user
17
The Von Neumann Architecture
A Micro Computer System
Memory
System Bus
Language Translators
18
What is a computer architecture?
Computer Architecture specifies:
The structure and organization of the physical and
logical relations between parts of a computer system.
It shows the relations between the CPU, Memory, input
and output systems and interconnecting structures (bus
systems)
For example, at a high level, computer architecture
may be concerned with how the central processing
unit (CPU) acts and how it uses computer memory
19
20
Von Neumann Model
Computers vary in size, cost and performance but several
general purpose computers are based on the “Von Neumann
Model” proposed in 1946 by John Von Neumann.
The model presents the concept of a stored program(set of
instructions that describe the steps involved to carry out a
computational task).
A Program is stored in memory with any data upon which
instructions operate.
For the program to run, the Control Unit (a part of the CPU)
repeatedly fetches, interprets and (ALU part) executes the
instructions one after the other in a sequential manner.
21
Execution phase involves fetching data, altering it in some
way and writing it back to memory.
This requires that an instruction in a program should specify
both the operation and the memory address or location of any
data required during operation.
ALU (Arithmetic Logic Unit) performs operations like
addition, subtraction etc.
I/O devices transfer information to and from memory.
Various control lines are used by the control unit to sequence
transfers and enforce orderly movement of data and
instructions in the system.
22
Structure of Von Neumann Architecture
23
Structure of Von Neumann Architecture
24
The Von Neumann Model is a Model which shows the flow of
DATA and CONTROL between the various elements needed in
a generic architecture.
Defines main parts of the machine i.e.:
1. Memory: for storage for instructions (programs), data and
results.
2. Arithmetic Logic Unit: for performing calculations.
3. Control Unit: Interpreting instructions, Issuing commands
and controls the ALU
4. Input Device: provides instructions and data to programs
5. Output Device: Where results of operations are sent to.
25
A Micro Computer System
Several electronic components are mounted on the
motherboard
They are connected by conducting tracks for carrying electrical
signals between them
Digital Signals;- carry information in digital form.
Most electronic components are in the form of ICs (Integrated
Circuits) which are circuits built from small slices or chips of
the semiconductor material (silicon)
One of the largest and most complex IC on the motherboard is
the microprocessor.
26
CPU contains several electronic switches called transistors
organized in form of logic gates (logic gates to be discussed
later).
Logic gates are used to implement control unit, ALU and the
register set (CPU components)
Two types of memory exist on the printed circuit board i.e.:
1. RAM (Read-Write Memory):
It is good for storing programs and data. But it is volatile(loses
contents when power is off).
2. ROM (Read Only Memory):
Non volatile, and used to store system programs and data required
to be available when the computer is first switched on.
27
But why is ROM not suitable for storing user
programs?
Programs are stored on disk as files and must be
loaded (written) into main memory before
execution by the CPU.
28
The System Bus
The CPU is connected to memory and other parts of a
computer by a group of conducting tracks called System Bus
System bus provides a pathway for exchange of data and
control information.
System bus is divided into 3 parts;
Address Bus – Where is the information going?
Control Bus – How is it sent?
Data Bus – The actual content.
To coordinate activities taking place inside the processor, with
those taking place on the system bus, some form of timing is
required.
This timing is provided by a crystal controlled IC.
29
Peripheral devices have a much slower speed than the CPU
and therefore require special interface chips for connecting
them to the system bus.
30
Not all elements of Von Neumann's are needed, thus
three sub-units:
CPU (ALU, Control, Registers) - Combined into
one unit
I/O Devices
Memory
31
System Bus Model
ADDRESS DATA
CONTROL
Control
ALU
Registers
I/O
Devices
Memory
32
Three types of Buses & their functions
1. Data Bus
Data transfer
The data bus can be a very busy pathway
2. Address Bus
Where is the information to be sent
3. Control Bus
Used to send out signals to coordinate and manage the
activities of the motherboard components.
33
COMPUTER STRUCTURE
Memory
Stores both data and instructions that
are currently being used.
©2018 Comp Organisation and
Architecture By Rajab Ssemwogerere -
0705064320
I/O Subsystem:
Moves data between the computer and
external environment. It consists of devices
for :
Communicating with the external world
(I/O Devices)
Memory interfaces
Decode the address of the memory location being
accessed.
Buffer data onto/off the bus.
Contain circuitry to perform memory reads or write.
I/O interfaces
Buffer data onto/off the system bus
Receive commands from the CPU
Transmit information©2018 Comp Organisation and
from
Architecture their
By Rajab devices
Ssemwogerere - to the CPU.
0705064320
COMPUTER STRUCTURE
Two arrangements of these components can be
described:
The single bus / Single processor
architecture: one processing element and all
the other components are connected to a single
link (the System Bus)
08/22/2020 CPU 48
There are 4 main types of registers:
1. Memory Address Register
(MAR)
2. Memory Buffer Register (MBR)
3. Instruction Register (IR)
4. Program counter (PC)
08/22/2020 CPU 49
1. Memory Address Register (MAR)
This register holds the memory addresses of data and
instructions.
This register is used to access data and instructions
from memory during the execution phase of an
instruction.
Suppose CPU wants to store some data in the
memory or to read the data from the memory.
It places the address of the-required memory location
in the MAR
08/22/2020 CPU 50
2. Memory Buffer Register (MBR)
This register holds the contents of data or
instruction read from, or written in memory.
It means that this register is used to store
data/instruction coming from the memory or
going to the memory.
08/22/2020 CPU 51
3. Instruction Register (IR)
Is the part of a CPU's control unit that stores
the instruction currently being executed or
decoded.
In simple processors each instruction to be
executed is loaded into the instruction register
which holds it while it is decoded, prepared
and ultimately executed, which can take
several steps.
08/22/2020 CPU 52
4. Program counter (PC)
A program counter is a register in a
computer processor that contains the address (location)
of the instruction being executed at the current time.
As each instruction gets fetched, the program counter
increases its stored value by 1.
After each instruction is fetched, the program counter
points to the next instruction in the sequence.
When the computer restarts or is reset, the program
counter normally reverts to 0
08/22/2020 CPU 53
Control unit
Is responsible for controlling much of the operation of the
rest of the processor.
It does this by issuing control signals to the other areas of
the processor, instructing them on what should be
performed next
A control unit works by gathering input through a series of
commands it receives from instructions in a running
programs
Outputs those commands into control signals that the
computer and other hardware attached to the computer
carry out.
08/22/2020 CPU 54
Processor - Memory Interconnection
CPU is connected to main memory by data,
address and control bus.
A program consists of a series of instructions or
actions that the processor should carryout.
Actions are performed on data
Instructions and data are stored in main
memory during program execution.
Instructions and data occupy various memory
locations, each with a unique location
08/22/2020 CPU 55
08/22/2020 CPU 56
What happens when instructions are
fetched from the memory by the
cpu?
CISC and RISC Characteristics
The CPU executes a program, which is a sequence of
stored instructions.
Each model of processor has an instruction set, which
it executes.
The CPU executes the program by processing each
piece of data as directed by the program and the
instruction set.
While the CPU is executing one step of the program,
the remaining instructions and the data are stored
nearby in a special memory called cache.
However, there are two major CPU architectures
related to instruction sets, that is CISC and RISC
Complex Instruction Set Computer (CISC)
To be submitted on 28th/01/19
NB: Should be written on a maximum of 2pages