Professional Documents
Culture Documents
M. Sridhar
Associate Professor
Department of ECE
Logic Gates:
• The logic gate is the most basic building block of any digital system, including computers.
• There are three basic logic gates, namely the OR gate, the AND gate and the NOT gate. Other logic gates that
are derived from these basic gates are the NAND gate, the NOR gate, the EXCLUSIVEOR gate and the
EXCLUSIVE-NOR gate.
• The binary variables can have either of the two states, i.e. the logic ‘0’ state or the logic ‘1’ state. These logic
states in digital systems such as computers, for instance, are represented by two different voltage levels or two
levels represents a logic ‘0’, then the logic system is referred to as a positive logic system.
• If the more positive of the two voltage or current levels represents a logic ‘0’ and the less positive of the two
levels represents a logic ‘1’, then the logic system is referred to as a negative logic system.
• A logic gate used to perform the operation of logical addition is called an OR gate.
• The OR operation on two independent logic variables A and B is written as Y = A+B and reads
as Y equals A OR B.
AND gate:
• The AND operation on two independent logic variables A and B is written as Y = A.B and
reads as Y equals A AND B.
• A logic gate used to perform logical inversion is known as a NOT gate. If is the input to a
NOT circuit, then its output Y is given by Y = or and reads as Y equals NOT .
NAND gate:
• An AND gate followed by a NOT circuit makes it a NAND gate. The output of a NAND gate
is a logic ‘0’ when all its inputs are a logic ‘1’. For all other input combinations, the output is a
logic ‘1’.
NOR gate:
• An OR gate followed by a NOT circuit makes it a NOR gate. The output of a NOR gate is a
logic ‘1’ when all its inputs are logic ‘0’. For all other input combinations, the output is a logic
‘0’.
EXCLUSIVE-OR gate:
• The output of an EX-OR gate is a logic ‘1’ when the inputs are unlike and a logic ‘0’ when the
inputs are like.
• EXCLUSIVE-NOR (commonly written as EX-NOR) means NOT of EX-OR, i.e. the logic
gate that we get by complementing the output of an EX-OR gate.
• The output of a two-input EX-NOR gate is a logic ‘1’ when the inputs are like and a logic ‘0’
when they are unlike.
• NAND and NOR gates are known as Universal gates or Universal building blocks as they can
be used to implement any function.
• Boolean algebra is an algebraic structure defined on a set of elements B together with two binary operators
+ and · provided the following postulates are satisfied:
• For every element, there exists an element x’(complement of ) such that x+x’=1 and x.x’=0.
It states that every algebraic expression deducible from the postulates of Boolean algebra
remains valid if the operators and identity elements are interchanged. If the dual of an
algebraic expression is desired, OR and AND operators are interchanged and 1’s are replaced
by 0’s and 0’s by 1’s.
• a) x+x’=1; x.x’=0
• b) x+x=x; x.x=x
• c) x+1=1; x.0=0
• e) x+xy=x
AND gate:
OR gate:
EX-OR gate:
NAND gate:
NOR gate:
A Boolean expression or a function is an expression which consists of binary variables joined by the
Boolean connectives AND and OR along with NOT operation. Any Boolean expression can be
expressed in two forms:
– Canonical form
– Standard form
Canonical Form:
Sum of minterms: Any Boolean function can be expressed as a sum of minterms expression. A minterm
is a standard product which consists of all variables in either complemented or un-complemented
form for which the output is 1.
F A' B' C ABC' ABC
Product of maxterms: Any Boolean function can be expressed as a product of maxterms expression. A
maxterm is a standard sum which consists of all variables in either complemented or un-
F is0.( A B C )( A B'C ' )
complemented form for which the output
Logic Gates & Families Department of ECE
Standard Form:
• Sum of Products (SOP): The sum of products is a Boolean expression containing AND terms,
called Product terms, of one or more literals each; the sum denotes the ORing of these terms.
F A' B BC A' C
• Product of Sums (POS): It is a Boolean expression containing OR terms called Sum terms and
the product denotes the ANDing of these terms.
F ( A B )( B C ' )( A C ' )
Simplification using K-maps:
A Karnaugh map is a graphical representation of the logic system. It can be drawn directly from either
minterm (sum-of-products) or maxterm (product-of-sums) Boolean expressions. An n-variable
Karnaugh map has 2n squares, and each possible input is allotted a square. In the case of a minterm
Karnaugh map, ‘1’ is placed in all those squares for which the output is ‘1’, and ‘0’ is placed in all
those squares for which the output is ‘0’. 0s are omitted for simplicity. An ‘X’ is placed in squares
corresponding to ‘don’t care’ conditions.
a
b 0 1
0
ab
c 00 01 11 10
0 m0 m2 m6 m4
1 m1 m3 m7 m5
00 m0 m4 m12 m8
01 m1 m5 m13 m9
11 m3 m7 m15 m11
10 m2 m6 m14 m10
F a, b, c, d m 0, 2,3, 6,8,12,13,15
00
1 1 1
01
1
11
1 1
10
1 1
F abd abc acd abd acd
Logic Gates & Families Department of ECE
• Use a K-Map to simplify the following Boolean
expression
F a, b, c, d m 0, 2, 6,8,12,13,15
d 3,9,10
00
1 d 1 1
01
1 d
11
d 1
10
1 1
F ac ad abd
Logic Gates & Families Department of ECE
• Simplify the following function
F m(1,2,3,5,13) d (6,7,8,9,11,15)
F D A' C
F D A' C
NAND Implementation:
• By expressing the given function in SOP form, the logic circuit can be
implemented using two level NAND gates.
NAND Implementation:
• By replacing each gate in the circuit with the NAND equivalent, multi level
NAND circuit is achieved. When two single input NAND gates (inverters) are
in series, they can be removed.
• Propagation Delay: The propagation delay of a gate is the average transition delay time for
the signal to propagate from input to output when the binary signal changes in value. The
signals through a gate take a certain amount of time to propagate from the inputs to the
output. This interval of time is defined as the propagation delay of the gate and is
expressed in nanoseconds (ns).
• Noise Margin: Noise margin is the maximum noise voltage added to an input
signal of a digital circuit that does not cause an undesirable change in the
circuit output. It is expressed in volts and represents the maximum noise signal
that can be tolerated by the gate.
• When any one of the input is high, the corresponding transistor is in saturation
and hence the output is low regardless of the states of the other transistors. If all
the inputs are low, the transistors are in cutoff and hence the output rises to V cc .
• When any one of the input is LOW, the diode corresponding to that input is in
conducting state and hence, the transistor is in OFF state and the output is
HIGH. With all the inputs HIGH, the transistor is in saturation and hence the
output is LOW.
Low-power Schottky
20 0.4 2 10
TTL
ECL 25 0.2 25 2
CMOS 50 3 0.1 25