Escolar Documentos
Profissional Documentos
Cultura Documentos
(NCP 423)
Introduction
Peripherals Computer
Central Main
Processing Memory
Unit
Computer
Systems
Interconnection
Input
Output
Communication
lines
4 MAIN STRUCTURAL
COMPONENTS OF COMPUTER
1. Central Processing Unit (CPU) – controls
the operation of the computer and
performs its data processing functions.
2. Main Memory – stores data
3. I/O – move data between the computer
and its external environment.
4. System Interconnection – some mechanism
that provides for communication among
CPU, main memory, and I/O.
Structure - The CPU
CPU
Computer Arithmetic
Registers and
I/O Login Unit
System CPU
Bus
Internal CPU
Memory Interconnection
Control
Unit
4 MAIN STRUCTURAL
COMPONENTS OF CPU
1. Control Unit – controls the operation
of the CPU and hence the computer.
2. ALU – performs the computer’s data
processing function.
3. Registers – provides storage internal to
the CPU.
4. CPU Interconnection – some
mechanism that provides
communication among the control unit,
ALU, and registers.
Structure - The Control Unit
Control Unit
CPU
Sequencing
ALU Login
Control
Internal
Unit
Bus
Control Unit
Registers Registers and
Decoders
Control
Memory
3 MAIN STRUCTURAL COMPONENTS
OF CONTROL UNIT
SEQUENCING LOGIC – is used to
construct finite state machines, as well as
memory circuits and other devices.
CONTROL UNIT REGISTERS AND
DECODERS – these are the instruction
register and program counter and are
used together with the instruction
decoder in the execution cycle.
CONTROL MEMORY – can be a read-
only memory.
Computer Components:
Top Level View
COMPUTER COMPONENTS
PC – holds the address of the instruction
to be fetched next.
MAR – specifies the address in memory
for the next read or write.
MBR – contains the data to be written
into memory or receives the data read
from memory.
IR – a register in the processor where the
fetched instruction is loaded.
COMPUTER COMPONENTS
I/O AR – specifies a particular I/O device.
I/O BR – used for the exchange of data
between an I/O module and the CPU.
Instruction Cycle
Two steps:
◦ Fetch
◦ Execute
Fetch Cycle
Program Counter (PC) holds address of
next instruction to fetch
Processor fetches instruction from memory
location pointed to by PC
Increment PC
◦ Unless told otherwise
Instruction loaded into Instruction Register
(IR)
Processor interprets instruction and
performs required actions
Execute Cycle
Processor-memory
◦ data transfer between CPU and main memory
Processor-I/O
◦ Data transfer between CPU and I/O module
Data processing
◦ Some arithmetic or logical operation on data
Control
◦ Alteration of sequence of operations
◦ e.g. jump
Combination of above
Example of Program Execution
THANK YOU……
Q?