Understanding Demorgan's Theorem for Logic Gates

  • Thread starter hell18
  • Start date
  • Tags
    Theorem
In summary: DeMorgan's Theorem]=A'B'C'.In summary, DeMorgan's theorem shows how the negation distributes over the conjunction and disjunction in logic gates. This means that it can be used to restructure logic gates in certain situations, such as in technology mapping, in order to meet specific requirements. By applying DeMorgan's theorem, you can convert logic gates to NAND or NOR gates, which are often faster. To prove DeMorgan's law, you can use the general expansion case and set BC=D, resulting in A'B'C'.
  • #1
hell18
21
0
when using Demorgan's Theorem i didn't understand why it had to be used as logic gates AND or OR?.

e.g.

not x and y not x or not y


in other words when facing a situation with 2 logic gates the same you make them the opposite of each other to get the answer?
 
Mathematics news on Phys.org
  • #2
Your post is difficult to understand. DeMorgans shows how the negation distributes over the conjunction and disjunction.
For example
~(A & B) <--> (~A V ~B)
This makes sense. The left hand side says
"It is not the case that both A and B are true."
The right hand side says,
"Either A is not true or B is not true."
Clearly these say the same thing since if A and B aren't both true, then one of them has to be false. And if one of either A or B is false, then they can't both be true.
 
  • #3
Well I'm not quite sure what you are asking either, but maybe I can help.

when using Demorgan's Theorem i didn't understand why it had to be used as logic gates AND or OR?.

The only answer I can come up with would be to restate the definition of these gates, and/or restate how they operate. I don't really see the point of this so I will move on.


in other words when facing a situation with 2 logic gates the same you make them the opposite of each other to get the answer?

Well, I'm not sure what you mean by "the answer", but by applying DeMorgan's theorem you will have restructured your logic to meet whatever requirements were initially set out. If you are using a technique called "Technology Mapping" (which in most cases is used to convert all your logic to NAND or NOR gates) then DeMorgan's is the theorem you would apply. Usually these gates are faster and hence the reason you might be looking for different logic.
 
  • #4
Funny, I was just thinking of this on the way home and then used GOOGLE and found this

site.

Some of the folks, on the august site, were having some problems with this, so I thought it

through and here is what I concluded. Anything I did incorrectly, please advise!

Proving DeMorgan's Law:

To Prove: (AB)'=A'+B'

From AB, then (AB)' will be TRUE for all other combination of AB

i.e.: A'B+AB'+A'B' are TRUE.

A'B+AB'+A'B'= A'B+AB'+A'B'+A'B'=B'(A+A')+A'(B+B')=A'+B'

General Expansion Case:

(ABC)'=A'+D' [SETTING BC=D]=A'+(BC)'=A'+B'+C'
 
  • #5


Demorgan's Theorem is a fundamental concept in logic and is used to simplify complex logic expressions. It states that the negation of a logical conjunction (AND) is logically equivalent to the disjunction (OR) of the negations of the individual terms, and vice versa.

In simpler terms, this means that when you have a logic expression with multiple terms connected by AND or OR gates, you can use Demorgan's Theorem to transform it into an equivalent expression with only one type of gate. This can make the expression easier to understand and analyze.

In your example, the expression "not x and y" can be transformed into "not x or not y" using Demorgan's Theorem. This is because the negation of an AND gate is equivalent to the OR gate of the negations of the individual terms. So, rather than having two AND gates, we now have one OR gate, making the expression simpler.

It is important to understand that Demorgan's Theorem is not limited to just AND and OR gates. It can be applied to any logical operators, such as NAND, NOR, and XOR gates. The key is to recognize when an expression can be simplified using this theorem.

I hope this explanation helps you understand the use of Demorgan's Theorem in logic gates. It is a powerful tool that allows us to simplify complex expressions and make them easier to work with. As a scientist, it is important to have a strong understanding of fundamental concepts like this in order to effectively analyze and interpret data.
 

FAQ: Understanding Demorgan's Theorem for Logic Gates

1. What is Demorgan's Theorem and how does it apply to logic gates?

Demorgan's Theorem is a fundamental concept in Boolean algebra that describes the relationship between logical operations. It states that the negation of a conjunction (AND) is equivalent to the disjunction (OR) of the negations of the individual terms. This applies to logic gates by providing a way to simplify complex logic circuits into simpler, more efficient forms.

2. How do I apply Demorgan's Theorem to simplify a logic circuit?

To apply Demorgan's Theorem, you must first identify any negations within the logic circuit. Then, you can use the theorem to switch between AND and OR operations by negating the individual terms and changing the operation. This allows you to reduce the number of gates and simplify the circuit.

3. Can Demorgan's Theorem be applied to any type of logic gate?

Yes, Demorgan's Theorem is a fundamental concept in Boolean algebra and can be applied to any type of logic gate, including AND, OR, NOT, NAND, and NOR gates. It can also be applied to more complex logic gates such as XOR and XNOR gates.

4. What are the benefits of using Demorgan's Theorem in logic gates?

The main benefit of using Demorgan's Theorem is that it allows for the simplification of complex logic circuits. This can lead to a reduction in the number of gates required, making the circuit more efficient and easier to design and troubleshoot. It also allows for easier visual representation and analysis of the circuit.

5. Are there any limitations to using Demorgan's Theorem in logic gates?

While Demorgan's Theorem is a powerful tool for simplifying logic circuits, it does have some limitations. It may not always result in the most efficient circuit, and it can be difficult to apply to circuits with many terms or more complex operations. It is important to carefully consider the circuit and potential alternatives before applying Demorgan's Theorem.

Similar threads

Back
Top