SlideShare a Scribd company logo
Logic Gates Application
OR
GATE AND
GATE
AND
GATE
NOT
GATE
FINAL
OUTPUT
ON ? OFF ?
IS THE FINAL OUTPUT ON
(TRUE) OR OFF (FALSE) ?
ON
ON
ON
ON
OR
GATE
YES,
Turn
sprinklers
on
High temp = 1
emp = 1
Weather dry = 1
her dry = 1
Daytime = 1
Soil in plants
wet? Yes = 1
Name the logic gates. Test it by answering True or false (Yes or No) for each Input.
AND
GATE
AND
GATE
NOT
GATE
If temp. is high or the weather isdry, and if it’sdaytime and
also the soil in plantsis not wet, the resultwill be True, which
turns the sprinklersON.
YES,
Alert
police
WRITE CONDITIONS IN THE LOGIC BOXES THAT WOULD ALERT YOU TO SOMEONE
BREAKING INTO YOUR HOUSE. YOU CAN CHOOSE THE LOGIC GATES YOU HAVE
LEARNT. NAME THE LOGIC GATES. TEST THE ALARM SYSTEM BY ANSWERING YES OR
NO ( TRUE OR FALSE ).
Motion
Sensor = 1
Door/Window
Sensor = 1
Proximity
Sensor = 1
Override
Switch = 0
OR
GATE AND
GATE
AND
GATE
NOT
GATE
2.
3.
6.
5.
?
ON
ON
?
ON
4.
OFF
?
ON
OFF
?
ON
OFF
OFF
?
ON
OFF
OFF
?
ON
1.
ON
OFF
The output is
ON or OFF ?
OFF
OFF
ON
ON
ON
OFF
ON
ON
ON
ON
OFF
OFF
WHICH LOGIC GATE IS THIS?
AND GATE
AND GATE
NOT GATE
NOT GATE
OR GATE
Two switches are off (0) One switch off (0) and one switch on (1)
Two switches are on (1)
S1 S2 OUTPUT
0 0 1
0 1 0
1 0 0
1 1 1
As we see, when the two switchesare off (0) the output is on (1);
when one switchis off (0) and the other is on (1), the output is off
(0); when the two switchesare on (1), the output is on (1). Based
on this,we can determinethat thisdiagram represents the
XNORlogicgate.
?
8.
9.
10.
ON
ON
ON
?
ON
ON
ON
ON
ON
ON
?
ON
ON
ON
OFF
OFF
ON
OFF
OFF
?
7.
OFF
ON
OFF
OFF
The output is
ON or OFF ?
OFF
OFF
ON
ON
OFF
OFF
ON
ON
ON
ON
ON
ON
Obtain the simplified
Boolean expressions for
output variables F, G, and H
in terms of input
variables in the circuit
shown.
For simplification use
Boolean rules and Karnaugh
maps (SOP or POS as you
wish).
X3 = (A3’B3 + A3B3’)’ = (A3’B3)’ (A3B3’)’ = (A3+B3’) (A3’+B3) = A3A3’+A3B3+A3’B3’+B3B3’ = A3B3+A3’B3’ =
A3+A3’B3’ = A3+B3’
X2 = (A2’B2 + A2B2’)’ = (A2’B2)’ (A2B2’)’ = (A2+B2’) (A2’+B2) = A2A2’+A2B2+A2’B2’+B2B2’ = A2B2+A2’B2’ =
A2+A2’B2’ = A2+B2’
X1 = (A1’B1 + A1B1’)’ = (A1’B1)’ (A1B1’)’ = (A1+B1’) (A1’+B1) = A1A1’+A1B1+A1’B1’+B1B1’ = A1B1+A1’B1’ =
A1+A1’B1’ = A1+B1’
X0 = (A0’B0 + A0B0’)’ = (A0’B0)’ (A0B0’)’ = (A0+B0’) (A0’+B0) = A0A0’+A0B0+A0’B0’+B0B0’ = A0B0+A0’B0’ =
A0+A0’B0’ = A0+B0’
H = X3 * X2 * X1 * X0 = (A3+B3’) (A2+B2’) (A1+B1’) (A0+B0’)
Z3 = X3 (A2’B2) = A2’B2 (A3+B3’)
Z2 = X3 X2 (A1’B1) = A1’B1 (A3+B3’)(A2+B2’)
Z1 = X3 X2 X1 (A0’B0) = A0’B0 (A3+B3’)(A2+B2’)(A1+B1’)
F = A3’B3 + Z3 + Z2 + Z1
F = A3’B3+A2’B2 (A3+B3’)+A1’B1 (A3+B3’)(A2+B2’)+A0’B0 (A3+B3’)(A2+B2’)(A1+B1’)
F = A3’B3+(A2’B2+A3’B3)A3 Factor out A3+B3’ from the first two terms
F = A3’B3+A2’B2A3+A3’B3A3 Distribute A3 through the second term
F = A3’B3+A2’B2A3+A3’B3 Simplify A3’B3A3 to A3’B3 since A3*A3=A3
F = A3’B3+A2’B2A3+ (A1’B1 (A2+B2’)+A0’B0 (A2+B2’)(A1+B1’)) (A3+B3’) Factor out A3+B3’ from the last two terms
F = A3’B3+A2’B2A3+ A1’B1 (A2+B2’)A3 +A0’B0(A2+B2’)(A1+B1’)A3 +A1’B1(A2+B2’)B3’ +A0’B0 (A2+B2’)(A1+B1’)B3’
Distribute A3+B3’ through the last two terms
Y3 = X3 (A2B2’) = A2B2’(A3+B3’)
Y2 = X2 X3 (A1B1’) = A1B1’ (A3+B3’) (A2+B2’)
Y1 = X1 X2 X3 (A0B0’) = A0B0’ (A3+B3’) (A2+B2’) (A1+B1’)
G = A3B3’ + Y3 + Y2 + Y1
G = A3B3’+ A2B2’(A3+B3’)+ A1B1’ (A3+B3’) (A2+B2’)+ A0B0’ (A3+B3’) (A2+B2’) (A1+B1’)
G = A3B3’+ A2B2’A3+ A2B2’B3’+ A1B1’A3A2+ A1B1’B3’A2+ A0B0’A3A2A1+ A0B0’B3’A2A1+ A0B0’A3A2B1’B3’
Distributing
G = A3(B3’+ A2B2’+ A1B1’A2B1’B3’)+ A2(A3+ B3’+ A1B1’B3’+ A0B0’A1B1’B3’) Grouping terms with A3 and A2
G = A3(B3’+ A2B2’+ A1B1’A2B1’B3’)+ A2(A3+ B3’+ A1B1’B3’(1+ A0B0’A1)) Factoring out A1B1’B3’ from the third term
G = A3(B3’+ A2B2’+ A1B1’A2B1’B3’)+ A2(A3+ B3’+ A1B1’B3’) Since 1+ A0B0’A1 = 1, simplify the third term
G = B3’(A3+ A1B1’A2)+ A2(A3+ B3’+ A1B1’B3’)+ A3B2’B1’ Simplify the expression by factoring out common terms
G = B3’(A3+ A1B1’A2)+ A2(A3+ B3’+ A1B1’B3’)+ A3B2’B1’

