SlideShare a Scribd company logo
1 of 15
Logic functions
By
Md. Fazle Rabbi
16CSE057
4.2
Logic functions
• Variables with only two values are called
Logic variables or Switching variables
• We defined several Boolean/Logic operators
• A large variety of situations and problems
can be described using logic variables and
logic operators.
• The description is done through logic
functions
4.3
Properties of logic functions
• If F1(A1, A2, ... An ) is a logic function, then (F1(A1,A2,
... A n))/ is also a Boolean function.
• If F1 and F2 are two logic functions, then F1+F2 and
F1.F2 are also Boolean functions.
• Any function that is generated by the finite application
of the above two rules is also logic function
There are a total of 2 distinct logic functions of n
variables
4.4
Terms to get familiarized
• Literal: not-complemented or complemented version
of a variable (A and A/ are literals)
• Product term: A series of literals related to one
another through an AND operator.
Ex: A.B/.D, A.B.D/.E, etc.
• Sum term: A series of literals related to one another
through an OR operator.
Ex: A+B/+D, A+B+D/+E, etc.
4.5
Truth Table
• It is a tabular representation of a logic
function.
• It gives the value of the function for all
possible combinations of the values of the
variables
• For each combination, the function takes
either 1 or 0
4.6
Simpler Truth Table
F = A.B.C.D/.E/ + A.B/.C.D/.E + A/.B/.C.D.E + A.B/.C/.D.E
4.7
English Sentences Logic Functions
Anil freaks out with his friends if it is Saturday and he
completed his assignments
• F = 1 if Anil freaks out with his friends; otherwise F = 0
• A = 1 if it is Saturday; otherwise A = 0
• B = 1 if he completed his assignments; otherwise B = 0
• F is asserted if A is asserted and B is asserted.
The sentence, therefore, can be translated into a logic
equation as
F = A.B
4.8
Minterms
• A logic function has product terms.
• Product terms that consist of all the variables of
a function are called "canonical product terms",
"fundamental product terms" or "minterms".
4.9
Maxterms
• Sum terms which contain all the variables
of a Boolean function are called "canonical
sum terms", "fundamental sum terms" or
"maxterms".
• (A+B/+C) is an example of a maxterm in a
three variable logic function
4.10
Minterms and Maxterms of 3 variables
4.11
Logic function as a sum of minterms
Consider a function of three variables
F = m0 + m3 + m5 + m6
This is equivalent to
F = A/B/C/ + A/BC + A/BC/ + ABC/
A logic function that is expressed as an OR of several
product terms is considered to be in "sum-of-
products" or SOP form.
4.12
Logic function as a product of Maxterms
F is a function of three variables
F = M0 . M3 . M5 . M6
When F expressed as an AND of several sum
terms, it is considered to be in "product-of-sums"
or POS form.
4.13
Canonical form
If all the terms in an expression or function are
canonical in nature, then it is considered to be
in canonical form.
• minterms in the case of SOP form
• maxterms in the case of POS form
4.14
Canonical form
Consider the function
F = A.B + A.B/.C + A/.B.C
It is not in canonical form
It can be converted into canonical form:
A.B = A.B.1
= A.B.(C + C/)
= A.B.C + A.B.C/
The canonical version of F
F = A.B.C + A.B.C/+ A.B/.C + A/.B.C
4.15
Priorities in a logical expression
• NOT ( / ) operation has the highest priority,
• AND (.) has the next priority
• OR (+) has the last priority

More Related Content

What's hot

Semantic Analysis of a C Program
Semantic Analysis of a C ProgramSemantic Analysis of a C Program
Semantic Analysis of a C ProgramDebarati Das
 
Top interview questions in c
Top interview questions in cTop interview questions in c
Top interview questions in cAvinash Seth
 
A26-2 Polynomials
A26-2 PolynomialsA26-2 Polynomials
A26-2 Polynomialsvhiggins1
 
A26-2 Polynomials
A26-2 PolynomialsA26-2 Polynomials
A26-2 Polynomialsvhiggins1
 
