Chapter 10 - Logic Gate
Chapter 10 - Logic Gate
Chapter 10 - Logic Gate
a b A B X
c A B X
A B X
0 0 0 0 0 1 0 0 0
0 1 1 0 1 1 0 1 1
1 0 1 1 0 1 1 0 1
1 1 1 1 1 0 1 1 0
...............................................
............................................... D:\Education\CAMBRIDGE_IGCSE_Computer ...............................................
Science\IGCSE
A
B
A B C Working area X
0 0 0
0 0 1
0 1 0
0 1 1
1 0 0
1 0 1
1 1 0
1 1 1
Cambridge IGCSE and O Level Computer Science Algorithms, Programming and Logic Workbook Samsul Arefin Shamim 63
10 Boolean logic
............................................................................................................................. ..............................................
............................................................................................................................. ..............................................
A B Working area X
0 0
0 1
1 0
1 1
............................................................................................................................. ....................................................
Samsul Arefin Shamim Cambridge IGCSE and O Level Computer Science Algorithms, Programming and Logic Workbook
64
10 Boolean logic
A B C Working area X
0 0 0
0 0 1
0 1 0
0 1 1
1 0 0
1 0 1
1 1 0
1 1 1
............................................................................................................................. ....................................................
.................................................................................................................................................................................
B X
A B C Working area X
0 0 0
0 0 1
0 1 0
0 1 1
1 0 0
1 0 1
1 1 0
1 1 1
Cambridge IGCSE and O Level Computer Science Algorithms, Programming and Logic Workbook Photocopying prohibited
65
10 Boolean logic
............................................................................................................................. ..............................................
7 a Write down the logic expression to represent the following logic circuit:
A
B X
............................................................................................................................. ..............................................
............................................................................................................................. ..............................................
............................................................................................................................. ..............................................
...........................................................................................................................................................................
............................................................................................................................. ..............................................
b Draw the logic circuit which corresponds to the following truth table:
A B C X
0 0 0 1
0 0 1 0
0 1 0 1
0 1 1 1
1 0 0 1
1 0 1 0
1 1 0 1
1 1 1 1
B X
Samsul Arefin Shamim Cambridge IGCSE and O Level Computer Science Algorithms, Programming and Logic Workbook
66
10 Boolean logic
8 A chemical process is monitored using a logic circuit. There are three inputs to the logic circuit
representing the parameters being monitored in the chemical process. An alarm, X, will give an
output value of 1 depending on certain conditions.
............................................................................................................................. ..............................................
...........................................................................................................................................................................
............................................................................................................................. ..............................................
...........................................................................................................................................................................
............................................................................................................................. ..............................................
A X
Cambridge IGCSE and O Level Computer Science Algorithms, Programming and Logic Workbook Photocopying prohibited
67
10 Boolean logic
T A P Working area X
0 0 0
0 0 1
0 1 0
0 1 1
1 0 0
1 0 1
1 1 0
1 1 1
9 A safety system uses the input from three sensors A, B and C. The binary values from these sensors
form the input to a logic circuit.
Sensor A
Sensor B Logic circuit 'X' Output, X, from logic circuit
Sensor C
B X
Samsul Arefin Shamim Cambridge IGCSE and O Level Computer Science Algorithms, Programming and Logic Workbook
68
10 Boolean logic
A B C Working area X
0 0 0
0 0 1
0 1 0
0 1 1
1 0 0
1 0 1
1 1 0
1 1 1
c For safety reasons, the sensors feed into three different logic circuits (numbered 1, 2 and 3)
which produce the outputs X, Y and Z. These three outputs then form the inputs to another
logic circuit which has the output Q.
The three logic circuits are connected to this extra logic circuit:
Logic Output X
circuit 1
inputs
from
the Output Y
Logic
three
circuit 2 Q
sensors
A, B
and C
Logic Output Z
circuit 3
X Y Z Working area Q
0 0 0
0 0 1
0 1 0
0 1 1
1 0 0
1 0 1
1 1 0
1 1 1
Cambridge IGCSE and O Level Computer Science Algorithms, Programming and Logic Workbook Photocopying prohibited
69
10 Boolean logic
B X
A B C Working area X
0 0 0
0 0 1
0 1 0
0 1 1
1 0 0
1 0 1
1 1 0
1 1 1
A B X
0 0 1
0 1 0
1 0 0
1 1 1
Samsul Arefin Shamim Cambridge IGCSE and O Level Computer Science Algorithms, Programming and Logic Workbook
70
10 Boolean logic
12 a Draw a logic circuit for this logic expression. Each logic gate must have a maximum of
two inputs and the expression must not be simplified:
A B C Working area X
0 0 0
0 0 1
0 1 0
0 1 1
1 0 0
1 0 1
1 1 0
1 1 1