More Related Content

Similar to Logic Gates and their Applications, exercise

Chapter-3.pptx
Chapter-3.pptxChapter-3.pptx
Chapter-3.pptx
AliaaTarek5
 
Combinational Logic Circuit
Combinational Logic CircuitCombinational Logic Circuit
Combinational Logic Circuit
GargiKhanna1
 
Solucionario_de_Chapra_y_Canale_Quinta_E.pdf
Solucionario_de_Chapra_y_Canale_Quinta_E.pdfSolucionario_de_Chapra_y_Canale_Quinta_E.pdf
Solucionario_de_Chapra_y_Canale_Quinta_E.pdf
JeancarlosPatalasanc
 
Bayesian Inference and Uncertainty Quantification for Inverse Problems
Bayesian Inference and Uncertainty Quantification for Inverse ProblemsBayesian Inference and Uncertainty Quantification for Inverse Problems
Bayesian Inference and Uncertainty Quantification for Inverse Problems
Matt Moores
 
1Boolean Alegebra 3booleanalgebraold-160325120651.pdf
1Boolean Alegebra 3booleanalgebraold-160325120651.pdf1Boolean Alegebra 3booleanalgebraold-160325120651.pdf
1Boolean Alegebra 3booleanalgebraold-160325120651.pdf
siliconvalley6203
 
