Welcome, to another episode of: D-vid explains shit for computers Today: Logical Gates.
The easiest one would be "NOT" It has 1 entrance and 1 exit, meaning the exit is the exact opposite of the entrance.
x y 1 0 0 1
next would be "OR" or "including OR" which is the same. Two entrances, 1 exit Here, the exit says 1 if at least one of the entrances says one, or both do.
x y q 1 1 1 1 0 1 0 1 1 0 0 0
In contrast to that, "EXOR" or "excluding OR", where it is one or the other, but not both.
x y q 1 1 0 1 0 1 0 1 1 0 0 0
And "NOR" "not OR", also known as the word neither. the exit is 1 if neither of the entrances are 1.
x y q 1 1 0 1 0 0 0 1 0 0 0 1
As you see with the "NOT" gates, the exits are the exact opposite as they are on the normal versions.
"AND", as the name says, needs both entrances to be 1.
x y q 1 1 1 1 0 0 0 1 0 0 0 0
And the "NOT" variant of ít "NAND", where it is 1 EXCEPT when both are 1.
x y q 1 1 0 1 0 1 0 1 1 0 0 1
If the numbers are confusing you, you could say "TRUE" for 1 and "false" for 0 and formulate those into sentences. For "AND": "X AND Y are true, y/n?" if the answer is yes, it's 1, if no it's 0. OR "X or Y, or both are true, y/n?" EXOR "X or Y, but not both at the same time, is true, y/n?" NOT "X is NOT true, y/n?" NOR "X OR Y or both are NOT true, y/n?" NAND "X AND Y are NOT true at the same time, y/n?"
_________________

|