How to achieve Or gate

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

Hey!

I was re-reading the Canonical representation part and I thought I could use that logic to get the hdl code for the Or Gate.

truth table
0 0 0
1 0 1
0 1 1
1 1 1

So I forgot about the first line and 'fixed the values'. So I got
And(1,Not(0)) = 1
And(Not(0),1) = 1
And(1,1) = 1

But now I have to 'Or' them together which is bad because this is the gate I am trying to create.
How can I achieve the canonical representation of the Or gate without the or gate?

I thought I could just negate the result of this but in the case of 0 0 negating will not work.
I just really want to know how I can properly use the canonical representation so that I can understand all the this and the other gates.

Note: Didn't try to represent the Not and the And gate just because I figured it out really quickly, but I am kind of stuck on this on.