Combinational Logic Circuits
Combinational Logic Circuits
Half adder Full adder Half subtractor Full subtractor BCD adder IC 7483 for implementing Binary Adder Binary Subtractor BCD adder Look ahead carry adder
Prepared by Jasmine K S, HOS(E&C),GPTC,PBVR 1
Multplexer Demultiplexer Decoder Encoder Various decoders BCD to decimal binary to excess 3 code binary to gray code gray to binary BCD to 7 segment Digital comparators Multipliers
Prepared by Jasmine K S, HOS(E&C),GPTC,PBVR 2
Combinational circuits
M outputs
combination When input changed, output changed immediately Real circuits is imperfect and have propagation delay A combinational circuit Performs logic operations that can be specified by a set of Boolean expressions Can be built hierarchically
Prepared by Jasmine K S, HOS(E&C),GPTC,PBVR 3
Adder circuits
Half adder
A 0 B 0 S 0 Ca 0
S=AB+AB Ca=AB
A
0 1
1
1 0
1
1 1
0
0 0
1
S B
Ca
Prepared by Jasmine K S, HOS(E&C),GPTC,PBVR 4
Full adder
S=ABC+ABC+ABC+ABC = A(BC+BC)+A(BC+BC) = A(B(exor)C) + A(B(exnor)C) = A(exor)B(exor)C
B
A 0 0 0 0 1 1 1 1
B 0 0 1 1 0 0 1 1
C 0 1 0 1 0 1 0 1
S 0 1 1 0 1 0 0 1
Ca 0 0 0 1 0 1 1 1
C A
Full adder
Ca=ABC+ABC+ABC+ABC = A(BC+BC)+BC(A+A) = A(B(exor)C) +BC
B
A 0 0 0 0 1 1 1 1
B 0 0 1 1 0 0 1 1
C 0 1 0 1 0 1 0 1
S 0 1 1 0 1 0 0 1
Ca 0 0 0 1 0 1 1 1
C A Ca
Prepared by Jasmine K S, HOS(E&C),GPTC,PBVR 6
Subtractor circuits
Half Subtractor
A 0 B 0 D 0 Bo 0
D=AB+AB Bo=AB
A
0 1
1
1 0
1
1 1
0
1 0
0
D B
Bo
Prepared by Jasmine K S, HOS(E&C),GPTC,PBVR 7
Full subtractor
D=ABC+ABC+ABC+ABC =A(BC+BC)+A(BC+BC) =A(B(exor)C)+A(B(exnor)C)
B
A 0 0 0 0 1 1 1 1
B 0 0 1 1 0 0 1 1
C 0 1 0 1 0 1 0 1
D 0 1 1 0 1 0 0 1
Bo 0 1 1 1 0 0 0 1
C D A
Full subtractor
Bo=ABC+ABC+ABC+ABC =A(BC+BC)+BC(A+A) =A(BC+BC)+BC =A(B(exor)C)+BC
Bo
0
0 0 1 1
0
1 1 0 0
1
0 1 0 1
1
1 0 1 0
1
1 1 0 0
1
1
1
1
0
1
0
1
0
1
Full subtractor
Bo=A(B(exor)C)+BC
Bo=((BC) . Z) = ((BC) . (B(exor)C . (B(exor)C . A)) =BC+ (B(exor)C . (B(exor)C . A)) =BC+ B(exor)C . ((B(exor)C) + A) = BC+ B(exor)C . A
Y=(X.A) Z=(X.Y)
Bo B (BC)
X=B(exor)C
Y
Z D
C A
10
Multiplexers (MUXs)
(also called a data selector) Input lines consist of data lines: 2n lines select lines: n lines there may or may not be an enable line Output line: output line: 1 line
11
Multiplexer Function
Truth table of a 4:1 multiplexer (without enable) Select inputs Output S1 S0 Y 0 0 A0 0 1 A1 1 0 A2 1 1 A3
Multiplexer Function
Truth table of a 4:1 multiplexer (with enable)
Enable Select inputs Output
E
0 1 1
S1
X 0 0
S0
X 0 1
Y
0 A0 A1
1
1
1
1
0
1
A2
A3
Multiplexers (Mux)
Functionality: Selection of a particular input
A0 A1 A2 A3 En
4-to-1 Mux
S1 S0
14
A1
A2
A3
B 0 0 1 1 0 0
C 0 1 0 1 0 1
Y 0 1 1 0 0 0
8 to 1 Mux
Example
0 0 0 0 1 1
0
1 1 0 0 0 1 1
A0 A1 A2 A3 A4 A5 A6 A7
1
1
1
1
0
1
1
1
8-to-1 Mux
S2 S1 S0
A B C
16
Demultiplexers
Performs the reverse operation of a multiplexer Input lines are: 1 data line n select lines
maybe 1 enable
Output lines are 2n output lines
Prepared by Jasmine K S, HOS(E&C),GPTC,PBVR 17
Demultiplexers (DeMux)
A0 A1 A2 A3
Y0
4-to-1 Mux
S1 S0
1-to-4 DeMux
S1 S0
Y1 Y2 Y3
18
DeMux Operations
S1 0 0
Y0 Y1 Y2 Y3
S0 0 1 0 1
Y3 0 0 0 D
Y2 0 0 D 0
Y1 0 D 0 0
Y0 D 0 0 0
1 1
1-to-4 DeMux
S1 S0
Y 0 S 0 S 1D
Y 1 S 0 S 1D
Y 2 S 0 S 1D
Y 3 S 0S1D
19
Y0
Y 0 S 0 S 1D
Y 1 S 0 S 1D
Y2
Y 2 S 0 S 1D
Y 3 S 0S1D
Y3
20
S0
Y1 En 0 Y2 1 1 Y3 1 1 S1 X 0 0 1 1 S0 X 0 1 0 1 Y3 0 0 0 0 D Y2 0 0 0 D 0 Y1 0 0 D 0 0 Y0 0 D 0 0 0
En
D
21
Application Example
A multiplexer/demultiplexer arrangement for information transmission
1-to-4 DEMUX
22
Decoders
A n-to-2n-line decoder is a circuit in which only one of the output line responds to the n select lines(input) Number of input:output is n:2n (Note: a demultiplexer is a decoder with an enable input acting as a data input line)
23
Y1
Y2
Y3
24
3-to-8-line Decoder
25
26
3-to-8-line Decoder
27
Encoders
Number of input:output is 2n:n
28
inputs
X0 X1
Z0
0 0
Z1
0 0
Z2
0 1
X2
X3 X4 X5 X6 X7
0
0 1 1 1 1
1
1 0 0 1 1
0
1 0 1 0 1
29