18 Computer Architecture and Organization
is, how so many devices function properly and concurrently? For that, we have to investigate the basic
operational concepts of a computer.
2.3 BASIC OPERATIONAL CONCEPTS
What is the duty of any computer when it is operational? As a matter of fact, there are two duties, as follows:
R Execute the software by fetching instructions from memory.
R Look for any external signal and react accordingly.
Both these duties are entrusted upon and carried out by the microprocessor (or processor), which is
the central controller of the whole system. The second part deals with eventual external interrupts or
other input signals, e.g., from keyboard or mouse, which will be discussed later. However, the major
duty of the processor is to run (or execute) the software, and this program execution is done continu-
ously until the computer is switched off. The question is how this execution is done? Several steps are
to be combined together to respond to this question. The following sections describe these steps.
2.3.1 Processor Clock
The heart of any processor is its clock, which starts almost the moment a computer is switched on (powered).
This clock is a simple digital signal producing on and off states alternately, at equal time intervals, as shown
in Figure 2.4 . In this diagram, the X-axis indicates time and the Y-axis represent DC voltage. This oscillating
phenomenon generates two different edges of the clock signal, rising edge (positive edge) and falling edge
(negative edge). In Chapter 3, it would be explained how these edges or transitions may be used to increment
or decrement any binary counter. Presently, let us assume that the clock signal is capable of running this phe-
nomenon. Which counter is affected by this process? The answer is–the Program Counter.
Figure 2.4 Processor clock
2.3.2 Program Counter
Inside every processor, there is a binary counter, known as Program Counter (popularly known as PC).
The width (number of bits accommodated) of this counter varies from processor to processor. However,
its basic operation is identical in all cases. With every falling edge (or rising edge, depending upon the
processor) of the clock signal, this counter is incremented by one.
Believe it or not, this simple looking clock signal of Figure 2.4 is the basic driving force for all types
of computers available on the earth. Stop this signal and not a single computer would function.
F
O
O
D
F
O
R
T
H
O
U
G
H
T
M02_GHOS1557_01_SE_C02.indd 18M02_GHOS1557_01_SE_C02.indd 18 4/29/11 5:00 PM4/29/11 5:00 PM