4 lexical and syntax
4 lexical and syntax4 lexical and syntax
4 lexical and syntaxMunawar Ahmed
 
role of lexical anaysis
role of lexical anaysisrole of lexical anaysis
role of lexical anaysisSudhaa Ravi
 
Structure of the compiler
Structure of the compilerStructure of the compiler
Structure of the compilerSudhaa Ravi
 
Bca1020 programming in c
Bca1020  programming in cBca1020  programming in c
Bca1020 programming in csmumbahelp
 
Principles of compiler design
Principles of compiler designPrinciples of compiler design
Principles of compiler designJanani Parthiban
 
9781439035665 ppt ch03
9781439035665 ppt ch039781439035665 ppt ch03
9781439035665 ppt ch03Terry Yoast
 
Semantics analysis
Semantics analysisSemantics analysis
Semantics analysisBilalzafar22
 
Cd ch2 - lexical analysis
Cd   ch2 - lexical analysisCd   ch2 - lexical analysis
Cd ch2 - lexical analysismengistu23
 
Overview of Language Processor : Fundamentals of LP , Symbol Table , Data Str...
Overview of Language Processor : Fundamentals of LP , Symbol Table , Data Str...Overview of Language Processor : Fundamentals of LP , Symbol Table , Data Str...
Overview of Language Processor : Fundamentals of LP , Symbol Table , Data Str...Bhavin Darji
 

What's hot (20)

Semantic Analysis of a C Program
Semantic Analysis of a C ProgramSemantic Analysis of a C Program
Semantic Analysis of a C Program
 
Top interview questions in c
Top interview questions in cTop interview questions in c
Top interview questions in c
 
A26-2 Polynomials
A26-2 PolynomialsA26-2 Polynomials
A26-2 Polynomials
 
A26-2 Polynomials
A26-2 PolynomialsA26-2 Polynomials
A26-2 Polynomials
 
Equivalence of pda, cfg1
Equivalence of pda, cfg1Equivalence of pda, cfg1
Equivalence of pda, cfg1
 
4 lexical and syntax
4 lexical and syntax4 lexical and syntax
4 lexical and syntax
 
Context free grammars
Context free grammarsContext free grammars
Context free grammars
 
role of lexical anaysis
role of lexical anaysisrole of lexical anaysis
role of lexical anaysis
 
C# chap 4
C# chap 4C# chap 4
C# chap 4
 
Lexical analyzer
Lexical analyzerLexical analyzer
Lexical analyzer
 
Structure of the compiler
Structure of the compilerStructure of the compiler
Structure of the compiler
 
Bca1020 programming in c
Bca1020  programming in cBca1020  programming in c
Bca1020 programming in c
 
9. control statement
9. control statement9. control statement
9. control statement
 
3 describing syntax
3 describing syntax3 describing syntax
3 describing syntax
 
Principles of compiler design
Principles of compiler designPrinciples of compiler design
Principles of compiler design
 
9781439035665 ppt ch03
9781439035665 ppt ch039781439035665 ppt ch03
9781439035665 ppt ch03
 
6. describing syntax and semantics
6. describing syntax and semantics6. describing syntax and semantics
6. describing syntax and semantics
 
Semantics analysis
Semantics analysisSemantics analysis
Semantics analysis
 
Cd ch2 - lexical analysis
Cd   ch2 - lexical analysisCd   ch2 - lexical analysis
Cd ch2 - lexical analysis
 
Overview of Language Processor : Fundamentals of LP , Symbol Table , Data Str...
Overview of Language Processor : Fundamentals of LP , Symbol Table , Data Str...Overview of Language Processor : Fundamentals of LP , Symbol Table , Data Str...
Overview of Language Processor : Fundamentals of LP , Symbol Table , Data Str...
 

Similar to 4.logic functions

4.5 continuous functions and differentiable functions
4.5 continuous functions and differentiable functions4.5 continuous functions and differentiable functions
4.5 continuous functions and differentiable functionsmath265
 
I semester-SOP-POS expressions.pptx
I semester-SOP-POS expressions.pptxI semester-SOP-POS expressions.pptx
I semester-SOP-POS expressions.pptxKalai Selvi
 
Applications of boolean algebra minterm and maxterm expansions
Applications of boolean algebra minterm and maxterm expansionsApplications of boolean algebra minterm and maxterm expansions
Applications of boolean algebra minterm and maxterm expansionskanyuma jitjumnong
 

Similar to 4.logic functions (7)

4.5 continuous functions and differentiable functions
4.5 continuous functions and differentiable functions4.5 continuous functions and differentiable functions
4.5 continuous functions and differentiable functions
 
Function
FunctionFunction
Function
 
I semester-SOP-POS expressions.pptx
I semester-SOP-POS expressions.pptxI semester-SOP-POS expressions.pptx
I semester-SOP-POS expressions.pptx
 
Applications of boolean algebra minterm and maxterm expansions
Applications of boolean algebra minterm and maxterm expansionsApplications of boolean algebra minterm and maxterm expansions
Applications of boolean algebra minterm and maxterm expansions
 
c-functions.ppt
c-functions.pptc-functions.ppt
c-functions.ppt
 
c-functions.ppt
c-functions.pptc-functions.ppt
c-functions.ppt
 
c-functions.ppt
c-functions.pptc-functions.ppt
c-functions.ppt
 

More from MdFazleRabbi18

5.programmable interval timer 8253
5.programmable interval timer 82535.programmable interval timer 8253
5.programmable interval timer 8253MdFazleRabbi18
 
4.programmable dma controller 8257
4.programmable dma controller 82574.programmable dma controller 8257
4.programmable dma controller 8257MdFazleRabbi18
 
3.programmable interrupt controller 8259
3.programmable interrupt controller 82593.programmable interrupt controller 8259
3.programmable interrupt controller 8259MdFazleRabbi18
 
Topic4 data encryption standard(des)
Topic4 data encryption standard(des)Topic4 data encryption standard(des)
Topic4 data encryption standard(des)MdFazleRabbi18
 
Topic2 caser hill_cripto
Topic2 caser hill_criptoTopic2 caser hill_cripto
Topic2 caser hill_criptoMdFazleRabbi18
 
Topic5 advanced encryption standard (aes)
Topic5 advanced encryption standard (aes)Topic5 advanced encryption standard (aes)
Topic5 advanced encryption standard (aes)MdFazleRabbi18
 
Topic1 substitution transposition-techniques
Topic1 substitution transposition-techniquesTopic1 substitution transposition-techniques
Topic1 substitution transposition-techniquesMdFazleRabbi18
 
9. hofman coding in DIP
9. hofman coding in DIP9. hofman coding in DIP
9. hofman coding in DIPMdFazleRabbi18
 
7. image enhancement using spatial filtering
7. image enhancement using spatial filtering7. image enhancement using spatial filtering
7. image enhancement using spatial filteringMdFazleRabbi18
 
5. gray level transformation
5. gray level transformation5. gray level transformation
5. gray level transformationMdFazleRabbi18
 
1. steps in image processing
1. steps in image processing1. steps in image processing
1. steps in image processingMdFazleRabbi18
 
5. convolution and correlation of discrete time signals
5. convolution and correlation of discrete time signals 5. convolution and correlation of discrete time signals
5. convolution and correlation of discrete time signals MdFazleRabbi18
 
4. operations of signals
4. operations of signals 4. operations of signals
4. operations of signals MdFazleRabbi18
 
2. classification of signals
2. classification of signals 2. classification of signals
2. classification of signals MdFazleRabbi18
 
1. elementary signals
1. elementary signals 1. elementary signals
1. elementary signals MdFazleRabbi18
 
4. random number and it's generating techniques
4. random number and it's generating techniques 4. random number and it's generating techniques
4. random number and it's generating techniques MdFazleRabbi18
 

More from MdFazleRabbi18 (20)

5.programmable interval timer 8253
5.programmable interval timer 82535.programmable interval timer 8253
5.programmable interval timer 8253
 
4.programmable dma controller 8257
4.programmable dma controller 82574.programmable dma controller 8257
4.programmable dma controller 8257
 
3.programmable interrupt controller 8259
3.programmable interrupt controller 82593.programmable interrupt controller 8259
3.programmable interrupt controller 8259
 
1.ppi 8255
1.ppi 8255 1.ppi 8255
1.ppi 8255
 
Topic4 data encryption standard(des)
Topic4 data encryption standard(des)Topic4 data encryption standard(des)
Topic4 data encryption standard(des)
 
Topic3 playfain
Topic3 playfainTopic3 playfain
Topic3 playfain
 
Topic2 caser hill_cripto
Topic2 caser hill_criptoTopic2 caser hill_cripto
Topic2 caser hill_cripto
 
Topic5 advanced encryption standard (aes)
Topic5 advanced encryption standard (aes)Topic5 advanced encryption standard (aes)
Topic5 advanced encryption standard (aes)
 
Topic1 substitution transposition-techniques
Topic1 substitution transposition-techniquesTopic1 substitution transposition-techniques
Topic1 substitution transposition-techniques
 
11. lzw coding
11. lzw coding11. lzw coding
11. lzw coding
 
9. hofman coding in DIP
9. hofman coding in DIP9. hofman coding in DIP
9. hofman coding in DIP
 
7. image enhancement using spatial filtering
7. image enhancement using spatial filtering7. image enhancement using spatial filtering
7. image enhancement using spatial filtering
 
5. gray level transformation
5. gray level transformation5. gray level transformation
5. gray level transformation
 
1. steps in image processing
1. steps in image processing1. steps in image processing
1. steps in image processing
 
5. convolution and correlation of discrete time signals
5. convolution and correlation of discrete time signals 5. convolution and correlation of discrete time signals
5. convolution and correlation of discrete time signals
 
4. operations of signals
4. operations of signals 4. operations of signals
4. operations of signals
 
3. systems
3. systems 3. systems
3. systems
 
2. classification of signals
2. classification of signals 2. classification of signals
2. classification of signals
 
1. elementary signals
1. elementary signals 1. elementary signals
1. elementary signals
 
4. random number and it's generating techniques
4. random number and it's generating techniques 4. random number and it's generating techniques
4. random number and it's generating techniques
 

Recently uploaded

main PPT.pptx of girls hostel security using rfid
main PPT.pptx of girls hostel security using rfidmain PPT.pptx of girls hostel security using rfid
main PPT.pptx of girls hostel security using rfidNikhilNagaraju
 
HARMONY IN THE NATURE AND EXISTENCE - Unit-IV
HARMONY IN THE NATURE AND EXISTENCE - Unit-IVHARMONY IN THE NATURE AND EXISTENCE - Unit-IV
HARMONY IN THE NATURE AND EXISTENCE - Unit-IVRajaP95
 
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...Soham Mondal
 
Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...
Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...
Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...srsj9000
 
College Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
College Call Girls Nashik Nehal 7001305949 Independent Escort Service NashikCollege Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
College Call Girls Nashik Nehal 7001305949 Independent Escort Service NashikCall Girls in Nagpur High Profile
 
GDSC ASEB Gen AI study jams presentation
GDSC ASEB Gen AI study jams presentationGDSC ASEB Gen AI study jams presentation
GDSC ASEB Gen AI study jams presentationGDSCAESB
 
IVE Industry Focused Event - Defence Sector 2024
IVE Industry Focused Event - Defence Sector 2024IVE Industry Focused Event - Defence Sector 2024
IVE Industry Focused Event - Defence Sector 2024Mark Billinghurst
 
What are the advantages and disadvantages of membrane structures.pptx
What are the advantages and disadvantages of membrane structures.pptxWhat are the advantages and disadvantages of membrane structures.pptx
What are the advantages and disadvantages of membrane structures.pptxwendy cai
 
Biology for Computer Engineers Course Handout.pptx
Biology for Computer Engineers Course Handout.pptxBiology for Computer Engineers Course Handout.pptx
Biology for Computer Engineers Course Handout.pptxDeepakSakkari2
 
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICSAPPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICSKurinjimalarL3
 
