Professional Documents
Culture Documents
1.2-Logic Circuitry and Organization
1.2-Logic Circuitry and Organization
A X
0 0
1 1
AND GATE
A B X
0 0 0
0 1 0
1 0 0
1 1 1
NAND gate
Algebraic expression
X = (AB)’
NAND
A gateBtruth table
X
0 0 1
0 1 1
1 0 1
1 1 0
OR GATE
• Explanation
• Graphic symbol • The OR gate produces the inclusive-OR function.
• has two input lines and one output line.
A • if either or both of the inputs are a 1, the resulting
X output value is a 1.
B
• In our example, the output in only high (1) if either A is
high (1) or B is high (1) or both A as well as B are high (1).
• Algebraic function
• The algebraic symbol of the OR function is similar to the
mathematical + used for addition.
• X= A + B (i.e. x = A or B)
A B X • OR Gate Truth Table
0 0 0
0 1 1
1 0 1
1 1 1
Notice that the output is low (0) if both inputs are zeros (0).
XOR GATE
• Explanation
• Graphic Symbol • The X in the XOR gate stands for
"exclusive."
A • i.e. the output from this gate will be a 1
X ONLY when one of the inputs is a 1 but
B not both inputs.
• Notice also that the output is a 0 if both
the inputs are 1 or if both inputs are 0.
• In other words, the output is high (1) only
of the inputs have different values.
+
A B X • Algebraic function
• X= A B
0 0 0
• Or
0 1 1
• X= A’B + AB’
1 0 1
1 1 0 • XOR Gate truth table
NOR GATE
• Explanation
• Graphic symbol • The NOR gate is a complement of the OR
gate
A
X • Its output is always the complement of
B the OR gate.
• I.e. the output is high (1) if and only if
both input A and B are high (1s).
• Algebraic function
• The algebraic symbol of the OR function is
similar to the mathematical + used for
A B X addition.
0 0 1
• X= (A + B)’ (i.e. x = (A or B)’)
0 1 0
1 0 0
• NOR Gate Truth Table
1 1 0
A
F
B
C
• F = A + BC’
A
F
B
C
• F = AB’C + ABC’
Truth table
• A truth table is a mathematical table used in
logic—specifically in connection with Boolean
algebra, Boolean functions, and propositional
calculus—which sets out the functional values
of logical expressions on each of their
functional arguments, that is, for each
combination of values taken by their logical
variables.
Truth Table Example
• Draw the truth table for function F where
F=A’BC’ + A’B’C’ + ABC
A B C A’BC’ A’B’C’ ABC F
0 0 0 0 1 0 1
0 0 1 0 0 0 0
0 1 0 1 0 0 1
0 1 1 0 0 0 0
1 0 0 0 0 0 0
1 0 1 0 0 0 0
1 1 0 0 0 0 0
1 1 1 0 0 1 1
A B X
Truth Table
0 0 0
0 1 1
1 0 1
1 1 1
A B X
• F = A + BC 0
0
0
1
0
0
1 0 0
A B C BC A + BC 1 1 1
0 0 0 0 0
0 0 1 0 0
0 1 0 0 0
0 1 1 1 1
1 0 0 0 1
1 0 1 0 1
1 1 0 0 1
1 1 1 1 1
A B X
0 0 0
0
1
1
1
0
1
1
1
1
F=A’BC’ + A’B’C’ + ABC
A B C A’ B’ C’ BC’ A’BC’ B’C’ A’B’C’ B
C
ABC A’BC’ +
A’B’C’ F
0 0 0 1 1 1 0 0 1 1 0 0 1 1
0 0 1 1 1 0 0 0 0 0 0 0 0 0
0 1 0 1 0 1 1 1 0 0 0 0 1 1
0 1 1 1 0 0 0 0 0 0 1 0 0 0
1 0 0 0 1 1 0 0 1 0 0 0 0 0
1 0 1 0 1 0 0 0 0 0 0 0 0 0
1 1 0 0 0 1 1 0 0 0 0 0 0 0
1 1 1 0 0 0 0 0 0 0 1 1 0 1
Summary
AB + (AC)’