LG 6
LG 6
Logic gates are used in many electronic devices, from computers to communication systems. These
devices perform operations by passing data through logic gates which operate as electronic switches
and react in one of the two ways of the binary code (0 or 1) to the data put into them.
A logic gate is an elementary building block of a digital circuit. Most logic gates have two inputs and
one output. The input and the output signals of a gate can be in one of the two binary conditions:
low (0 or “off”) or high (1 or “on”). The value of the output depends on the values of its inputs.
Logic gates allow an electronic system to make a decision based on a number on its inputs. They are
digital electronic devices.
Logic gates use the principles of a mathematical system known as Boolean algebra. As well as a
standard Boolean expression, the input and output information of any logic gate or circuit can be
schemed into a standard table to give a visual representation of the switching function of the system.
The table used to represent the Boolean expression of a logic gate function is commonly called a Truth
Table. A logic gate truth table shows each possible input combination to the gate or circuit with the
resultant output depending upon the combination of these input(s).
An AND gate is a circuit with two inputs and an output which is set to one only if both the inputs are
1. This means that it will give a high output only if all of the inputs are high. For example, in a simple
lighting circuit with two switches in series the lamp will light only if both switches are pressed.
OR gates
An OR gate will give a high output if any of the inputs is high. For example, in a simple lighting
circuit with two switches in parallel the lamp will light if either switch is pressed. The relationship
between the inputs and the output can be captured in a truth table. A and B represent the inputs
and Q is the output.
Truth table for an OR gate
A B Q
0 0 0
0 1 1
1 0 1
1 1 1
Read as A OR B gives Q.
The following Truth Table compares the logical functions of the main 2-input logic gates.
0 0 0 1 0 1 0 1
0 1 0 1 1 0 1 0
1 0 0 1 1 0 1 0
1 1 1 0 1 0 0 1
ACTIVITIES
2. Complete the following chart with the missing words and figures. Input 1 Input 2 Output
0 0
In the OR gate the output is “1” if either or ………………1 of the inputs 0 1
are “1”. If both inputs are “………………”2 , then the output is “0”. 1 1
1 1