Logic Gates: IGCSE ® Computer Science © Hodder & Stoughton 2015
Logic Gates: IGCSE ® Computer Science © Hodder & Stoughton 2015
Logic Gates: IGCSE ® Computer Science © Hodder & Stoughton 2015
Logic Gates
0 0 0
0 0 0
0 1 0
0 1 0
1 0 0
1 0 0
1 1 1
1 1 1
0 0 0 0 1
0 0 1 0 0
0 1 0 0 0
0 1 1 0 0
1 0 0 0 1
1 0 1 0 0
1 1 0 1 0
1 1 1 1 0
0 1 1
0 0 0
0 0 0
0 0 0
0 1 1
0 0 0
1 0 1
1 0 1
1 0 1
0 1 1
0 0 0
0 1 1
1 0 1
0 1 1
1 0 1
1 1 0
Shutdown conditions:
▪ S <= 1000 rpm and T > 80°C
▪ S > 1000 rpm and W > 120 kph
IGCSE ® Computer Science © Hodder & Stoughton 2015 ▪ T <= 80°C and W > 120 kph
A wind turbine safety system monitors:
Designing a logic circuit
▪ the speed of the turbine
▪ the temperature of the bearing
▪ the velocity of the wind.
Description Parameter Value Condition
Turbine 0 <= 1000 rpm
S
speed 1 > 1000 rpm
Bearing 0 <= 80°C
T
temperature 1 > 80°C
Wind 0 <= 120 kph
W
velocity 1 > 120 kph
Shutdown conditions:
▪ S <= 1000 rpm and T > 80°C
▪ S > 1000 rpm and W > 120 kph
IGCSE ® Computer Science © Hodder & Stoughton 2015 ▪ T <= 80°C and W > 120 kph
Designing a logic circuit: Stages
Shutdown conditions:
▪ S <= 1000 rpm and T > 80°C S=0 AND T=1
▪ S > 1000 rpm and W > 120 kph
▪ T <= 80°C and W > 120 kph
Shutdown conditions:
▪ S <= 1000 rpm and T > 80°C S=0 AND T=1
▪ S > 1000 rpm and W > 120 kph S=1 AND W=1
▪ T <= 80°C and W > 120 kph T=0 AND W=1
Logic statements:
Logic statements:
Logic statements:
INPUTS OUTPUT
▪ S=0 AND T=1 S NOT S T A
▪ S=1 AND W=1 0 1 0 0
0 1 1 1
▪ T=0 AND W=1 1 0 0 0
1 0 1 0
Logic statements:
INPUTS OUTPUTS
▪ S=0 AND T=1 S T W A B
▪ S=1 AND W=1 0 0 0 0 0
0 1 0 1 0
▪ T=0 AND W=1 1 0 0 0 0
1 1 0 0 0
0 0 1 0 0
0 1 1 1 0
1 0 1 0 1
1 1 1 0 1
Logic statements:
INPUTS OUTPUTS
▪ S=0 AND T=1 S T NOT T W A B C
▪ S=1 AND W=1 0 0 1 0 0 0 0
0 1 0 0 1 0 0
▪ T=0 AND W=1 1 0 1 0 0 0 0
1 1 0 0 0 0 0
0 0 1 1 0 0 1
0 1 0 1 1 0 0
1 0 1 1 0 1 1
1 1 0 1 0 1 0
Logic statements:
INPUTS OUTPUTS
▪ S=0 AND T=1 S T W A B C D X
▪ S=1 AND W=1 0 0 0 0 0 0 0 0
0 1 0 1 0 0 1 1
▪ T=0 AND W=1 1 0 0 0 0 0 0 0
1 1 0 0 0 0 0 0
0 0 1 0 0 1 0 1
0 1 1 1 0 0 1 1
1 0 1 0 1 1 1 1
1 1 1 0 1 0 1 1