chaitra-1.pptx fake news detection using machine learning
chaitra-1.pptx  fake news detection using machine learningchaitra-1.pptx  fake news detection using machine learning
chaitra-1.pptx fake news detection using machine learningmisbanausheenparvam
 
(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts
(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts
(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escortsranjana rawat
 
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur EscortsHigh Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escortsranjana rawat
 
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130Suhani Kapoor
 
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...Dr.Costas Sachpazis
 
Call Girls Narol 7397865700 Independent Call Girls
Call Girls Narol 7397865700 Independent Call GirlsCall Girls Narol 7397865700 Independent Call Girls
Call Girls Narol 7397865700 Independent Call Girlsssuser7cb4ff
 
Sachpazis Costas: Geotechnical Engineering: A student's Perspective Introduction
Sachpazis Costas: Geotechnical Engineering: A student's Perspective IntroductionSachpazis Costas: Geotechnical Engineering: A student's Perspective Introduction
Sachpazis Costas: Geotechnical Engineering: A student's Perspective IntroductionDr.Costas Sachpazis
 

Recently uploaded (20)

main PPT.pptx of girls hostel security using rfid
main PPT.pptx of girls hostel security using rfidmain PPT.pptx of girls hostel security using rfid
main PPT.pptx of girls hostel security using rfid
 
HARMONY IN THE NATURE AND EXISTENCE - Unit-IV
HARMONY IN THE NATURE AND EXISTENCE - Unit-IVHARMONY IN THE NATURE AND EXISTENCE - Unit-IV
HARMONY IN THE NATURE AND EXISTENCE - Unit-IV
 
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
 
Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...
Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...
Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...
 
College Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
College Call Girls Nashik Nehal 7001305949 Independent Escort Service NashikCollege Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
College Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
 
GDSC ASEB Gen AI study jams presentation
GDSC ASEB Gen AI study jams presentationGDSC ASEB Gen AI study jams presentation
GDSC ASEB Gen AI study jams presentation
 
IVE Industry Focused Event - Defence Sector 2024
IVE Industry Focused Event - Defence Sector 2024IVE Industry Focused Event - Defence Sector 2024
IVE Industry Focused Event - Defence Sector 2024
 
What are the advantages and disadvantages of membrane structures.pptx
What are the advantages and disadvantages of membrane structures.pptxWhat are the advantages and disadvantages of membrane structures.pptx
What are the advantages and disadvantages of membrane structures.pptx
 
Biology for Computer Engineers Course Handout.pptx
Biology for Computer Engineers Course Handout.pptxBiology for Computer Engineers Course Handout.pptx
Biology for Computer Engineers Course Handout.pptx
 
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICSAPPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
 
chaitra-1.pptx fake news detection using machine learning
chaitra-1.pptx  fake news detection using machine learningchaitra-1.pptx  fake news detection using machine learning
chaitra-1.pptx fake news detection using machine learning
 
(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts
(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts
(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts
 
9953056974 Call Girls In South Ex, Escorts (Delhi) NCR.pdf
9953056974 Call Girls In South Ex, Escorts (Delhi) NCR.pdf9953056974 Call Girls In South Ex, Escorts (Delhi) NCR.pdf
9953056974 Call Girls In South Ex, Escorts (Delhi) NCR.pdf
 
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur EscortsHigh Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
 
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130
 
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
 
Call Girls Narol 7397865700 Independent Call Girls
Call Girls Narol 7397865700 Independent Call GirlsCall Girls Narol 7397865700 Independent Call Girls
Call Girls Narol 7397865700 Independent Call Girls
 
🔝9953056974🔝!!-YOUNG call girls in Rajendra Nagar Escort rvice Shot 2000 nigh...
🔝9953056974🔝!!-YOUNG call girls in Rajendra Nagar Escort rvice Shot 2000 nigh...🔝9953056974🔝!!-YOUNG call girls in Rajendra Nagar Escort rvice Shot 2000 nigh...
🔝9953056974🔝!!-YOUNG call girls in Rajendra Nagar Escort rvice Shot 2000 nigh...
 
Exploring_Network_Security_with_JA3_by_Rakesh Seal.pptx
Exploring_Network_Security_with_JA3_by_Rakesh Seal.pptxExploring_Network_Security_with_JA3_by_Rakesh Seal.pptx
Exploring_Network_Security_with_JA3_by_Rakesh Seal.pptx
 
Sachpazis Costas: Geotechnical Engineering: A student's Perspective Introduction
Sachpazis Costas: Geotechnical Engineering: A student's Perspective IntroductionSachpazis Costas: Geotechnical Engineering: A student's Perspective Introduction
Sachpazis Costas: Geotechnical Engineering: A student's Perspective Introduction
 

4.logic functions

  • 2. 4.2 Logic functions • Variables with only two values are called Logic variables or Switching variables • We defined several Boolean/Logic operators • A large variety of situations and problems can be described using logic variables and logic operators. • The description is done through logic functions
  • 3. 4.3 Properties of logic functions • If F1(A1, A2, ... An ) is a logic function, then (F1(A1,A2, ... A n))/ is also a Boolean function. • If F1 and F2 are two logic functions, then F1+F2 and F1.F2 are also Boolean functions. • Any function that is generated by the finite application of the above two rules is also logic function There are a total of 2 distinct logic functions of n variables
  • 4. 4.4 Terms to get familiarized • Literal: not-complemented or complemented version of a variable (A and A/ are literals) • Product term: A series of literals related to one another through an AND operator. Ex: A.B/.D, A.B.D/.E, etc. • Sum term: A series of literals related to one another through an OR operator. Ex: A+B/+D, A+B+D/+E, etc.
  • 5. 4.5 Truth Table • It is a tabular representation of a logic function. • It gives the value of the function for all possible combinations of the values of the variables • For each combination, the function takes either 1 or 0
  • 6. 4.6 Simpler Truth Table F = A.B.C.D/.E/ + A.B/.C.D/.E + A/.B/.C.D.E + A.B/.C/.D.E
  • 7. 4.7 English Sentences Logic Functions Anil freaks out with his friends if it is Saturday and he completed his assignments • F = 1 if Anil freaks out with his friends; otherwise F = 0 • A = 1 if it is Saturday; otherwise A = 0 • B = 1 if he completed his assignments; otherwise B = 0 • F is asserted if A is asserted and B is asserted. The sentence, therefore, can be translated into a logic equation as F = A.B
  • 8. 4.8 Minterms • A logic function has product terms. • Product terms that consist of all the variables of a function are called "canonical product terms", "fundamental product terms" or "minterms".
  • 9. 4.9 Maxterms • Sum terms which contain all the variables of a Boolean function are called "canonical sum terms", "fundamental sum terms" or "maxterms". • (A+B/+C) is an example of a maxterm in a three variable logic function
  • 10. 4.10 Minterms and Maxterms of 3 variables
  • 11. 4.11 Logic function as a sum of minterms Consider a function of three variables F = m0 + m3 + m5 + m6 This is equivalent to F = A/B/C/ + A/BC + A/BC/ + ABC/ A logic function that is expressed as an OR of several product terms is considered to be in "sum-of- products" or SOP form.
  • 12. 4.12 Logic function as a product of Maxterms F is a function of three variables F = M0 . M3 . M5 . M6 When F expressed as an AND of several sum terms, it is considered to be in "product-of-sums" or POS form.
  • 13. 4.13 Canonical form If all the terms in an expression or function are canonical in nature, then it is considered to be in canonical form. • minterms in the case of SOP form • maxterms in the case of POS form
  • 14. 4.14 Canonical form Consider the function F = A.B + A.B/.C + A/.B.C It is not in canonical form It can be converted into canonical form: A.B = A.B.1 = A.B.(C + C/) = A.B.C + A.B.C/ The canonical version of F F = A.B.C + A.B.C/+ A.B/.C + A/.B.C
  • 15. 4.15 Priorities in a logical expression • NOT ( / ) operation has the highest priority, • AND (.) has the next priority • OR (+) has the last priority