Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

OR gate with inverted inputs

This is a general question..

How does the math behind the first set of input work (0,0), since the inputs get inverted (0,0) becomes (1,1) which if we then add becomes a 2 (‘0b10’) how is the output ‘1’.

Inverted Input OR Gate

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

>Solution :

OR is not the same as integer addition. The truth table for an OR gate is

A   B     A OR B
0   0       0
0   1       1
1   0       1
1   1       1

The output is 1 if and only if A is 1 or B is 1 (hence the name).

The truth table shown is not for a NOR gate, but rather a NAND gate. One of De Morgan’s laws states that

NOT A OR NOT B == NOT (A AND B)

and you can see this is the case:

A   B     A OR B  A AND B   NOT (A AND B)
0   0       0        0           1
0   1       1        0           1
1   0       1        0           1
1   1       1        1           0

If I see "Negative-OR", I assume they mean NOR. Whoever created that image may have intended it to be read "input-negative OR", which matches the symbol and the truth table, but isn’t a term I’ve ever heard before.

Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading