chapter_10_-_boolean_logic
chapter_10_-_boolean_logic
chapter_10_-_boolean_logic
A Output X
Description: 0 1
The output X, is 1 if: the input, A, is 0
1 0
Truth table:
2 inputs
Description: A B X
The output, X, is 1 if: 0 0 0
both inputs, A and B, are 1 0 1 0
1 0 0
logic notation : X = A AND B
1 1 1
logic notation X = A OR B 1 0 1
1 1 1
Boolean algebra X = a + b
. represents the AND operation
+ represents the OR operation
a bar above the letter represents NOT o
The function of the logic gates
4) NAND gate (NOT AND)
Truth table:
2 inputs
Description: A B X
1 1 0
logic notation : X = A NAND B
. represents the AND operation
+ represents the OR operation
Boolean algebra : X= A . B a bar above the letter represents NOT o
The function of the logic gates
5) NOR gate
Truth table:
2 inputs
A B X
Description:
0 0 1
The output, X, is 1
IF neither input A nor input B is 1 0 1 0
1 1 0
Boolean algebra X = A + B
. represents the AND operation
+ represents the OR operation
a bar above the letter represents NOT o
The function of the logic gates
6) XOR (EOR) gate
Truth table:
2 inputs
Description:
A B X
The output, X, is 1 if:
0 0 0
(input A is 1 AND input B is 0)
OR 0 1 1
1 1 0
logic notation X = A XOR B
. represents the AND operation
+ represents the OR operation
Boolean algebra X = A ⊕ B a bar above the letter represents NOT o
Truth tables :
• Truth tables are used to trace the output from a logic gate or logic circuit.
• The NOT gate is the only logic gate with one input; the other five gates have
two inputs.
• When constructing truth tables, all possible combinations of 1s and 0s which
can be input are considered.
• For the NOT gate (one input) there are only 21 (2) possible binary
combinations.
For all other gates (two inputs), there are 22 (4) possible binary
combinations.
For logic circuits: the number of inputs can be more than 2; for example
three inputs give a possible 23 (8) binary combinations.
And four inputs, the number of possible binary combinations is 24 (16).
A B A B A B C
0 0 0 0 0 0 0
1 0 0 1 0 0 1
1 0 0 1 0
1 1 0 1 1
1 0 0
1 0 1
1 1 0
1 1 1
Logic circuits, logic expressions, truth
tables and problem statements
show how to carry out the following tasks:
Complete a truth table from a:
– problem statement
– logic or Boolean expression
– logic circuit
0478/12/F/M/20
Create truth table and logic expression from logic circuits
Create truth table and logic expression from logic circuits
Logic Circuit
Create logic circuits from truth table
Steps :
1. Use only NOT,OR ,and AND Gates .
2. Circle only the rows that contain 1 in the output column see the example
3. In the example in row 2 (output is 1) : A=0 , B=1 --> use AND gate to give the
output 1, so both inputs must be 1 , A MUST BE INVERTED FROM 0->1 BY USING
NOT
so the expression for this row : NOT A AND B
4. Row 4 (output is 1) : use AND gate to give the output , since both inputs must
be 1 .
A and B are both 1
so the expression for this row : A AND B
5. To give all of the possible values for the output to be 1 are : row 1 OR row 4
Write the Boolean expression for the truth table by applying the sum-of-products.