Lecture Notes: EEEE6490345 RF and Microwave Electronics - Noise In Two-Port ...
Lecture Notes:  EEEE6490345 RF and Microwave Electronics - Noise In Two-Port ...Lecture Notes:  EEEE6490345 RF and Microwave Electronics - Noise In Two-Port ...
Lecture Notes: EEEE6490345 RF and Microwave Electronics - Noise In Two-Port ...
AIMST University
 
Math For Physics
Math For PhysicsMath For Physics
Math For Physics
walt sautter
 
Clase3 Notacion
Clase3 NotacionClase3 Notacion
Clase3 Notacion
luzenith_g
 
5.13.3 Geometric Probability and Changing Dimensions
5.13.3 Geometric Probability and Changing Dimensions5.13.3 Geometric Probability and Changing Dimensions
5.13.3 Geometric Probability and Changing Dimensions
smiller5
 
3,EEng k-map.pdf
3,EEng k-map.pdf3,EEng k-map.pdf
3,EEng k-map.pdf
DamotTesfaye
 
13 Boolean Algebra
13 Boolean Algebra13 Boolean Algebra
13 Boolean Algebra
Praveen M Jigajinni
 
CBSE XII MATHS SAMPLE PAPER BY KENDRIYA VIDYALAYA
CBSE XII MATHS SAMPLE PAPER BY KENDRIYA VIDYALAYA CBSE XII MATHS SAMPLE PAPER BY KENDRIYA VIDYALAYA
CBSE XII MATHS SAMPLE PAPER BY KENDRIYA VIDYALAYA
Gautham Rajesh
 
Calculate_distance_and_bearing_between Latitude_Longitude_Points.docx
Calculate_distance_and_bearing_between Latitude_Longitude_Points.docxCalculate_distance_and_bearing_between Latitude_Longitude_Points.docx
Calculate_distance_and_bearing_between Latitude_Longitude_Points.docx
ssuserd02b23
 
Calculate_distance_and_bearing_between Latitude_Longitude_Points.docx
Calculate_distance_and_bearing_between Latitude_Longitude_Points.docxCalculate_distance_and_bearing_between Latitude_Longitude_Points.docx
Calculate_distance_and_bearing_between Latitude_Longitude_Points.docx
ssuserd02b23
 
Douglas C. Montgomery, Sol_125240.pdf
Douglas C. Montgomery, Sol_125240.pdfDouglas C. Montgomery, Sol_125240.pdf
Douglas C. Montgomery, Sol_125240.pdf
AshutoshKgupta
 
Calculus And Its Applications 10th Edition Bittinger Solutions Manual
Calculus And Its Applications 10th Edition Bittinger Solutions ManualCalculus And Its Applications 10th Edition Bittinger Solutions Manual
Calculus And Its Applications 10th Edition Bittinger Solutions Manual
fujumazaja
 
Basic gates and boolean algebra
Basic gates and boolean algebraBasic gates and boolean algebra
Basic gates and boolean algebra
Sudheesh S Madhav
 
Unit_2_Boolean_algebra_and_Karnaugh_maps.pptx
Unit_2_Boolean_algebra_and_Karnaugh_maps.pptxUnit_2_Boolean_algebra_and_Karnaugh_maps.pptx
Unit_2_Boolean_algebra_and_Karnaugh_maps.pptx
Kartikkalaspurkar1
 
Boolean algebra
Boolean algebraBoolean algebra
Boolean algebra
Manish Kumar
 
B sc3 unit 3 boolean algebra
B sc3 unit 3 boolean algebraB sc3 unit 3 boolean algebra
B sc3 unit 3 boolean algebra
MahiboobAliMulla
 

Similar to Logic Gates and their Applications, exercise (20)

Chapter-3.pptx
Chapter-3.pptxChapter-3.pptx
Chapter-3.pptx
 
Combinational Logic Circuit
Combinational Logic CircuitCombinational Logic Circuit
Combinational Logic Circuit
 
