7-MUX, DeMUX, Encoder and Decoder Circuits-07!06!2024
7-MUX, DeMUX, Encoder and Decoder Circuits-07!06!2024
• A circuit that generates the parity bit in the transmitter is called parity generator.
Inputs: a BCD input, A,B,C,D with A as the most significant bit and D
as the least significant bit.
W = A + BC + BD X = BC’D’+B’C+B’D Y = CD + C’D’ Z = D’
Digital System Design Lab 40
Two level circuit implementation
Have equations
W = A + BC + BD = A + B(C+D)
X = B’C + B’D + BC’D’ = B’(C+D) + BC’D’
Y = CD + C’D’
Z = D’
Factoring out (C+D) and call it T
Then T’ = (C+D)’ = C’D’
W = A + BT
X = B’T + BT’
Y = CD + T’
Z = D’
Implementing the second set of equations where T=C+D results in a lower gate
count.
Digital System Design Lab 41
W = A + BT
X = B’T + BT’
Y = CD + T’
Z = D’
Specification
Each digit is created by lighting the appropriate segments. The segments are labeled
a,b,c,d,e,f,g
The decoder takes a BCD input and outputs the correct code for the seven-segment
display.
Input: A 4-bit binary value that is a BCD coded input.
Outputs: 7 bits, a through g for each of the segments of the display.
Operation: Decode the input to activate the correct segments.
Decimal A B C D a b c d e f g
0 0 0 0 0 1 1 1 1 1 1 0
1 0 0 0 1 0 1 1 0 0 0 0
2 0 0 1 0 1 1 0 1 1 0 1
3 0 0 1 1 1 1 1 1 0 0 1
4 0 1 0 0 0 1 1 0 0 1 1
5 0 1 0 1 1 0 1 1 0 1 1
Invalid BCD
6 0 1 1 0 1 0 1 1 1 1 1 codes
=
7 0 1 1 1 1 1 1 0 0 0 0 No Light
8 1 0 0 0 1 1 1 1 1 1 1
9 1 0 0 1 1 1 1 0 0 1 1
e f g
Digital System Design Lab 45
a = A’C + A’BD + AB’C’ + B’C’D’
b = A’B’ + A’C’D’ + A’CD + B’C’
c = A’B + B’C’ + A’C’ + A’D
d = A’CD’ + A’B’C + B’C’D’+AB’C’+A’BC’D
e = A’CD’ + B’C’D’
f = A’BC’ + A’C’D’ + A’BD’ + AB’C’
g = A’CD’ + A’B’C + A’BC’ + AB’C’