Computer Components Functions
Computer Components Functions
Components
and Functions
At a top level, a computer consists of :
➢ CPU (central processing unit),
➢ memory,
➢ I/O
The components are interconnected in order to execute
programs
(1) the external behavior of each component that is, the
data and control signals that it exchanges with other
components; and
(2) the interconnection structure and the controls required
to manage the use of the interconnection structure.
The major of computer components
➢ processor,
➢ main memory,
➢ I/O
(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
Figure 3.3 Basic Instruction Cycle
FETCH CYCLE
The program counter (PC) holds the address of the instruction to be fetched next
The processor increments the PC after each instruction fetch so that it will fetch
the next instruction in sequence
The processor interprets the instruction and performs the required action
ACTION CATEGORIES
Data transferred to or
Data transferred from
from peripheral device
processor to memory
by transferring
or from memory to
between the processor
processor Processor Processor and an I/O module
memory I/O
Data
An instruction Control The processor may
processing perform some
may specify that the
sequence of execution arithmetic or logic
be altered operation on data
Figure 3.5 Illustrates a partial program execution, showing the relevant portions of memory and
processor registers.
Execution resumes, when the
interrupt processing is
completed.
Note that this figure shows the case >> Interrupts are NOT used.
Processor must wait while an I/O operation is performed.
The above figure shoes a revised instruction cycle state diagram that includes interrupt cycle processing.
Beginnin
g
I/O FUNCTION
I/O module can exchange data directly with the processor
In some cases it is desirable to allow I/O exchanges to occur directly with memory