Understanding Demorgan's Theorem for Logic Gates

  • Thread starter Thread starter hell18
  • Start date Start date
  • Tags Tags
    Theorem
Click For Summary
DeMorgan's Theorem explains how negation interacts with logical operations, specifically conjunction (AND) and disjunction (OR). It states that the negation of a conjunction is equivalent to the disjunction of the negations, and vice versa. For example, ~(A & B) is equivalent to (~A V ~B), meaning if both A and B are not true, at least one must be false. This theorem is particularly useful in logic circuit design, especially when converting logic to NAND or NOR gates for efficiency. Understanding this theorem helps restructure logic to meet specific requirements in digital design.
hell18
Messages
21
Reaction score
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
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.
 
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.
 
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'
 
Here is a little puzzle from the book 100 Geometric Games by Pierre Berloquin. The side of a small square is one meter long and the side of a larger square one and a half meters long. One vertex of the large square is at the center of the small square. The side of the large square cuts two sides of the small square into one- third parts and two-thirds parts. What is the area where the squares overlap?

Similar threads

  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 7 ·
Replies
7
Views
2K
  • · Replies 1 ·
Replies
1
Views
5K
  • · Replies 12 ·
Replies
12
Views
2K
  • · Replies 105 ·
4
Replies
105
Views
8K
  • · Replies 2 ·
Replies
2
Views
3K
  • · Replies 22 ·
Replies
22
Views
3K
  • · Replies 12 ·
Replies
12
Views
2K
  • · Replies 13 ·
Replies
13
Views
2K
  • · Replies 6 ·
Replies
6
Views
2K