Difficult Logic Gate Puzzle Using Only 2 Input NAND Gates

In summary, the student attempted to solve the homework equation by reverse engineering it, by hand, and by converting it to NAND gates. He then attempted to solve it using AND and OR gates, but was not successful. He finally figured out how to solve it by converting it to NAND gates and using logical and and or gates.
  • #1
Alxb577
8
0

Homework Statement


[/B]
Impliment the expression which is already in minimum sum of products form using only two-input NAND gates. No gate may be used as a NOT. All inputs are available both uncomplemented and complemented. (The number of gates required is shown in parentheses.)

f = ab'd' + bde' + bc'd + a'ce (10 gates)

Homework Equations



(ab)' = a' + b'
(a')' = a
(a+b) = a'b'

The Attempt at a Solution



first my idea was to try and work in reverse by imagining that the end result had come out of a NAND gate and then getting an idea of what the inputs might be. I spend a lot of time on that and gave up because I wasn't going to have the right number of gates.

second idea. I tried to manipulate the original equation by hand to see if i could toggle any variables or do anything that would help me. I gave up on that because I couldn't get a grasp on what exactly I was doing.

third idea. I first tried drawing the equation with AND and NOT gates and then tried to convert them to only NAND gates but I just keep getting lost.

During this time I've tried to use my textbook, but it doesn't have a good example with all these restrictions that I have to implement.

I wouldn't mind putting some more effort into some method or even something I've already tried if I had some direction as to how to go about solving something like this.

Thanks
 
Last edited by a moderator:
Physics news on Phys.org
  • #2
the curious thing is that it takes three NAND gates to construct an OR gate and in your example you have three plus signs.

Have you tried designing it like you had AND and OR gates and then replace them with the NAND equivalents and then go through and eliminate redundant gates ie two NAND inverters in a row.

In other words, you allow NAND gates as inverters initially and then remove them from the final circuit.

Perhaps if you start to construct it from that viewpoint you'll figure it out.

Here's some more info on NAND logic

http://en.m.wikipedia.org/wiki/NAND_logic
 
Last edited:
  • #3
Thanks for your response. I figured it out but it took me a while.

Here's a picture of how to solve it.

First I had to find out that there are two ways of representing a nand gate one which resembles or as well as the one that resembles and.

Then the trick is to use algebraic manipulation to get the terms in pairs of two where the operations are alternating between and and or as you go deeper into the expression.

For example. Notice how the final expression has two terms sharing an or operation. Looking at one of the terms notice how its the and of two operations. Going deeper into one of those two terms notice how its two terms sharing an or symbol. This is the key to solving this type of problem.

There is no algorithm that will get your terms this way. It can only be done by trial and error, but at least you can know what you are looking for.

After we have our final expression written out in a way that is known to work we will draw using logical and and or gates.

Then add the nots to make all of the gates nand gates and be sure to negate literals which are going into a or type nand gate.

That's it!
 

Attachments

  • 20150305_184308.jpg
    20150305_184308.jpg
    38.2 KB · Views: 994

1. What is a NAND gate?

A NAND gate is a type of logic gate that performs the Boolean operation of logical conjunction on its inputs. It takes in two inputs and outputs a single output, which is only true when both inputs are false. It can also be thought of as an inverted AND gate.

2. What makes this logic gate puzzle difficult?

This puzzle is difficult because it restricts the use of inputs to only two NAND gates. This limits the number of possible combinations and requires creative thinking to find a solution.

3. How is this puzzle useful in real-life applications?

This puzzle can be useful in understanding the principles of digital logic and how NAND gates can be used to create complex circuits. It also helps develop problem-solving skills and critical thinking.

4. Is there more than one solution to this puzzle?

Yes, there can be multiple solutions to this puzzle. However, some solutions may be more efficient or elegant than others.

5. How can I approach solving this puzzle?

One approach could be to break down the problem into smaller parts and try to find solutions for each part. It may also be helpful to draw out the logic gate diagram and experiment with different combinations until a solution is found.

Similar threads

  • Engineering and Comp Sci Homework Help
Replies
2
Views
2K
  • Engineering and Comp Sci Homework Help
Replies
9
Views
2K
  • Engineering and Comp Sci Homework Help
Replies
4
Views
26K
  • Engineering and Comp Sci Homework Help
Replies
1
Views
6K
  • Engineering and Comp Sci Homework Help
Replies
1
Views
1K
  • Engineering and Comp Sci Homework Help
Replies
7
Views
6K
  • Set Theory, Logic, Probability, Statistics
Replies
16
Views
1K
  • Engineering and Comp Sci Homework Help
Replies
4
Views
2K
  • Engineering and Comp Sci Homework Help
Replies
4
Views
3K
  • Engineering and Comp Sci Homework Help
Replies
10
Views
4K
Back
Top