Grade 10 Notes Printed - 05 - 2010 - Logic Gates
Grade 10 Notes Printed - 05 - 2010 - Logic Gates
Grade 10 Notes Printed - 05 - 2010 - Logic Gates
Many electronic circuits operate using binary logic gates. Logic gates basically process
signals which represent true or false or the equivalent i.e. ON or OFF, 1 or 0
Whilst there are a number of logic gates, only the six simplest are covered in this booklet:
AND gate, OR gate, NOT gate, NAND gate, NOR gate and XNOR gate.
The following notes describe the function of all six gates, how to produce truth tables, how
to design networks using logic gates, and how to determine the output from a logic
network.
The six main logic gates
The most common symbols used to represent logic gates are shown below. To avoid
confusion the graphical representations will be used in exam questions but candidates may
use either set of symbols when answering questions.
Truth tables are used to show logic gate functions (refer to next section). The NOT gate has
only one input (and one output) but the other four gates have two inputs (but still only one
output).
Input A Output X
1. NOT GATE 1 0
0 1
A X
The output (called X) is true (i.e. 1 or ON) when the INPUT A is NOT TRUE (i.e. 0 or OFF).
The output (called X) is true (i.e. 1 or ON) if the (INPUT A OR INPUT B) are true (i.e. 1 or ON).
In the above case first write the output at each gate and finally find when X is on.
Give names to the gates as P, Q and R
This makes it easy to find the output using the truth table.
P = A OR B
Q = A AND B
R = NOT P
X = R OR Q
Use the formula 2n to know the total number of combinations of 0s and 1s.
2 represents the two binary values 0 and 1.
n is the number of devices / sensors / inputs (A, B, C….). In this case n=2.
So 22 = 4.
A B P = A OR B Q = A AND B R = NOT P X = Q OR R
1 1 1 1 0 1
1 0 1 0 0 0
0 1 1 0 0 0
0 0 0 0 1 1
That is the method of drawing a truth table when a logic diagram with various gates is given.
Note: If the logic diagram consists of three devices A, B and C then the combinations would
be 23 = 8
A B C
1 1 1
1 1 0
1 0 1
1 0 0
0 1 1
0 1 0
0 0 1
0 0 0
Example:
A power station has a safety system based on three inputs to a logic network. A warning
signal (S = 1) is produced when certain conditions occur based on these 3 inputs:
STEP 2: Draw the truth table STEP 3: Draw the Logic Diagram
No need for intermediate gates;
Just read the statement and fill values.
T W P S
1 1 1 0 NOT
T
1 1 0 0
1 0 1 1 AND S
1 0 0 1 W NOT OR
0 1 1 1 AND
OR
0 1 0 0
0 P
0 0 1
0 0 0 1