IT2623
IT2623
TRUTH TABLE
● Table of combinations
● No. of Combinations = 2��
○ where n = no. of inputs Logical Not - AND / Inverted AND
Operation
Symbol
Symbol
0 0
0 1 0
OUTPUT 0 001011101
100111
1101
Symbol
Symbol
Not -
OR / Inverted OR
Logical
Operation
Logical
Expression
Truth Table
Z = (A + B)’
Truth Table
OUTPUT
A B OUTPUT
A B
001010100110 BUFFER
Symbol
XOR
001
010
100 Logical
Operation
111
Logical A
Expression
Symbol
Logical
Operation
Logical
Expression
Truth Table
Z=A⊕B
Z = AB’ + A’B
Truth Table
A B OUTPUT 0 0 0 0 1 1
INPUT OUTPUT 0 0 1 1
1 0
1 1
2
IT2624 Lecture Logical
DATA COMMUNICATIONS & NETWORKING II Expression
PRELIMS | 2ND SEM 2024
Complementation / Inversion
NOT / INVERTER
Symbol
A’
Truth Table
INPUT OUTPUT
Logical
Operation 01
10
NAND Gate
3-INPUT GATES ○ All NAND input pins connect to the
input signal A gives an output A’.
● NAND and NOR gates are preferred in ○ One NAND input pin is connected to the input
practice because they are cost-effective signal A while all other
and simpler to manufacture. These gates input pins are connected to logic 1.
serve as the fundamental building blocks The output will be A’.
for all digital logic families in integrated
circuits.
10
101100101110100101111110
010
UNIVERSAL GATES 3
● A universal gate is a gate which can
implement any Boolean function without
IT2624 Lecture
need to use any other gate type.
DATA COMMUNICATIONS & NETWORKING
● The NAND and NOR gates are universal II PRELIMS | 2ND SEM 2024
gates.
(The AND is replaced by a NAND NOR Gate is a Universal Gate
gate with its output complemented ● Implementing an Inverter Using only
by a NAND gate inverter). NOR Gate
○ All NOR input pins connect to the
input signal A gives an output A’.
EQUIVALENT GATES 4
● The shown figures summarizes important
cases of gate equivalence. Note that
IT2624 Lecture
bubbles indicate a complement operation
DATA COMMUNICATIONS & NETWORKING
(inverter). II PRELIMS | 2ND SEM 2024
6
IT2624 Lecture SOP
DATA COMMUNICATIONS & NETWORKING
II PRELIMS | 2ND SEM 2024
expression. ● We perform Sum of Products also known
as Sum of Minterm.
○ The minterm for each combination
of the variables that produces a 1
GROUPING RULES OF 1’S AND 0’S in the function then taking the OR
of all those terms.
● Adjacency: Cells must be adjacent
horizontally or vertically (including
wrap-around) to be considered for
grouping. Diagonal adjacency is not
allowed.
2 - Variable 3 - Variable
Map Map
4 - Variable Map
IMPORTANT INFO
7
IT2624 Lecture
DATA COMMUNICATIONS & NETWORKING
II PRELIMS | 2ND SEM 2024
Example F = ABC + variables.
DEG Minte
SOP
Where F is X Y Z Produc
Abbreviation Sum of the output
Products and A, B, C, 0 0 0 m0
Meaning
D, E, = X’ · Y
Product
and G are = min(X
terms (AND
the input
operation) is
variables. 0 0 1 m1
added (OR
= X’ · Y
operation).
= min(
POS 0 1 0 m2
= X’ · Y
Expression We have to Product of = min(
Included consider the Sum
rows which 0 1 1 m3
The inputs are given to the OR gate = X’ · Y
have the
and the output of the OR gate are = min(
output ‘1’.
Representatio summed
n
Represent up by the AND gate. 1 0 0 m4
ed as ‘m’. =X·Y
We have to consider the rows which = min(X
Variables have the
Written output ‘0’. 1 0 1 m5
If the input =X·Y
is ‘0’, it has Represented as ‘M’. = min(
to be
inverted. If the input is ‘1’, it has to be 1 1 0 m6
inverted. =X·Y
Implementati All the AND = min(
on terms or All the OR
connected terms or 1 1 1 m7
to the OR connected to the AND gate. The =X·Y
gate. The output of the AND gate gives the = min(
output of output
the OR function.
gate
F=
gives the COMBINAT
(A+B+C)(D+E+ G)
output
function. Where F is the output and A, B, C,
D, E,
● Consists of logic gates whose
and G are the input
outputs at any time are determined information-processing operation
directly from the present which is logically specified by a set
combination of inputs without of Boolean functions 8
regard to the previous inputs
PRACTICAL
● Performs a specific
IT2624 Lecture
DATA COMMUNICATIONS & NETWORKING II SUBTRACTORS
PRELIMS | 2ND SEM 2024
Half ● Subtracts two bits (X
Subtractor and Y) and outputs two
bits:
difference bit (D) and next
1. Minimum number of gates borrow bit (Bn)
2. Minimum number of inputs to a gate 3.
Minimum propagation time of the signal
through the circuit
4. Minimum number of interconnections 5.
Limitations of the driving capabilities of
each gate
Full ● Subtracts three bits: 2
Subtractor input bits (X and Y) and
previous borrow bit (Bp),
ADDERS & SUBTRACTORS
and outputs two bits:
difference bit (D) and next
● ADDERS
borrow bit (Bn)
○ A combinational logic circuit that ● Can be implemented as 2
performs addition half-subtractor and an
OR
● SUBTRACTORS gate
○ A combinational logic circuit that
performs subtraction
ADDERS
HOW
0+0=0 9
0+1=1
IT2624 Lecture
DATA COMMUNICATIONS & NETWORKING
II PRELIMS | 2ND SEM 2024
OUT) 0
0 0
0
0 1 0
1 0 1
1 1
S (SUM):
0 0 0 0 0
0 0 1 1 0
10
● Implementing FULL ADDER
IT2624 Lecture
DATA COMMUNICATIONS & NETWORKING
II PRELIMS | 2ND SEM 2024
1 1 1
0 1
0 1
10011001011
1 0
1
1 0
1 1
S (SUM):
● Implementing HALF SUBTRACTOR Truth
Table:
X Y D Bn
(NEXT
BORRO
W BIT)
0 0 0 0
Cout (CARRY OUT): 0 1 1 1
1 0 1 0
1 1 0 0
11
This will generate the logic circuit below:
IT2624 Lecture
DATA COMMUNICATIONS & NETWORKING II
PRELIMS | 2ND SEM 2024
D (DIFFERENCE):
0 0 0 0 0
0 0 1 1 1
0 1 0 1 1
0 1 1 0 1
10010
10100
11000
11111
D (DIFFERENCE):
Logic Circuit:
12
IT2624 Lecture
DATA COMMUNICATIONS & NETWORKING II
PRELIMS | 2ND SEM 2024
ENCODERS & DECODERS
Logic Circuit:
13
IT2624 Lecture ● The 4x2 Encoder has 4 inputs (Y3, Y2, Y1,
Y0), and 2 outputs (A1 and A0). Only 1 of
DATA COMMUNICATIONS & NETWORKING II the 4 inputs can be '1' at a time to produce
PRELIMS | 2ND SEM 2024 the corresponding binary code at the
output.
● Block Diagram:
4x2 ENCODER
OCTAL TO BINARY ENCODER (8X3
ENCODER)
● The 8x3 Encoder has 8 inputs (Y7 to Y0)
and 3 outputs (A2, A1, A0). Each input
● Truth Table: represents an octal digit, and the outputs
INPUTS produce the binary code for that digit.
● Block Diagram:
Y3 Y2 Y1 Y0 A1
0 0 0 1 0
0 0 1 0 0
0 1 0 0 1
1 0 0 0 1 ● Truth Table:
INPUTS OUTPUT
OUTPUT Y7
Y2
A0
0 0 0 0 0 0 0 0 1 0 0 0
1 0 0 0 0 0 0 1 0 0 0 1
0 0 0 0 0 0 1 0 0 0 1 0
1 0 0 0 0 1 0 0 0 0 1 1
0 0 1 0 0 0 0 0 1 0 1
A1 = Y3 + Y2
A0 = Y3 + Y1
A2 = Y7 + Y6 + Y5 + Y4
A1 = Y7 + Y6 + Y3 + Y2
A0 = Y7 + Y5 + Y3 + Y1
INPUTS OUTPUT
Y
Y
0 0 0 0 0 0 0 0 0 1 0 0 0 0
0 0 0 0 0 0 0 0 1 0 0 0 0 1
0 0 0 0 0 0 0 1 0 0 0 0 1 0
14
0 0 0 0 0 0 1 0 0 0 0 0 1 1
IT2624 Lecture
DATA COMMUNICATIONS & NETWORKING II 0 0 0 0 0 1 0 0 0 0 0 1 0 0
PRELIMS | 2ND SEM 2024
0000100000010100010000000
1100010000000011101000000
DECIMAL TO BCD ENCODER
● The decimal-to-binary encoder typically has 00100010000000001001
10 input lines and 4 output lines. Each input
line represents a decimal digit, and the 4
outputs represent the BCD code. This
encoder takes the decoded decimal data as
input and converts it to the BCD output,
which can be found on the output lines.
● Block Diagram:
● Truth Table:
● Decoder
15
IT2624 Lecture
DATA COMMUNICATIONS & NETWORKING II PRELIMS | 2ND SEM 2024
○ It is a minterm generator
○ Decoders are the combinational
circuits that transform binary data
��
into 2 output lines.
○ A decoder receives a binary code
on its input lines and activates only
one of its output lines based on the
specific code.
2x4 DECODER
● The 2-to-4 line binary decoder consists of an array of four AND gates. The 2 binary inputs
labeled A and B are decoded into one of 4 outputs, hence the description of a 2-to-4 binary
decoder. Each output represents one of the minterms of the 2 input variables, (each output =
a minterm). ● Block Diagram:
● Truth Table:
INPUTS OUTPUTS
A B Q0 Q1 Q2 Q3
001000010100
1 0 0 0 1 0
1 1 0 0 0 1
16
A B C D D D D D D5 D6
0 1 2 3 4
0 0 0 1 0 0 0 0 00
0 0 1 0 1 0 0 0 00
0 1 0 0 0 1 0 0 00
0 1 1 0 0 0 1 0 00
1 0 0 0 0 0 0 1 00
1 0 1 0 0 0 0 0 10
1 1 0 0 0 0 0 0 01
D0 = A’B’C’
D1= A’B’C
D2 = A’BC’
D3 = A’BC
D4 = AB’C’
D5= AB’C
D6 = ABC’
D7 = ABC
0 0 0 0 1 1 1 1 1 1 0 1
0 0 0 1 0 1 1 0 0 0 0 0
0 0 1 0 1 1 0 1 1 0 1 2
0 0 1 1 1 1 1 1 0 0 1 3
0 1 0 1 1 0 1 1 0 1 1
0 1 1 0 1 0 1 1 1 1 1
0 1 1 1 1 1 1 0 0 0 0
1 0 0 0 1 1 1 1 1 1 1
1 0 0 1 1 1 1 1 0 1 1
9
S
ENCODERS DECODERS
Combinational Combinational
circuits that circuits that convert
transform binary binary ��
data into n output data into 2 output
lines. lines.
a = B’D’ + C + BD + A
b = B’ + C’D’ + CD
c = C’ + D + B microprocessors, and more.
d = B’D’ + B’C + BC’D + CD’ + A
e = B’D’ + CD’ The decoder is at the receiving
f = C’D’ + B’C + B’D + A In terms of side.
g = B’C + BC’ + A + BD’ communication mode, the encoder
is at the transmitting end.
MULTIPLEXER
18
IT2624 Lecture
DATA COMMUNICATIONS & NETWORKING II PRELIMS | 2ND SEM 2024
● The selection of a particular input line is controlled by a set of select lines, normally there
are 2^n input lines and n select lines whose bit combinations determine which input is
selected
● Also known as data selector, universal logic module, and Boolean generator
● 2-TO-1 LINE MULTIPLEXER
Function Table:
Logic Circuit:
Function Table:
Logic Circuit:
19
IT2624 Lecture
DATA COMMUNICATIONS & NETWORKING II
PRELIMS | 2ND SEM 2024
MULTIPLEXER
Function Table:
BOOLEAN FUNCTION
IMPLEMENTATION USING
MULTIPLEXER
EXAMPLE 1
IMPLEMENTATION TABLE:
20
IT2624 Lecture
DATA COMMUNICATIONS & NETWORKING II PRELIMS | 2ND SEM 2024
DEMULTIPLEXER
● A circuit that receives information on a single line and transmits this information to one of
2^n possible output lines
● 1-TO-4 DEMULTIPLEXER
● Function Table:
INPUTS OUTPUT
S1 S0 Y3 Y2 Y1 Y0
0 0 0 0 0 A
0 1 0 0 A 0
1 0 0 A 0 0
1 1 A 0 0 0
● Logic Circuit:
● Programmable logic devices or PLDs are used in many applications to replace SSI and
MSI circuits; they save space and reduce the actual number and cost of devices in a given
design
● Consist of a large array of AND and OR gates which can be programmed to achieve
specified logic functions
● Classified according to their architecture 21
PROGRAMMABLE ARRAYS
BOOLEAN FUNCTION
IMPLEMENTATION USING PLA
EXAMPLE
Given:
F1 (A, B, C) = Σ (2, 4, 6, 7),
F2 (A, B, C) = Σ (0, 3, 5, 7)
Logic Diagram:
22
IT2624 Lecture
DATA COMMUNICATIONS & NETWORKING II
PRELIMS | 2ND SEM 2024
Program Table:
F2:
Getting the unique term:
1. Figure out all possible combinations: F1 &
F2, F1 & F2’, F1’ & F2, F1’ & F2’ Logic Diagram:
2. Count the number of terms each: 3 terms
each, thus 3 + 3
3. Compare the results of F1, F1’, F2, F2’ and
seeing if there are similar terms
Product Input Outp
Term ABC ut
F1
F2
1 BC’ -10 11
2 AC’ 1-0 11
3 AB 11- 1-
4 A’B’C 001 -1
23
TC = T/C
IT2624 Lecture
DATA COMMUNICATIONS & NETWORKING II
PRELIMS | 2ND SEM 2024
24