Test Your EQ (Engineering Quotient)

EQ #57

How many NAND gates would it take to implement the following translation table? There are five inputs and eight outputs. You may consider an inverter to be a one-input NAND gate.

— ADVERTISMENT—

Advertise Here

Inputs Outputs
ABCDE FGHIJKLM
11111→00001111
01111→00000011
00111→00000000
00011→10000011
00001→10001111

First of all, note that there are really only four inputs and three unique outputs for this function, since input E is always 1 and outputs GHI are always 0. The only real outputs are F, plus the groups JK and LM.

Since the other 27 input combinations haven’t been specified, we can take the output values associated with all of them as “don’t care”.

— ADVERTISMENT—

Advertise Here

The output F is simply the inversion of input C.
The output JK is high only when A is high or D is low.
The output LM is high except when B is low and C is high.
Therefore, the entire function can be realized with a total of five gates:

Keep up-to-date with our FREE Weekly Newsletter!

Don't miss out on upcoming issues of Circuit Cellar.


Note: We’ve made the Dec 2022 issue of Circuit Cellar available as a free sample issue. In it, you’ll find a rich variety of the kinds of articles and information that exemplify a typical issue of the current magazine.

Would you like to write for Circuit Cellar? We are always accepting articles/posts from the technical community. Get in touch with us and let's discuss your ideas.

Supporting Companies

Upcoming Events


Copyright © KCK Media Corp.
All Rights Reserved

Copyright © 2023 KCK Media Corp.

EQ #57

by Circuit Cellar Staff time to read: 1 min