Chapter 1
Chapter 1
Numerical examples for addition follow. Note This procedure occurs because a subtraction
that negative numbers must be initially in 2's operation can be changed to an addition operation if
complement and that the sum obtained after the the sign of the subtrahend is changed. This is
addition if negative is in 2's-complement form.
Register Transfer
A digital computer is characterized by its
registers. The memory unit (Fig. 1-1) is merely a
collection of thousands of registers for storing digital
information. The processor unit is composed of
various registers that store operands upon which
operations are performed. The control unit uses
registers to keep track of various computer sequences,
diagram with only three of its registers. The whose behavior is most conveniently expressed by
part of the processor unit shown consists of three means of binary variables and logical operations. The
registers, Rl, R2, and R3, together with digital logic binary logic to be introduced in this section is
circuits that manipulate the bits of Rl and R2 and equivalent to an algebra called Boolean algebra. The
transfer into R3 a binary number equal to their formal presentation of a two-valued Boolean algebra is
arithmetic sum. Memory registers store information and covered in more detail in Chapter 2. The purpose of
are incapable of processing the two operands. this section is to introduce Boolean algebra in a
However, the information stored in memory can be heuristic manner and relate it to digital logic circuits
transferred to processor registers. Results obtained in and binary signals.
processor registers can be transferred back into a
memory register for storage until needed again. The Definition of Binary Logic
diagram shows the contents of two operands
Binary logic consists of binary variables and
transferred from two memory registers into Rl and R2.
logical operations. The variables are designated by
The digital logic circuits produce the sum, which is
letters of the alphabet such as A, B, C, x, y, Z, etc.,
transferred to register R3. The contents of R3 can now
with each variable having two and only two distinct
be transferred back to one of the memory registers.
possible values: I and O. There are three basic logical
The last two examples demonstrated the operations: AND, OR, and NOT.
information-flow capabilities of a digital system in a
1. AND: This operation is represented by a
very simple manner. The registers of the system are
the basic elements for storing and holding the binary dot or by the absence of an operator. For
information. The digital logic circuits process the example, x·y = z or xy = Z is read "x AND y
information. Digital logic circuits and their manipulative is equal to z." The logical operation AND is
capabilities are introduced in the next section. interpreted to mean that z = I if and only if
Registers and memory are presented in Chapter 7. x = I and y = I; otherwise, z = O.
(Remember that x, y, and z are binary
variables and can be equal either to I or 0,
and nothing else.)