Solucionario_de_Chapra_y_Canale_Quinta_E.pdf
Solucionario_de_Chapra_y_Canale_Quinta_E.pdfSolucionario_de_Chapra_y_Canale_Quinta_E.pdf
Solucionario_de_Chapra_y_Canale_Quinta_E.pdf
 
Bayesian Inference and Uncertainty Quantification for Inverse Problems
Bayesian Inference and Uncertainty Quantification for Inverse ProblemsBayesian Inference and Uncertainty Quantification for Inverse Problems
Bayesian Inference and Uncertainty Quantification for Inverse Problems
 
1Boolean Alegebra 3booleanalgebraold-160325120651.pdf
1Boolean Alegebra 3booleanalgebraold-160325120651.pdf1Boolean Alegebra 3booleanalgebraold-160325120651.pdf
1Boolean Alegebra 3booleanalgebraold-160325120651.pdf
 
Lecture Notes: EEEE6490345 RF and Microwave Electronics - Noise In Two-Port ...
Lecture Notes:  EEEE6490345 RF and Microwave Electronics - Noise In Two-Port ...Lecture Notes:  EEEE6490345 RF and Microwave Electronics - Noise In Two-Port ...
Lecture Notes: EEEE6490345 RF and Microwave Electronics - Noise In Two-Port ...
 
Math For Physics
Math For PhysicsMath For Physics
Math For Physics
 
Clase3 Notacion
Clase3 NotacionClase3 Notacion
Clase3 Notacion
 
5.13.3 Geometric Probability and Changing Dimensions
5.13.3 Geometric Probability and Changing Dimensions5.13.3 Geometric Probability and Changing Dimensions
5.13.3 Geometric Probability and Changing Dimensions
 
3,EEng k-map.pdf
3,EEng k-map.pdf3,EEng k-map.pdf
3,EEng k-map.pdf
 
13 Boolean Algebra
13 Boolean Algebra13 Boolean Algebra
13 Boolean Algebra
 
CBSE XII MATHS SAMPLE PAPER BY KENDRIYA VIDYALAYA
CBSE XII MATHS SAMPLE PAPER BY KENDRIYA VIDYALAYA CBSE XII MATHS SAMPLE PAPER BY KENDRIYA VIDYALAYA
CBSE XII MATHS SAMPLE PAPER BY KENDRIYA VIDYALAYA
 
Calculate_distance_and_bearing_between Latitude_Longitude_Points.docx
Calculate_distance_and_bearing_between Latitude_Longitude_Points.docxCalculate_distance_and_bearing_between Latitude_Longitude_Points.docx
Calculate_distance_and_bearing_between Latitude_Longitude_Points.docx
 
Calculate_distance_and_bearing_between Latitude_Longitude_Points.docx
Calculate_distance_and_bearing_between Latitude_Longitude_Points.docxCalculate_distance_and_bearing_between Latitude_Longitude_Points.docx
Calculate_distance_and_bearing_between Latitude_Longitude_Points.docx
 
Douglas C. Montgomery, Sol_125240.pdf
Douglas C. Montgomery, Sol_125240.pdfDouglas C. Montgomery, Sol_125240.pdf
Douglas C. Montgomery, Sol_125240.pdf
 
Calculus And Its Applications 10th Edition Bittinger Solutions Manual
Calculus And Its Applications 10th Edition Bittinger Solutions ManualCalculus And Its Applications 10th Edition Bittinger Solutions Manual
Calculus And Its Applications 10th Edition Bittinger Solutions Manual
 
Basic gates and boolean algebra
Basic gates and boolean algebraBasic gates and boolean algebra
Basic gates and boolean algebra
 
Unit_2_Boolean_algebra_and_Karnaugh_maps.pptx
Unit_2_Boolean_algebra_and_Karnaugh_maps.pptxUnit_2_Boolean_algebra_and_Karnaugh_maps.pptx
Unit_2_Boolean_algebra_and_Karnaugh_maps.pptx
 
Boolean algebra
Boolean algebraBoolean algebra
Boolean algebra
 
B sc3 unit 3 boolean algebra
B sc3 unit 3 boolean algebraB sc3 unit 3 boolean algebra
B sc3 unit 3 boolean algebra
 

