Logicgates
Logicgates
Output
OR
• O R also needs two inputs
• O R needs one input to be O N for it to spit out O N
• It is also O N when both inputs are O N
• It is O F F when both inputs are O F F
O R Truth Table
Input 1
0 1
0 0 1
Input 2
1 1 1
Output
XOR
• X O R is the short way to say “Exclusive O R ”
• Like O R , X O R also only need s one input to be O N for it to
spit out O N
• But unlike O R , when both inputs are O N , X O R spits
out O F F
• It is also O F F when both inputs are O F F
X O R Truth Table
Input 1
0 1
0 0 1
Input 2
1 1 0
Output
S t a c k i n g Lo g ic G a t e s !
• An output of one logic gate c an be an input to
another logic gate.
• This creates trees of gates that depend on ea c h
other.
Let’s D o an E xa m p l e !
1 1
0
Example 2!
1
AND
1 0
0
Example 3!
1
AND 1
1
1 1 0
0
Log ic gates actually look like weird
b u g s in real life!