Download presentation
Presentation is loading. Please wait.
Published byStewart Riley Modified over 9 years ago
1
Digital Design Module 2 Decoder Amit Kumar AP SCSE, GU Greater Noida
2
OUTLINE Introduction to Decoder Implementation of 3 to 8 line Decoder Decoder with enable input Decoder expansion Combinational Logic Circuit Implementation using a Decoder
3
Decoder: Introduction A decoder has N inputs 2 N outputs A decoder selects one of 2 N outputs by decoding the binary value on the N inputs. The decoder generates all of the minterms of the N input variables. Exactly one output will be active for each combination of the inputs.
4
General Decoder Diagram
5
How can you build a 2-to-4 decoder? Follow the design procedures from last time! We have a truth table, so we can write equations for each of the four outputs (Q0-Q3), based on the two inputs (S0-S1). In this case there’s not much to be simplified. Here are the equations: Q0= S1’ S0’ Q1= S1’ S0 Q2= S1 S0’ Q3= S1 S0
6
A picture of a 2-to-4 decoder
7
Design of 3 to 8 line decoder
8
3-to-8 Decoder
9
Decoder with enable input The circuit operates with complemented outputs and a complement enable input. The decoder is enabled when E is equal to 0. Only one output can be equal to 0 at any given time, all other outputs are equal to 1. The output whose value is equal to 0 represents the minterm selected by inputs A and B The circuit is disabled when E is equal to 1.
10
2-to-4 Decoder: NAND implementation with enable input Decoder is enabled when E=0 and an output is active if it is 0
11
3-to-8 Decoder with Enable
12
Decoder Expansion Decoder expansion Combine two or more small decoders with enable inputs to form a larger decoder 3-to-8-line decoder constructed from two 2-to-4-line decoders The MSB is connected to the enable inputs if A 2 =0, upper is enabled; if A 2 =1, lower is enabled.
13
Decoder Expansion
14
Combining two 2-4 decoders to form one 3-8 decoder using enable switch The highest bit is used for the enables
15
4-line-to-16 line Decoder constructed with two 3-line-to-8 line decoders (1)
16
4-line-to-16 line Decoder constructed with two 3-line-to-8 line decoders (2) When w=0, the top decoder is enabled and the other is disabled. The bottom decoder outputs are all 0’s, and the top eight outputs generate min- terms 0000 to 0111. When w=1, the enable conditions are reversed. The bottom decoder outputs generate min-terms 1000 to 1111, while the outputs of the top decoder are all 0’s.
17
Combinational Logic Circuit Implementation using a Decoder Any combinational logic circuit with n inputs and m outputs can be implemented with an n-to-2n-line decoder and m OR gates. Procedure: Express the given Boolean function in sum of min-terms Choose a decoder to generate all the min-terms of the input variables. Select the inputs to each OR gate from the decoder outputs according to the list of min-term for each function.
18
Combinational Logic Circuit Implementation using a Decoder - An example (1) From the truth table of the full adder, The functions can be expressed in sum of min-terms. S(x,y,z) = m(1,2,4,7) C(x,y,z) = m(3,5,6,7) where indicates sum, m indicates min-term and the number in brackets indicate the decimal equivalent xyZCS 00000 00101 01001 01110 10001 10110 11010 11111
19
Combinational Logic Circuit Implementation using a Decoder - An example (2) Since there are three inputs and a total of eight min- terms, we need a 3-to-8 line decoder. The decoder generates the eight min-terms for x,y,z The OR gate for output S forms the logical sum of min-terms 1,2,4, and 7. The OR gates for output C forms the logical sum of min-terms 3,5,6, and 7
20
Combinational Logic Circuit Implementation using a Decoder - example (3) Implementation of a Full Adder with a Decoder
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.