Recently uploaded

bank management system in java and mysql report1.pdf
bank management system in java and mysql report1.pdfbank management system in java and mysql report1.pdf
bank management system in java and mysql report1.pdf
Divyam548318
 
Electric vehicle and photovoltaic advanced roles in enhancing the financial p...
Electric vehicle and photovoltaic advanced roles in enhancing the financial p...Electric vehicle and photovoltaic advanced roles in enhancing the financial p...
Electric vehicle and photovoltaic advanced roles in enhancing the financial p...
IJECEIAES
 
ML Based Model for NIDS MSc Updated Presentation.v2.pptx
ML Based Model for NIDS MSc Updated Presentation.v2.pptxML Based Model for NIDS MSc Updated Presentation.v2.pptx
ML Based Model for NIDS MSc Updated Presentation.v2.pptx
JamalHussainArman
 
Manufacturing Process of molasses based distillery ppt.pptx
Manufacturing Process of molasses based distillery ppt.pptxManufacturing Process of molasses based distillery ppt.pptx
Manufacturing Process of molasses based distillery ppt.pptx
Madan Karki
 
132/33KV substation case study Presentation
132/33KV substation case study Presentation132/33KV substation case study Presentation
132/33KV substation case study Presentation
kandramariana6
 
Advanced control scheme of doubly fed induction generator for wind turbine us...
Advanced control scheme of doubly fed induction generator for wind turbine us...Advanced control scheme of doubly fed induction generator for wind turbine us...
Advanced control scheme of doubly fed induction generator for wind turbine us...
IJECEIAES
 
Harnessing WebAssembly for Real-time Stateless Streaming Pipelines
Harnessing WebAssembly for Real-time Stateless Streaming PipelinesHarnessing WebAssembly for Real-time Stateless Streaming Pipelines
Harnessing WebAssembly for Real-time Stateless Streaming Pipelines
Christina Lin
 
PPT on GRP pipes manufacturing and testing
PPT on GRP pipes manufacturing and testingPPT on GRP pipes manufacturing and testing
PPT on GRP pipes manufacturing and testing
anoopmanoharan2
 
