# Implementing 4-to-16 decoder using 3-to-8 and 2-to-4

This is digital logic question. I think it's alright to post it here.

I'm trying to implement a 4 to 16 decoder using 2 to 4 decoder and 3 to 8 decoder.

What I did, I used 2x of 2-to-4 decoder and 1x 3-to-8 decoder. But I think there is a mistake in the 3-to-8 part. I hope you could point me out to it.

Here is what I did,

Note that I couldn't continue writing the full table.

-

Q2 and Q3 will never be active at the same time, so it is useless to route them to the same decoder where one acts as enable.

-
So the correct way is to connect Q2 to the 3to8 decoder and that's it? – Sobiaholic Nov 11 '12 at 20:50
No, because the 3-to-8 must be active for A3=1, hence for its EN must be OR( Q2, Q3 ), and its third address input must be A2. Why do you want to use such an asymmetric set of chips? Five 2-to-4 decoders would be a more natural choice (or two 3-to-8 and one 1-to-two). – Wouter van Ooijen Nov 11 '12 at 21:19
@WoutervanOoijen this is a basic digital logic course. It's not my major, but we have to take it. About your suggestion, Yes! I was thinking inputting A2 is more correct than inputting Q2. But I'm still not sure why A2? My answer to my self is because A2 has 4 zeros and 4 ones which makes a new unique combinations. is my thought correct? – Sobiaholic Nov 11 '12 at 22:55
'more correct' is a weird phrase for digital logic! If you write the full logc table you can see that You can see that A3=1 is the condition for the 3-to-8 decoder, and that its output depends on A2. – Wouter van Ooijen Nov 12 '12 at 7:33
Thank you so much @WoutervanOoijen I get it now. I forgot that we're trying to run the 3to8 decoder. And to do that we used both Q3 and Q4 with a sum which makes it enabled. Thanks so much!!!! – Sobiaholic Nov 13 '12 at 18:21

You can do this with two 3-8 decoders and get by with having to use just two parts of the same type. Common 3-8 decoders come with enables for both high and low polarities to make expansion a piece of cake. Excuse my quick hack drawing.

-
I appreciate it. However, this is a basic course i'm taking. So, I'm sure we haven't cover this in class. – Sobiaholic Nov 13 '12 at 18:22