Converting to just NANDs with DeMorgan's

  • Thread starter Melawrghk
  • Start date
In summary, the conversation discusses converting a given expression into a circuit that only employs NAND and NOR gates using DeMorgan's Law. The solution involves drawing out the circuit first and then converting the AND and OR gates to NAND and NOR gates, cancelling out any redundant inverters. This results in a full NAND-NAND realization of the circuit.
  • #1
Melawrghk
145
0

Homework Statement


Convert a3'a1 + a3'a2 + a3'a0 + a3a2'a1'a0'

to an expression (well, it's a circuit eventually) that would only employ NAND and NOR gates. Use DeMorgan's Law.


Homework Equations


a'+b'=(ab)'

The Attempt at a Solution


I applied DeMorgan's as the problem suggested...

(a3'a1)''+(a3'a2)''+(a3'a0)'' + (a3a2'a1'a0')''

Which yielded:
( (a3'a1)' (a3'a2)' (a3'a0)' (a3a2'a1'a0')')'

This is in just NAND and NOR gates, but the circuit isn't really aesthetically appealing... Is there a simplifying trick I'm missing? Or is this just what it is supposed to be?

Thanks in advance!
 
Physics news on Phys.org
  • #2
I would draw out the circuit first before doing any Boolean algebra using regular AND OR and INVERTER gates. Then when its all drawn, convert the AND and NOR gates to NAND and NOR. Put inverter circles on the inputs of the and OR gates to turn them into NANDs, and inverter circles on the output of the AND gates to turn them into NAND gates. Cancel out and redundant inverters. Should results in a full NAND-NAND realization of you circuit.
 
  • #3


Great job on applying DeMorgan's Law to convert the expression to just NAND and NOR gates! The circuit may not look aesthetically appealing, but it is a correct and simplified representation of the original expression. Sometimes, in order to achieve a specific logic function, the circuit may not look pretty but it is still functional. Keep up the good work!
 

Related to Converting to just NANDs with DeMorgan's

1. What is the purpose of converting to just NANDs with DeMorgan's?

The purpose of converting to just NANDs with DeMorgan's is to simplify a logic circuit by reducing the number of logic gates needed. This can save space and reduce the overall cost of the circuit.

2. How does DeMorgan's theorem apply to converting to just NANDs?

DeMorgan's theorem states that the complement of a logical expression can be achieved by inverting each individual term and changing the logical operator. In the case of converting to just NANDs, this means taking the complement of each input and output and changing AND gates to NAND gates, and OR gates to NAND gates with inverted inputs.

3. What are the advantages of converting to just NANDs with DeMorgan's?

The main advantage of converting to just NANDs with DeMorgan's is that it can simplify a logic circuit and reduce the number of gates needed. This can save space and reduce the cost of the circuit. Additionally, NAND gates are often less expensive and more readily available than other types of gates.

4. Are there any disadvantages to converting to just NANDs with DeMorgan's?

One potential disadvantage of converting to just NANDs with DeMorgan's is that the resulting circuit may be more difficult to understand and troubleshoot. This can be especially true for larger and more complex circuits. Additionally, the use of NAND gates may introduce additional delays in the circuit, which can affect its overall performance.

5. How do you convert a logic circuit to just NANDs with DeMorgan's?

To convert a logic circuit to just NANDs with DeMorgan's, follow these steps:

  • Identify all AND and OR gates in the circuit.
  • Take the complement of each input and output in the circuit.
  • Replace all AND gates with NAND gates with inverted inputs.
  • Replace all OR gates with NAND gates with inverted inputs.
  • Simplify the resulting circuit by combining any series or parallel NAND gates.

Similar threads

  • Engineering and Comp Sci Homework Help
Replies
4
Views
3K
  • Engineering and Comp Sci Homework Help
Replies
2
Views
4K
  • Engineering and Comp Sci Homework Help
Replies
1
Views
6K
  • Calculus and Beyond Homework Help
Replies
6
Views
1K
  • Introductory Physics Homework Help
Replies
9
Views
2K
  • Engineering and Comp Sci Homework Help
Replies
2
Views
1K
  • Materials and Chemical Engineering
Replies
2
Views
6K
Back
Top