Professional Documents
Culture Documents
Lab Work 01
Lab Work 01
Lab Work 01
LAB WORK 1
FUNDAMENTAL LOGIC CIRCUITS
1. The purpose of the paper
The operation of the fundamental logical gates is studied experimentally: NOT , AND ,
NAND, OR, NOR, XOR, COINCIDENCE (NXOR) and their use in the implementation of some
elementary Boolean functions. The operation of simple combinational circuits is analyzed and
verified, establishing the connections between Boolean algebra and the fundamental logic gates.
We show the functionality of a TTL logic gate, which performs the NAND logic function.
2. Theoretical considerations
Boolean algebra is a symbolic tool for dealing with formal logical functions. It has
established itself as the most important mathematical means of analysis and synthesis of
switching circuits, because we can find the following analogies between formal logic and
switching circuits:
- the switching circuits are made by interconnecting some switches, and their state can only
be closed or open.
A Boolean function is a function of n variables y = f (x1, x2,…, xn) defined by the relation:
The function f will correspond to each element of the n-dimensional Cartesian product the
values 0 or 1.
Boolean functions can be used to describe the operation of devices built with two-state
circuit elements. The latter can be implemented through a closed or open switch, through a
blocked or conducting transistor, etc.
The way in which such a circuit element operates will be described by a Boolean variable x i
as shown in Figure 1.
Elementary Boolean functions are Boolean functions of one or two variables and describe the
operation of fundamental logic circuits. A logic gate is a circuit that performs an elementary
Boolean function.
1
Fundamental Logic Circuits
The situation in which the maximum voltage values correspond to logical "1", and the
minimum to logical "0", defines what is called positive logic.
The situation in which the maximum voltage values correspond to logical "0", and the
minimum to logical "1", defines the negative logic.
1 or H (high) 1 or L (low)
0 or L (low) 0 or H (high)
Positive logic Negative logic
Figure 3 Voltage for logical levels
OBSERVATION:
Changing the convention is equivalent to the negation of Boolean variables. Next we will
work in positive logic.
2
Fundamental Logic Circuits
Logic circuits can be classified according to the physical implementation technology (see the
appendix of the paper):
a) TTL (Transistor-Transistor Logic) logic circuits:
- standard TTL logic circuits;
- low-power TTL logic circuits;
- fast TTL logic circuits;
- Schottky TTL logic circuits.
b) logic circuits with MOS (Metal Oxide Semiconductor) transistors:
- MOS logic circuits;
- CMOS logic circuit (Complementary MOS).
3
Fundamental Logic Circuits
OBSERVATION: This gate can be implemented using an inverter and an AND gate as follows:
4
Fundamental Logic Circuits
2.3.4. OR gate
The output of the OR circuit with 2 inputs a and b is defined by the Boolean function:
f (a, b) = a + b. The function symbol is shown in Figure 8, and the truth table in Table 4.
OBSERVATION: This gate can be implemented using an inverter and an OR gate as follows:
5
Fundamental Logic Circuits
6
Fundamental Logic Circuits
and MOS transistors) and the polarizations necessary to be applied to them to obtain the desired
functions.
The main parameters are:
• the time of (delay of) propagation of the logical information from input to output (t pd)
• the average power consumed by the gate (Pd) and the quality factor (Pa), which is
defined as the product between Pd and tpd. The scheme of the TTL gate type NAND
is shown in Figure 13.
The operating principle of the TTL NAND gate is presented below. We assume that all
inputs are at a potential corresponding to the minimum value associated with logic level "1" at
input (2V); it follows that the emitter-base junction of transistor T1 is inversely polarized, so T1
works in the inverse active region. The circuit is designed so that when T1 conducts in reverse,
T2 is saturated and, due to the voltage drop on R 3, T3 opens and tends to saturate. The result is a
VOH voltage equal to VCEsat = 0.2V of the transistor T3 . Associating the logic level "1" at the
input of a voltage higher than 2 V and the logic level "0" at the output of a voltage lower than
0.4V results in the circuit ensuring the logic output "0" if all the inputs are logic "1".
If the input B is logic "0" (0V), then the emitter-base junction of the transistor T1 is open and
the potential of the point P, Up = 0.7V, is insufficient for the opening of the transistors T 2 and T3
(which remain blocked).
Then the potential of the M point is high and T 4 transmits. The value of the output voltage
VOH = VCC - VBEsat4 - R2 IB4 - VD3 = 3.6V results, which is associated with logic 1.
The transistors T3 and T4 therefore transmit in contretemps and the corresponding voltage
values obtained on the output are associated with the values of “0” logic, respectively “1” logic.
The characteristics of the TTL NAND gate are:
tpdHL = 8 ns for switching H → L
tpdLH = 12 ns for switching L → H
Pd = 10 mW
7
Fundamental Logic Circuits
We consider that we have inputs a, b and an available gate of type NAND with four inputs.
We must realize the function f = 𝑎 ̅̅̅̅̅̅̅̅
• 𝑏, which based on the theorems of Boolean algebra can
also be written as f = 𝑎 • 𝑏 • 1 • 1 or f = ̅̅̅̅̅̅̅̅̅̅̅̅̅̅̅̅̅̅̅
̅̅̅̅̅̅̅̅̅̅̅̅̅̅̅̅̅̅̅ 𝑎 • 𝑎 • 𝑏 • 𝑏 , where the connections result in
figure 14 :
Note: Unused inputs connect to logical "1". Left unconnected (in "empty" or "wind", in
"air"), they introduce parasitic capacities, which cause a delay and lead to a malfunction of the
circuit. In the case of laboratory work, on the teaching panel, these inputs can still be
disconnected, because in this case the performance parameters are not so important.
The function NOT can be obtained from a gate NAND with three inputs in several ways, as
we write the expression of the inverter as f = ̅̅̅̅̅̅̅̅̅̅̅̅̅
𝑎 • 𝑎 • 1 or f = ̅̅̅̅̅̅̅̅̅̅̅̅̅̅
𝑎 • 𝑎 • 𝑎.
The AND function of 2 variables can be realized starting from the expression:
𝑎 • 𝑏 = ̅̅̅̅̅̅̅̅
f = a • b = ̿̿̿̿̿̿̿̿ 𝑎̅ + 𝑏̅ (double negation, De Morgan's theorem), as follows (Figure 16):
8
Fundamental Logic Circuits
The EXCLUSIVE-OR function performs the mod 2 sum between two variables:
f = a⊕b = a • 𝑏̅ + 𝑎̅ • b. The transformation of the expression results in:
f = ̅̅̅̅̅̅̅̅̅̅̅̅̅̅̅̅̅̅̅̅
𝑎̅ • 𝑏̅ + 𝑎 • 𝑏 = ̅̅̅̅̅̅̅̅̅̅̅̅̅̅̅̅̅̅̅̅̅̅̅̅̅̅
(𝑎̅ + 𝑏) • (𝑎 + ̅𝑏 ), so we have two more possibilities to implement
this function:
9
Fundamental Logic Circuits
3.5. Design and implement (with integrated circuits) the following functions, using AND,
OR, NOT gates.
a) x • (y + z)
b) x • y + x • z
c) ̅̅̅̅̅̅̅̅̅̅̅̅̅̅̅̅̅
𝑥 • (𝑦 + 𝑧)
d) 𝑥̅ + 𝑦̅ • 𝑧̅
e) w • (x + y • z)
3.6. Draw and implement the following functions:
a) f = ̅̅̅̅̅̅̅̅̅̅̅̅̅̅̅̅̅̅
𝑥̅ + (̅̅̅̅̅̅̅̅̅
𝑦 + 𝑧)
̅̅̅̅̅̅̅̅̅̅̅̅̅̅̅̅̅̅̅̅̅̅̅̅̅̅̅
b) f = (𝑥̅ + 𝑦̅) + (𝑥̅ ̅̅̅̅̅̅̅̅
+ 𝑦̅)
10
Fundamental Logic Circuits
APPEDIX
1. TTL Family
There are several TTL subfamilies that perform the same functions, but differ in terms of
information propagation time and power consumed.
TTL integrated circuits are 14 to 62 pins.
Table 1 shows the TTL circuit family
The pins of the integrated circuit are numbered counterclockwise. For powering the
circuit, on most 14-pin TTL circuits, pin 7 is GND (ground = 0V dc), and pin 14 is Vcc
(+5Vdc).
11
Fundamental Logic Circuits
2. MOS Family
The main advantages over the TTL family are:
• immunity to noise (noise margin is 1.5V from 0.4V to TTL);
• low power consumption
The most common MOS family is CMOS.
Figure 20 shows the differences between the voltage values associated with the logic
levels in the TTL family and the CMOS family.
12