5214-1693458878915-Unit 6 2023 to 2024 academic year assignment (AutoRecovere...
5214-1693458878915-Unit 6 2023 to 2024 academic year assignment (AutoRecovere...5214-1693458878915-Unit 6 2023 to 2024 academic year assignment (AutoRecovere...
5214-1693458878915-Unit 6 2023 to 2024 academic year assignment (AutoRecovere...
ihlasbinance2003
 
Exception Handling notes in java exception
Exception Handling notes in java exceptionException Handling notes in java exception
Exception Handling notes in java exception
Ratnakar Mikkili
 
sieving analysis and results interpretation
sieving analysis and results interpretationsieving analysis and results interpretation
sieving analysis and results interpretation
ssuser36d3051
 
Heat Resistant Concrete Presentation ppt
Heat Resistant Concrete Presentation pptHeat Resistant Concrete Presentation ppt
Heat Resistant Concrete Presentation ppt
mamunhossenbd75
 
Properties Railway Sleepers and Test.pptx
Properties Railway Sleepers and Test.pptxProperties Railway Sleepers and Test.pptx
Properties Railway Sleepers and Test.pptx
MDSABBIROJJAMANPAYEL
 
2. Operations Strategy in a Global Environment.ppt
2. Operations Strategy in a Global Environment.ppt2. Operations Strategy in a Global Environment.ppt
2. Operations Strategy in a Global Environment.ppt
PuktoonEngr
 
Low power architecture of logic gates using adiabatic techniques
Low power architecture of logic gates using adiabatic techniquesLow power architecture of logic gates using adiabatic techniques
Low power architecture of logic gates using adiabatic techniques
nooriasukmaningtyas
 
KuberTENes Birthday Bash Guadalajara - K8sGPT first impressions
KuberTENes Birthday Bash Guadalajara - K8sGPT first impressionsKuberTENes Birthday Bash Guadalajara - K8sGPT first impressions
KuberTENes Birthday Bash Guadalajara - K8sGPT first impressions
Victor Morales
 
spirit beverages ppt without graphics.pptx
spirit beverages ppt without graphics.pptxspirit beverages ppt without graphics.pptx
spirit beverages ppt without graphics.pptx
Madan Karki
 
ACEP Magazine edition 4th launched on 05.06.2024
ACEP Magazine edition 4th launched on 05.06.2024ACEP Magazine edition 4th launched on 05.06.2024
ACEP Magazine edition 4th launched on 05.06.2024
Rahul
 
ACRP 4-09 Risk Assessment Method to Support Modification of Airfield Separat...
ACRP 4-09 Risk Assessment Method to Support Modification of Airfield Separat...ACRP 4-09 Risk Assessment Method to Support Modification of Airfield Separat...
ACRP 4-09 Risk Assessment Method to Support Modification of Airfield Separat...
Mukeshwaran Balu
 
[JPP-1] - (JEE 3.0) - Kinematics 1D - 14th May..pdf
[JPP-1] - (JEE 3.0) - Kinematics 1D - 14th May..pdf[JPP-1] - (JEE 3.0) - Kinematics 1D - 14th May..pdf
[JPP-1] - (JEE 3.0) - Kinematics 1D - 14th May..pdf
awadeshbabu
 

Recently uploaded (20)

bank management system in java and mysql report1.pdf
bank management system in java and mysql report1.pdfbank management system in java and mysql report1.pdf
bank management system in java and mysql report1.pdf
 
Electric vehicle and photovoltaic advanced roles in enhancing the financial p...
Electric vehicle and photovoltaic advanced roles in enhancing the financial p...Electric vehicle and photovoltaic advanced roles in enhancing the financial p...
Electric vehicle and photovoltaic advanced roles in enhancing the financial p...
 
ML Based Model for NIDS MSc Updated Presentation.v2.pptx
ML Based Model for NIDS MSc Updated Presentation.v2.pptxML Based Model for NIDS MSc Updated Presentation.v2.pptx
ML Based Model for NIDS MSc Updated Presentation.v2.pptx
 
Manufacturing Process of molasses based distillery ppt.pptx
Manufacturing Process of molasses based distillery ppt.pptxManufacturing Process of molasses based distillery ppt.pptx
Manufacturing Process of molasses based distillery ppt.pptx
 
132/33KV substation case study Presentation
132/33KV substation case study Presentation132/33KV substation case study Presentation
132/33KV substation case study Presentation
 
Advanced control scheme of doubly fed induction generator for wind turbine us...
Advanced control scheme of doubly fed induction generator for wind turbine us...Advanced control scheme of doubly fed induction generator for wind turbine us...
Advanced control scheme of doubly fed induction generator for wind turbine us...
 
Harnessing WebAssembly for Real-time Stateless Streaming Pipelines
Harnessing WebAssembly for Real-time Stateless Streaming PipelinesHarnessing WebAssembly for Real-time Stateless Streaming Pipelines
Harnessing WebAssembly for Real-time Stateless Streaming Pipelines
 
PPT on GRP pipes manufacturing and testing
PPT on GRP pipes manufacturing and testingPPT on GRP pipes manufacturing and testing
PPT on GRP pipes manufacturing and testing
 
5214-1693458878915-Unit 6 2023 to 2024 academic year assignment (AutoRecovere...
5214-1693458878915-Unit 6 2023 to 2024 academic year assignment (AutoRecovere...5214-1693458878915-Unit 6 2023 to 2024 academic year assignment (AutoRecovere...
5214-1693458878915-Unit 6 2023 to 2024 academic year assignment (AutoRecovere...
 
Exception Handling notes in java exception
Exception Handling notes in java exceptionException Handling notes in java exception
Exception Handling notes in java exception
 
sieving analysis and results interpretation
sieving analysis and results interpretationsieving analysis and results interpretation
sieving analysis and results interpretation
 
Heat Resistant Concrete Presentation ppt
Heat Resistant Concrete Presentation pptHeat Resistant Concrete Presentation ppt
Heat Resistant Concrete Presentation ppt
 
Properties Railway Sleepers and Test.pptx
Properties Railway Sleepers and Test.pptxProperties Railway Sleepers and Test.pptx
Properties Railway Sleepers and Test.pptx
 
2. Operations Strategy in a Global Environment.ppt
2. Operations Strategy in a Global Environment.ppt2. Operations Strategy in a Global Environment.ppt
2. Operations Strategy in a Global Environment.ppt
 
Low power architecture of logic gates using adiabatic techniques
Low power architecture of logic gates using adiabatic techniquesLow power architecture of logic gates using adiabatic techniques
Low power architecture of logic gates using adiabatic techniques
 
KuberTENes Birthday Bash Guadalajara - K8sGPT first impressions
KuberTENes Birthday Bash Guadalajara - K8sGPT first impressionsKuberTENes Birthday Bash Guadalajara - K8sGPT first impressions
KuberTENes Birthday Bash Guadalajara - K8sGPT first impressions
 
spirit beverages ppt without graphics.pptx
spirit beverages ppt without graphics.pptxspirit beverages ppt without graphics.pptx
spirit beverages ppt without graphics.pptx
 
ACEP Magazine edition 4th launched on 05.06.2024
ACEP Magazine edition 4th launched on 05.06.2024ACEP Magazine edition 4th launched on 05.06.2024
ACEP Magazine edition 4th launched on 05.06.2024
 
ACRP 4-09 Risk Assessment Method to Support Modification of Airfield Separat...
ACRP 4-09 Risk Assessment Method to Support Modification of Airfield Separat...ACRP 4-09 Risk Assessment Method to Support Modification of Airfield Separat...
ACRP 4-09 Risk Assessment Method to Support Modification of Airfield Separat...
 
[JPP-1] - (JEE 3.0) - Kinematics 1D - 14th May..pdf
[JPP-1] - (JEE 3.0) - Kinematics 1D - 14th May..pdf[JPP-1] - (JEE 3.0) - Kinematics 1D - 14th May..pdf
[JPP-1] - (JEE 3.0) - Kinematics 1D - 14th May..pdf
 

Logic Gates and their Applications, exercise

  • 2. OR GATE AND GATE AND GATE NOT GATE FINAL OUTPUT ON ? OFF ? IS THE FINAL OUTPUT ON (TRUE) OR OFF (FALSE) ? ON ON ON ON
  • 3. OR GATE YES, Turn sprinklers on High temp = 1 emp = 1 Weather dry = 1 her dry = 1 Daytime = 1 Soil in plants wet? Yes = 1 Name the logic gates. Test it by answering True or false (Yes or No) for each Input. AND GATE AND GATE NOT GATE If temp. is high or the weather isdry, and if it’sdaytime and also the soil in plantsis not wet, the resultwill be True, which turns the sprinklersON.
  • 4. YES, Alert police WRITE CONDITIONS IN THE LOGIC BOXES THAT WOULD ALERT YOU TO SOMEONE BREAKING INTO YOUR HOUSE. YOU CAN CHOOSE THE LOGIC GATES YOU HAVE LEARNT. NAME THE LOGIC GATES. TEST THE ALARM SYSTEM BY ANSWERING YES OR NO ( TRUE OR FALSE ). Motion Sensor = 1 Door/Window Sensor = 1 Proximity Sensor = 1 Override Switch = 0 OR GATE AND GATE AND GATE NOT GATE
  • 6. WHICH LOGIC GATE IS THIS? AND GATE AND GATE NOT GATE NOT GATE OR GATE
  • 7. Two switches are off (0) One switch off (0) and one switch on (1) Two switches are on (1) S1 S2 OUTPUT 0 0 1 0 1 0 1 0 0 1 1 1 As we see, when the two switchesare off (0) the output is on (1); when one switchis off (0) and the other is on (1), the output is off (0); when the two switchesare on (1), the output is on (1). Based on this,we can determinethat thisdiagram represents the XNORlogicgate.
  • 9. Obtain the simplified Boolean expressions for output variables F, G, and H in terms of input variables in the circuit shown. For simplification use Boolean rules and Karnaugh maps (SOP or POS as you wish).
  • 10. X3 = (A3’B3 + A3B3’)’ = (A3’B3)’ (A3B3’)’ = (A3+B3’) (A3’+B3) = A3A3’+A3B3+A3’B3’+B3B3’ = A3B3+A3’B3’ = A3+A3’B3’ = A3+B3’ X2 = (A2’B2 + A2B2’)’ = (A2’B2)’ (A2B2’)’ = (A2+B2’) (A2’+B2) = A2A2’+A2B2+A2’B2’+B2B2’ = A2B2+A2’B2’ = A2+A2’B2’ = A2+B2’ X1 = (A1’B1 + A1B1’)’ = (A1’B1)’ (A1B1’)’ = (A1+B1’) (A1’+B1) = A1A1’+A1B1+A1’B1’+B1B1’ = A1B1+A1’B1’ = A1+A1’B1’ = A1+B1’ X0 = (A0’B0 + A0B0’)’ = (A0’B0)’ (A0B0’)’ = (A0+B0’) (A0’+B0) = A0A0’+A0B0+A0’B0’+B0B0’ = A0B0+A0’B0’ = A0+A0’B0’ = A0+B0’ H = X3 * X2 * X1 * X0 = (A3+B3’) (A2+B2’) (A1+B1’) (A0+B0’) Z3 = X3 (A2’B2) = A2’B2 (A3+B3’) Z2 = X3 X2 (A1’B1) = A1’B1 (A3+B3’)(A2+B2’) Z1 = X3 X2 X1 (A0’B0) = A0’B0 (A3+B3’)(A2+B2’)(A1+B1’) F = A3’B3 + Z3 + Z2 + Z1 F = A3’B3+A2’B2 (A3+B3’)+A1’B1 (A3+B3’)(A2+B2’)+A0’B0 (A3+B3’)(A2+B2’)(A1+B1’) F = A3’B3+(A2’B2+A3’B3)A3 Factor out A3+B3’ from the first two terms F = A3’B3+A2’B2A3+A3’B3A3 Distribute A3 through the second term F = A3’B3+A2’B2A3+A3’B3 Simplify A3’B3A3 to A3’B3 since A3*A3=A3 F = A3’B3+A2’B2A3+ (A1’B1 (A2+B2’)+A0’B0 (A2+B2’)(A1+B1’)) (A3+B3’) Factor out A3+B3’ from the last two terms F = A3’B3+A2’B2A3+ A1’B1 (A2+B2’)A3 +A0’B0(A2+B2’)(A1+B1’)A3 +A1’B1(A2+B2’)B3’ +A0’B0 (A2+B2’)(A1+B1’)B3’ Distribute A3+B3’ through the last two terms
  • 11. Y3 = X3 (A2B2’) = A2B2’(A3+B3’) Y2 = X2 X3 (A1B1’) = A1B1’ (A3+B3’) (A2+B2’) Y1 = X1 X2 X3 (A0B0’) = A0B0’ (A3+B3’) (A2+B2’) (A1+B1’) G = A3B3’ + Y3 + Y2 + Y1 G = A3B3’+ A2B2’(A3+B3’)+ A1B1’ (A3+B3’) (A2+B2’)+ A0B0’ (A3+B3’) (A2+B2’) (A1+B1’) G = A3B3’+ A2B2’A3+ A2B2’B3’+ A1B1’A3A2+ A1B1’B3’A2+ A0B0’A3A2A1+ A0B0’B3’A2A1+ A0B0’A3A2B1’B3’ Distributing G = A3(B3’+ A2B2’+ A1B1’A2B1’B3’)+ A2(A3+ B3’+ A1B1’B3’+ A0B0’A1B1’B3’) Grouping terms with A3 and A2 G = A3(B3’+ A2B2’+ A1B1’A2B1’B3’)+ A2(A3+ B3’+ A1B1’B3’(1+ A0B0’A1)) Factoring out A1B1’B3’ from the third term G = A3(B3’+ A2B2’+ A1B1’A2B1’B3’)+ A2(A3+ B3’+ A1B1’B3’) Since 1+ A0B0’A1 = 1, simplify the third term G = B3’(A3+ A1B1’A2)+ A2(A3+ B3’+ A1B1’B3’)+ A3B2’B1’ Simplify the expression by factoring out common terms G = B3’(A3+ A1B1’A2)+ A2(A3+ B3’+ A1B1’B3’)+ A3B2’B1’