14th October
14th October
AND-gate
• An AND-gate is a circuit with two input signals and one output
signal.
• If both input signals are 1, the output signal is 1. Otherwise
the output signal is 0.
• Symbolic representation & Input/output Table is on next slide.
Continued…
Symbolic Representation
Truth Table
Continued…
OR-gate
• An OR-gate is a circuit with two input signals and one output
signal.
• If both input signals are 0, then the output signal is 0.
Otherwise, the output signal is 1.
• Symbolic representation & Input/Output Table is on the next
slide
Continued…
Continued…
XOR
•XOR is the short way to say “Exclusive OR”
•Like OR, XOR also only needs one input to be ON for it to
spit out ON
•But unlike OR, when both inputs are ON, XOR spits out OFF
•It is also OFF when both inputs are OFF
Truth Table
NAND Gate
• The NAND gate operates as an AND gate followed by a NOT
gate.
• It acts in the manner of the logical operation "and" followed by
negation.
• The output is "false" if both inputs are "true." Otherwise, the
output is "true."
Continued…
NOR Gate
• The NOR gate is a combination OR gate followed by an
inverter. Its output is "true" if both inputs are "false."
Otherwise, the output is "false."
Continued…
XNOR Gate
• The XNOR (exclusive-NOR) gate is a combination XOR gate
followed by an inverter.
• Its output is "true" if the inputs are the same, and "false" if the
inputs are different.
Logic gates representation using the Truth table
Logic gate symbols
Stacking Logic Gates!
1 1
0
Example 2 !
1
AND
1 0
0
Example 3 !
1
1
1 AND
1 1 0
0
Continued…
.
Continued….
• Indicate the output of the circuit below when the input signals
are P = 1, Q = 0 and R = 0
Solution
Continued…
• Trace through the circuit from left to right, writing down the
output of each logic gate.
Logic gates actually look like weird
bugs in real life!