Unit1 P1JSPSingh
Unit1 P1JSPSingh
1 1 1 1 1 0
A B Y=(A+B)’
A B Y=A+B 0 0 1
0 0 0 0 1 0
0 1 1 1 0 0
1 0 1 1 1 0
1 1 1
A B Y=AB’+A’
B
A Y=A’ 0 0 0
0 1 0 1 1
1 0 1
1 0
1 1 0
A B Y=A’B’+A
A Y=A B
0 0 0 0 1
1 1 0 1 0
1 0 0
1 1 1
Basic Identities of Boolean Algebra
x+0=x xy=yx
x.0=0 x + ( y + z ) = ( x + y) + z
x+1=1 x(yz)=(xy)z
x.1=x x(y+z)=xy+xz
x+x=x x + y x = ( x + y ) (x + z )
x.x =x ( x + y )’ = x’ y’
x + x’ = 1
( x y )' = x’ + y’
x . x' = 0
( x’ )’ = x
Draw Logic Diagram for the Expression
along with the Truth Table
AB + A’C ABC + ABC’ + A’C
De-Morgan Theorem
Design NOT, OR and AND using NAND Gate Design NOT, OR and AND using NOR Gate
Karnaugh Map (K-Map)
Pair of 8, 4 and 2
Simplify Boolean Function
F = BC +AC’
F = C’ + AB’
Simplify Boolean Function
Sum of Product (SOP)
Cout=AB+BC+AC
Full Adder using Half Adder
Full Adder
Sum= A⊕B⊕C
Carry=AB+(A⊕B)C
Half Adder
Sum= A⊕B
Carry=AB
The simplified expression of full adder carry
1. C = xy + yz + xz
2. C = xy
3. C = yz
4. C=x+y+z
The simplified expression of full adder carry
1. C = xy + yz + xz
2. C = xy
3. C = yz
4. C=x+y+z
Half Subtractor
Combinational circuit perform binary Subtraction
Accepts 2 input and Two output Difference and Borrow
D(A, B) = ∑m (1, 2)
Br(A, B) = ∑m (1)
Full Subtractor
Performs subtraction of 3 bits
This circuit has three inputs and two outputs.
The three inputs A, B and C, denote the minuend, subtrahend, and previous borrow, respectively.
The two outputs, D and Bout
`
The difference bit output of a half subtractor is the same as
A B C Y
0 0 0 0
0 0 1 0
0 1 0 0
0 1 1 1
1 0 0 0
1 0 1 1
1 1 0 1
1 1 1 1
Design a 3 input digital circuit produces high output for ODD decimal equivalent
A B C Y
0 0 0 0
0 0 1 1
0 1 0 0
0 1 1 1
1 0 0 0
1 0 1 1
1 1 0 0
1 1 1 1
Multiplexer
A combinational circuit has maximum of 2n data inputs, ‘n’ selection lines and single output line.
One of these data inputs will be connected to the output based on the values of selection lines
It is a data selector device
Size of multiplexer is :1
I0 0
Y =S’I0 + SI1
2:1 Multiplexer
I1 1
S
4:1 Multiplexer
S1 S0 Y
0 0 I0
0 1 I1
1 0 I2
1 1 I3
In a multiplexer, the selection of a particular input line is
controlled by ___________
1. Data controller
2. Selected lines
3. Logic gates
4. Both data controller and selected lines
In a multiplexer, the selection of a particular input line is
controlled by ___________
1. Data controller
2. Selected lines
3. Logic gates
4. Both data controller and selected lines
How many select lines would be required for an 8-line-to-1-line
multiplexer?
1. 2
2. 3
3. 4
4. 8
How many select lines would be required for an 8-line-to-1-line
multiplexer?
1. 2
2. 3
3. 4
4. 8
8:1 Multiplexer
S2 S1 S0 Out
0 0 0 I0
0 0 1 I1
0 1 0 I2
0 1 1 I3
1 0 0 I4
1 0 1 I5
1 1 0 I6
1 1 1 I7
S1 S0 Y3 Y2 Y1 Y0
0 0 0 0 0 I
0 1 0 0 I 0
1 0 0 I 0 0
1 1 I 0 0 0
Most demultiplexers facilitate which type of conversion?
1. Decimal-to-hexadecimal
2. Single input, multiple outputs
3. AC to DC
4. Odd parity to even parity
Most demultiplexers facilitate which type of conversion?
1. Decimal-to-hexadecimal
2. Single input, multiple outputs
3. AC to DC
4. Odd parity to even parity
Why is a demultiplexer called a data distributor?
A1 A0 Y3 Y2 Y1 Y0
0 0 0 0 0 1
0 1 0 0 1 0
1 0 0 1 0 0
1 1 1 0 0 0
Full Adder using 3:8 Full Subtractor using 3:8
Decoder Decoder
S = A’B’C + A’BC’ + AB’C’ + ABC = Σ(1,2,4,7) DIFFERENCE = A’B’C + A’BC’ + AB’C’ + ABC = Σ(1,2,4,7)
CY = A’BC +AB’C +ABC’+ABC= Σ (3, 5, 6, 7) BORROW = A’B’C +A’BC’ +A’BC+ABC= Σ (1, 2, 3, 7)
Y
3:8 decoder using 2:4 decoder
Decoder with Enable
One of outputs will be ‘1’ when enable, E is ‘1’
A2 A1 A0 HIGH
OUTPUT
0 0 0 Y0
0 0 1 Y1
0 1 0 Y2
0 1 1 Y3
1 0 0 Y4
1 0 1 Y5
1 1 0 Y6
4:16 decoder A3 A2 A1 A0 HIGH
OUTPUT
0 0 0 0 Y0
Y0 0 0 0 1 Y1
0 0 1 0 Y2
A3 0 0 1 1 Y3
0 1 0 0 Y4
A2 0 1 0 1 Y5
0 1 1 0 Y6
A1
4:16 Decoder 0 1 1 1 Y7
1 0 0 0 Y8
A0 1 0 0 1 Y9
1 0 1 0 Y10
1 0 1 1 Y11
1 1 0 0 Y12
Y15 1 1 0 1 Y13
1 1 1 0 Y14
EN
1 1 1 1 Y15
4:16 decoder using 3:8 decoder
A3 A2 A1 A0 HIGH
OUTPUT
0 0 0 0 Y0
0 0 0 1 Y1
0 0 1 0 Y2
0 0 1 1 Y3
0 1 0 0 Y4
0 1 0 1 Y5
0 1 1 0 Y6
0 1 1 1 Y7
1 0 0 0 Y8
1 0 0 1 Y9
1 0 1 0 Y10
1 0 1 1 Y11
1 1 0 0 Y12
1 1 0 1 Y13
1 1 1 0 Y14
1 1 1 1 Y15
4:16 decoder using 2:4 decoder A3 A2 A1 A0 HIGH
OUTPUT
0 0 0 0 Y0
0 0 0 1 Y1
0 0 1 0 Y2
0 0 1 1 Y3
0 1 0 0 Y4
0 1 0 1 Y5
0 1 1 0 Y6
0 1 1 1 Y7
1 0 0 0 Y8
1 0 0 1 Y9
1 0 1 0 Y10
1 0 1 1 Y11
1 1 0 0 Y12
1 1 0 1 Y13
1 1 1 0 Y14
1 1 1 1 Y15
Which of the following represents a number of
output lines for a decoder with 4 input lines?
A. 15
B. 16
C. 17
D. 18
Which of the following represents a number of
output lines for a decoder with 4 input lines?
A. 15
B. 16
C. 17
D. 18
4:2 Encoder
• A combinational circuit that has ‘2n’ input lines and maximum of ‘n’ output lines.
Sequential circuits are those in which the output depends not only on the present inputs, but also on the previous output state
and/or the previous inputs.
Difference between Combinational and
52 Sequential Circuits
Combinational Circuits Sequential Circuits
The output depends only upon the present inputs output depends not only on the present inputs, but also on the
previous output state and/or the previous inputs
No feedback Feedback available from output to input
No ability to store Ability to store
Easier to design, use and handle not easier to design, use and handle
No clock signal Clock signals are required for triggering purposes
Faster slower than combinational circuits
Elementary building block: Logic gates Elementary building block: Flip flops
Examples: Adder, Subtractor, Magnitude comparator, Examples: Latches, flip flops, counters, registers etc.
Multiplexer, Decoder, etc.
QUICK QUIZ (POLL)
53
a) Magnitude Comparator
b) Multiplexer
c) Parity Generator circuit
d) Flip flop
QUICK QUIZ (POLL)
54
a) Magnitude Comparator
b) Multiplexer
c) Parity Generator circuit
d) Flip flop
Flip Flop
J K Q(t+1)
0 0 Q(t) No Change
0 1 0 Clear to 0
1 0 1 Set to 1
1 1 Q’(t) Complement
T (Toggle) Flip Flop
Modification of JK flip Flop – Shorting J and K
T Q(t+1)
0 Q(t) No Change
1 Q’(t) Complement
Edge Triggered
An IC is a small silicon semiconductors crystal (Chip) containing the electronic components for
digital gates
Various gates are interconnected inside chip to form required circuit
Chip is mounted in ceramic/plastic container connected to external pin