Professional Documents
Culture Documents
Chapter One1
Chapter One1
Prior to digital technology, electronic transmission was limited to analog technology, which
conveys data as electronic signals of varying frequency or amplitude that are added to carrier
waves of a given frequency. Broadcast and phone transmission has conventionally used analog
technology.
Digital technology is primarily used with new physical communications media, such
as satellite and fiber optic transmission. A modem is used to convert the digital information in
your computer to analog signals for your phone line and to convert analog phone signals to digital
information for your computer.
Digital systems are designed to store, process, and communicate information in digital form. They
are found in a wide range of applications, including process control, communication systems,
digital instruments, and consumer products. The digital computer, more commonly called
the computer, is an example of a typical digital system.
A computer manipulates information in digital, or more precisely, binary form. A binary number
has only two discrete values — zero or one. Each of these discrete values is represented by the
OFF and ON status of an electronic switch called a transistor. All computers, therefore, only
understand binary numbers. Any decimal number (base 10, with ten digits from 0 to 9) can be
represented by a binary number (base 2, with digits 0 and 1).
The basic blocks of a computer are the central processing unit (CPU), the memory, and the
input/output (I/O). The CPU of the computer is basically the same as the brain of a human.
Computer memory is conceptually similar to human memory. A question asked to a human is
analogous to entering a program into the computer using an input device such as the keyboard, and
answering the question by the human is similar in concept to outputting the result required by the
program to a computer output device such as the printer.
logic gate (AND, OR, XOR, NOT, NAND, NOR and XNOR)
A logic gate is an elementary building block of a digital circuit. Most logic gates have two inputs
and one output. At any given moment, every terminal is in one of the two binary conditions low (0)
or high (1), represented by different voltage levels. The logic state of a terminal can, and generally
does, change often, as the circuit processes data. In most logic gates, the low state is approximately
zero volts (0 V), while the high state is approximately five volts positive (+5 V).
There are seven basic logic gates: AND, OR, XOR, NOT, NAND, NOR, and XNOR.
The AND gate is so named because, if 0 is called "false" and 1 is called "true," the gate acts in the
same way as the logical "and" operator. The following illustration and table show the circuit
symbol and logic combinations for an AND gate. (In the symbol, the input terminals are at left and
the output terminal is at right.) The output is "true" when both inputs are "true." Otherwise, the
output is "false."
AND gate
Input 1 Input 2 Output
0 0 0
0 1 0
1 0 0
1 1 1
The OR gate gets its name from the fact that it behaves after the fashion of the logical inclusive
"or." The output is "true" if either or both of the inputs are "true." If both inputs are "false," then
the output is "false."
OR gate
Input 1 Input 2 Output
0 0 0
0 1 1
1 0 1
1 1 1
The XOR ( exclusive-OR ) gate acts in the same way as the logical "either/or." The output is "true"
if either, but not both, of the inputs are "true." The output is "false" if both inputs are "false" or if
both inputs are "true." Another way of looking at this circuit is to observe that the output is 1 if the
inputs are different, but 0 if the inputs are the same.
XOR gate
Input 1 Input 2 Output
0 0 0
0 1 1
1 0 1
1 1 0
A logical inverter, sometimes called a NOT gate to differentiate it from other types of electronic
inverter devices, has only one input. It reverses the logic state.
1 0
0 1
The NAND gate operates as an AND gate followed by a NOT gate. It acts in the manner of the
logical operation "and" followed by negation. The output is "false" if both inputs are "true."
Otherwise, the output is "true."
NAND gate
Input 1 Input 2 Output
0 0 1
0 1 1
1 0 1
1 1 0
The NOR gate is a combination OR gate followed by an inverter. Its output is "true" if both inputs
are "false." Otherwise, the output is "false."
NOR gate
Input 1 Input 2 Output
0 0 1
0 1 0
1 0 0
1 1 0
The XNOR (exclusive-NOR) gate is a combination XOR gate followed by an inverter. Its output
is "true" if the inputs are the same, and"false" if the inputs are different.
XNOR gate
Input 1 Input 2 Output
0 0 1
0 1 0
1 0 0
1 1 1
Using combinations of logic gates, complex operations can be performed. In theory, there is no
limit to the number of gates that can be arrayed together in a single device. But in practice, there
is a limit to the number of gates that can be packed into a given physical space. Arrays of logic
gates are found in digital integrated circuits (ICs). As IC technology advances, the required
physical volume for each individual logic gate decreases and digital devices of the same or smaller
size become capable of performing ever-more-complicated operations at ever-increasing speeds.
There are several different kinds of flip-flop circuits, with designators such as T (toggle), S-R
(set/reset) J-K (possibly named for Jack Kilby) and D (delay). A flip-flop typically includes zero,
one, or two input signals as well as a clock signal and an output signal. Some flip-flops also include
a clear input signal to reset the current output.
The first electronic flip-flop was invented in 1919 by W. H. Eccles and F. W. Jordan. It used
vacuum tubes and was initially called the Eccles-Jordan trigger circuit.
Programmable Logic Array (PLA)
A programmable logic array (PLA) is a type of logic device that can be programmed to implement
various kinds of combinational logic circuits. The device has a number of AND and OR gates
which are linked together to give output or further combined with more gates or logic circuits.
A programmable logic array is designed such that a number of different logical functions can be
combined as a sum-of-product or product-of-sum form. A PLA having N input buffers and M
output buffers consists of 2NAND gates and M OR gates, each with programmable inputs from all
of the AND gates. PLAs have widely been acknowledged as compact and space-efficient solutions
for many complicated circuits, especially in feedback and control systems where a number of
factor variables must be involved for efficient functioning of the system.
A programmable logic array should not be confused with Programmable Array Logic (PAL), in
which both AND and OR gates are programmable.
Fan-out is a term that defines the maximum number of digital inputs that the output of a
single logic gate can feed. Most transistor-transistor logic ( TTL ) gates can feed up to 10 other
digital gates or devices. Thus, a typical TTL gate has a fan-out of 10.
In some digital systems, it is necessary for a single TTL logic gate to drive more than 10 other
gates or devices. When this is the case, a device called a buffer can be used between the TTL gate
and the multiple devices it must drive. A buffer of this type has a fan-out of 25 to 30. A logical
inverter (also called a NOT gate) can serve this function in most digital circuits.
Fan-in is a term that defines the maximum number of digital inputs that a single logic gate can
accept. Most transistor-transistor logic ( TTL ) gates have one or two inputs, although some have
more than two. A typical logic gate has a fan-in of 1 or 2.
In some digital systems, it is necessary for a single TTL logic gate to drive several devices with
fan-in numbers greater than 1. If the total number of inputs a transistor-transistor logic (TTL)
device must drive is greater than 10, a device called a buffer can be used between the TTL gate
output and the inputs of the devices it must drive. A logical inverter (also called a NOT gate) can
serve this function in most digital circuits.
Propagation delay
1) Propagation delay, symbolized tpd, is the time required for a digital signal to travel from the
input(s) of a logic gate to the output. It is measured in microseconds (µs), nanoseconds (ns),
or picoseconds (ps), where 1 µs = 10-6 s, 1 ns = 10-9 s, and 1 ps = 10-12 s.
The propagation delay for an integrated circuit (IC) logic gate may differ for each of the inputs. If
all other factors are held constant, the average propagation delay in a logic gate IC increases as the
complexity of the internal circuitry increases. Some IC technologies have inherently
longer tpd values than others, and are considered "slower." Propagation delay is important because
it has a direct effect on the speed at which a digital device, such as a computer, can operate. This
is true of memory chips as well as microprocessors.
2) In a communications system, propagation delay refers to the time lag between the departure of
a signal from the source and the arrival of the signal at the destination. This can range from a few
nanoseconds or microseconds in local area networks (LANs) up to about 0.25 s in geostationary-
satellite communications systems. Additional propagation delays can occur as a result of the time
required for packets to make their way through land-based cables and nodes of the Internet.
Gate delays
As an example of the level of sophistication of Logisim's algorithm, consider the following circuit.
This ``obviously'' always outputs 0. But NOT gates don't react instantaneously to their inputs in
reality, and neither do they in Logisim. As a result, when this circuit's input changes from 0 to 1,
the AND gate will briefly see two 1 inputs, and it will emit a 1 briefly. You won't see it on the
screen. But the effect is observable when we use the AND gate's output as an input into the clock
of a D flip-flop.
Poking the 0 input to become 1 leads to an instantaneous 1 going into the D flip-flop, and thus the
flip-flop's value will toggle every time the circuit input goes from 0 to 1.
Every component has a delay associated with it. More sophisticated components built into Logisim
tend to have larger delays, but these delays are somewhat arbitrary and may not reflect reality.
Occasionally, and with uneven frequency, Logisim will add a delay to a component's propagation.
This is intended to simulate the unevenness of real circuits. In particular, an R-S latch using two
NOR gates will oscillate without this randomness, as both gates will process their inputs in
lockstep. This randomness can be disabled via the Project Options window's Simulation tab.
From a technical point of view, it is relatively easy to deal with this level of sophistication in a
single circuit. Dealing with gate delays well across sub circuits, though, is a bit more complex;
Logisim does attempt to address this correctly.