Professional Documents
Culture Documents
A B C Boolean algebra
Boolean algebra is a notation used to represent logic. For example
(Q=output ) (A and B =inputs)
Q = A AND B(AND)
Q = A OR B(OR)
Q = NOT A(NOT)
This notation can also be represented using symbols:
Q = A /\ B, or as A.B(AND)
Q = A \/ B, or as A+B(OR)
Truth Table Q = ¬ A(NOT)
AND gates
An AND gate, also called a conjunction, uses two inputs to generate one output.
>>The output is 1 (TRUE) only if both of the inputs are 1 (TRUE).
AND gates are represented diagrammatically as:
A truth table shows, for each combination of inputs, what the output will be. An OR gate is represented in a truth
table as seen below.
A B C This OR gate is represented in Boolean algebra as
0 0 0 one of:
0 1 1 C=(A OR B)
1 0 1 C=(A \/ B)
1 1 1 C=(A+B)
NOT gates
A NOT gate, also called the negation, uses one input to generate one output. A NOT gate inverts the input - the output is 1
(TRUE) if the input is 0 (FALSE), and the output is 0 (FALSE) if the input is 1 (TRUE).
NOT gates are represented diagrammatically as
A Q
This NOT gate is represented in Boolean algebra as one of:
•NOT A
1 0
•¬ A
0 1 •~A
•Ā
Excercise
Logic Circuit
• Logic gates can be combined to form more complex inputs and outputs. These combinations are known as logic circuits.
AND, OR and NOT gates can be used in any combination to generate the desired output.
Combining two AND gates
0 0 1 0 0
1 0 0 0 0
0 1 1 0 0
• Here, the output Q is 1 (TRUE) only if inputs C and D are 1 0 0 0 0 0
(TRUE).
1 1 0 1 0
• D is only 1 (TRUE) if inputs A and B are 1 (TRUE).
1 0 1 0 0
In Boolean algebra, this circuit is represented as one of: 1 1 1 1 1
Q = (A AND B) AND C
Q = (A/\B) /\ C
Q = (A.B).C
AND and NOT Gate
In this example, we could connect a NOT gate to the output of an AND gate.
The output for this can be worked out in stages. It is useful to think about the output of each gate in turn and we can
even add this to our truth table. Here,C is the output from the first part of the logic diagram and B is the final
output.