Re: How to achieve Or gate

Posted by cadet1620 on
URL: http://nand2tetris-questions-and-answers-forum.52.s1.nabble.com/How-to-achieve-Or-gate-tp3223839p3225423.html

Sometimes, especially when there are fewer 0's than 1's in the truth table output, it is easier to build the inverted function and then invert the the output to get the true function.

The OR function has only one 0 in its output, so let's find the canonical form of the NOT OR (NOR) function

ab|NOR
00|1
01|0
11|0
11|0
NOR is true only when a is not true and b is not true, so the canonical form of NOR is simply
NOR(a, b) = (NOT a) AND (NOT b)
Since NOR is the invert of OR, invert NOR to get
OR(a, b) = NOT((NOT a) AND (NOT b))

--Mark