SlideShare a Scribd company logo
Logic gates
Basic Gates
• The basic gates are AND, OR & NOT gates.
• AND gate
• An AND gate is a digital circuit that has two or more inputs and produces an
output, which is the logical AND of all those inputs. It is optional to represent
the Logical AND with the symbol ‘.’
• The following table shows the truth table of 2-input AND gate.
A B Y = A.B
0 0 0
0 1 0
1 0 0
1 1 1
AND Gate
A, B are the inputs and Y is the output of two input AND gate. If both inputs are ‘1’, then only the
output, Y is ‘1’. For remaining combinations of inputs, the output, Y is ‘0’.
The following figure shows the symbol of an AND gate, which is having two inputs A, B and one
output, Y.
This AND gate produces an output YY, which is the logical AND of two inputs A, B. Similarly, if there
are ‘n’ inputs, then the AND gate produces an output, which is the logical AND of all those inputs.
That means, the output of AND gate will be ‘1’, when all the inputs are ‘1’
OR gate
• An OR gate is a digital circuit that has two or more inputs and
produces an output, which is the logical OR of all those inputs.
This logical OR is represented with the symbol ‘+’.
A B Y = A + B
0 0 0
0 1 1
1 0 1
1 1 1
• A, B are the inputs and Y is the output of two input OR gate. If both
inputs are ‘0’, then only the output, Y is ‘0’. For remaining
combinations of inputs, the output, Y is ‘1’.
• This OR gate produces an output YY, which is the logical OR of two inputs
A, B. Similarly, if there are ‘n’ inputs, then the OR gate produces an
output, which is the logical OR of all those inputs. That means, the output
of an OR gate will be ‘1’, when at least one of those inputs is ‘1’.
NOT gate
• A NOT gate is a digital circuit that has single input and single output.
The output of NOT gate is the logical inversion of input. Hence, the
NOT gate is also called as inverter.
A Y = A’
0 1
1 0
Universal gates
• NAND & NOR gates are called as universal gates. Because we can
implement any Boolean function, which is in sum of products form by
using NAND gates alone. Similarly, we can implement any Boolean
function, which is in product of sums form by using NOR gates alone
• NAND gate
• NAND gate is a digital circuit that has two or more inputs and
produces an output, which is the inversion of logical AND of all those
inputs.
• The following table shows the truth table of 2-input NAND gate
A B Y = A.BA.B’
0 0 1
0 1 1
1 0 1
1 1 0
Here A, B are the inputs and Y is the output of two input NAND gate. When both inputs are ‘1’, the
output, Y is ‘0’. If at least one of the input is zero, then the output, Y is ‘1’. This is just opposite to that
of two input AND gate operation.
The following image shows the symbol of NAND gate, which is having two inputs A, B and one
output, Y.
NOR gate
• NOR gate is a digital circuit that has two or more inputs and produces
an output, which is the inversion of logical OR of all those inputs.
A B Y = A+BA+B’
0 0 1
0 1 0
1 0 0
1 1 0
Here A, B are the inputs and Y is the output. If both inputs are ‘0’, then the output, Y is ‘1’. If at least
one of the input is ‘1’, then the output, Y is ‘0’. This is just opposite to that of two input OR gate
operation.
The following figure shows the symbol of NOR gate, which is having two inputs A, B and one
output, Y.
Special Gates
• Ex-OR & Ex-NOR gates are called as special gates. Because, these two
gates are special cases of OR & NOR gates.
• Ex-OR gate
• The full form of Ex-OR gate is Exclusive-OR gate. Its function is same
as that of OR gate except for some cases, when the inputs having
even number of ones.
• The following table shows the truth table of 2-input Ex-OR gate.
A B Y = A⊕B
0 0 0
0 1 1
1 0 1
1 1 0
Here A, B are the inputs and Y is the output of two input Ex-OR gate. The truth table of Ex-OR gate is same as that of OR
gate for first three rows. The only modification is in the fourth row. That means, the output YY is zero instead of one,
when both the inputs are one, since the inputs having even number of ones. Therefore, the output of Ex-OR gate is ‘1’,
when only one of the two inputs is ‘1’. And it is zero, when both inputs are same.
EX-NOR gate
Truth Table
2-
input
Ex-
NOR
Gate
B A Q
0 0 1
0 1 0
1 0 0
1 1 1
Boolean Expression Q = A ⊕ B
Logic gates using NAND gates
Logic gates using NOR gate
• When we type some letters or words, the computer translates
them in numbers as computers can understand only numbers.
• A computer can understand the positional number system
where there are only a few symbols called digits and these
symbols represent different values depending on the position
they occupy in the number.
• The value of each digit in a number can be determined using −
• The digit
• The position of the digit in the number
• The base of the number system (where the base is defined as the total
number of digits available in the number system)
• Decimal Number System
• The number system that we use in our day-to-day life is the
decimal number system. Decimal number system has base 10
as it uses 10 digits from 0 to 9. In decimal number system, the
successive positions to the left of the decimal point represent
units, tens, hundreds, thousands, and so on.
Each position represents a specific power of the base (10). For
example, the decimal number 1234 consists of the digit 4 in the
unit's position, 3 in the tens position, 2 in the hundreds position, and
1 in the thousands position. Its value can be written as
Logic gates and Boolean.pdf
Logic gates and Boolean.pdf
Logic gates and Boolean.pdf
Logic gates and Boolean.pdf
Logic gates and Boolean.pdf
Logic gates and Boolean.pdf
Logic gates and Boolean.pdf

More Related Content

PPTX
Logic gates and Digital system.pptx
PDF
M. FLORENCE DAYANA/unit - II logic gates and circuits.pdf
PPTX
Digital Electronics-Review of Logic Gates.pptx
PPTX
Logic circuits and design PART 3.pptx
DOCX
Basic gates and functions
PDF
BASIC LOGIC GATES.pdf
DOCX
Logic gates
PDF
Logic gates
Logic gates and Digital system.pptx
M. FLORENCE DAYANA/unit - II logic gates and circuits.pdf
Digital Electronics-Review of Logic Gates.pptx
Logic circuits and design PART 3.pptx
Basic gates and functions
BASIC LOGIC GATES.pdf
Logic gates
Logic gates

Similar to Logic gates and Boolean.pdf (20)

PDF
Basic Logic Gates with Truth Tables.pdf
DOCX
combinational-circuit____gates_456788 (2).docx
PPT
Logic gates
PPT
logicgates- basic logic gates and or nand not.ppt
PPTX
Lecture 04-Digital logic gates.pptx
PPTX
11_Fundamentals_of_Digital_Electronics_L.pptx
PDF
Logic gates
PPTX
digital electronics .pptx
PDF
PPTX
digital electronics.pptx Logic gates, adders
PDF
Logic Gates.pdf A short evaluation and description of logic gates
PPTX
chapter3.pptx electrical engineering for university
PPTX
Basic Gates in Digital Logic
PPTX
fundamentals - week1 to week 4 slide.pptx
PPTX
adict2022_315_M.A.HASMA_IICT#1.pptx
PPTX
Logic gates 07 11-2014
PPT
Chap 3
PPTX
Logic gates digital electronics
PPTX
ICT Basic Logic Gates Lessons.pptx
Basic Logic Gates with Truth Tables.pdf
combinational-circuit____gates_456788 (2).docx
Logic gates
logicgates- basic logic gates and or nand not.ppt
Lecture 04-Digital logic gates.pptx
11_Fundamentals_of_Digital_Electronics_L.pptx
Logic gates
digital electronics .pptx
digital electronics.pptx Logic gates, adders
Logic Gates.pdf A short evaluation and description of logic gates
chapter3.pptx electrical engineering for university
Basic Gates in Digital Logic
fundamentals - week1 to week 4 slide.pptx
adict2022_315_M.A.HASMA_IICT#1.pptx
Logic gates 07 11-2014
Chap 3
Logic gates digital electronics
ICT Basic Logic Gates Lessons.pptx
Ad

Recently uploaded (20)

PDF
Embodied AI: Ushering in the Next Era of Intelligent Systems
PPT
CRASH COURSE IN ALTERNATIVE PLUMBING CLASS
PDF
PPT on Performance Review to get promotions
PPTX
Internet of Things (IOT) - A guide to understanding
PPTX
KTU 2019 -S7-MCN 401 MODULE 2-VINAY.pptx
PPTX
Recipes for Real Time Voice AI WebRTC, SLMs and Open Source Software.pptx
PDF
Well-logging-methods_new................
PPTX
Engineering Ethics, Safety and Environment [Autosaved] (1).pptx
PPTX
Lecture Notes Electrical Wiring System Components
PPTX
Foundation to blockchain - A guide to Blockchain Tech
PPTX
bas. eng. economics group 4 presentation 1.pptx
PDF
The CXO Playbook 2025 – Future-Ready Strategies for C-Suite Leaders Cerebrai...
PDF
keyrequirementskkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkk
PPTX
MCN 401 KTU-2019-PPE KITS-MODULE 2.pptx
PPTX
Infosys Presentation by1.Riyan Bagwan 2.Samadhan Naiknavare 3.Gaurav Shinde 4...
PDF
Digital Logic Computer Design lecture notes
PPTX
CYBER-CRIMES AND SECURITY A guide to understanding
PPT
Mechanical Engineering MATERIALS Selection
PDF
Evaluating the Democratization of the Turkish Armed Forces from a Normative P...
PDF
Model Code of Practice - Construction Work - 21102022 .pdf
Embodied AI: Ushering in the Next Era of Intelligent Systems
CRASH COURSE IN ALTERNATIVE PLUMBING CLASS
PPT on Performance Review to get promotions
Internet of Things (IOT) - A guide to understanding
KTU 2019 -S7-MCN 401 MODULE 2-VINAY.pptx
Recipes for Real Time Voice AI WebRTC, SLMs and Open Source Software.pptx
Well-logging-methods_new................
Engineering Ethics, Safety and Environment [Autosaved] (1).pptx
Lecture Notes Electrical Wiring System Components
Foundation to blockchain - A guide to Blockchain Tech
bas. eng. economics group 4 presentation 1.pptx
The CXO Playbook 2025 – Future-Ready Strategies for C-Suite Leaders Cerebrai...
keyrequirementskkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkk
MCN 401 KTU-2019-PPE KITS-MODULE 2.pptx
Infosys Presentation by1.Riyan Bagwan 2.Samadhan Naiknavare 3.Gaurav Shinde 4...
Digital Logic Computer Design lecture notes
CYBER-CRIMES AND SECURITY A guide to understanding
Mechanical Engineering MATERIALS Selection
Evaluating the Democratization of the Turkish Armed Forces from a Normative P...
Model Code of Practice - Construction Work - 21102022 .pdf
Ad

Logic gates and Boolean.pdf

  • 2. Basic Gates • The basic gates are AND, OR & NOT gates. • AND gate • An AND gate is a digital circuit that has two or more inputs and produces an output, which is the logical AND of all those inputs. It is optional to represent the Logical AND with the symbol ‘.’ • The following table shows the truth table of 2-input AND gate. A B Y = A.B 0 0 0 0 1 0 1 0 0 1 1 1
  • 3. AND Gate A, B are the inputs and Y is the output of two input AND gate. If both inputs are ‘1’, then only the output, Y is ‘1’. For remaining combinations of inputs, the output, Y is ‘0’. The following figure shows the symbol of an AND gate, which is having two inputs A, B and one output, Y. This AND gate produces an output YY, which is the logical AND of two inputs A, B. Similarly, if there are ‘n’ inputs, then the AND gate produces an output, which is the logical AND of all those inputs. That means, the output of AND gate will be ‘1’, when all the inputs are ‘1’
  • 4. OR gate • An OR gate is a digital circuit that has two or more inputs and produces an output, which is the logical OR of all those inputs. This logical OR is represented with the symbol ‘+’. A B Y = A + B 0 0 0 0 1 1 1 0 1 1 1 1
  • 5. • A, B are the inputs and Y is the output of two input OR gate. If both inputs are ‘0’, then only the output, Y is ‘0’. For remaining combinations of inputs, the output, Y is ‘1’. • This OR gate produces an output YY, which is the logical OR of two inputs A, B. Similarly, if there are ‘n’ inputs, then the OR gate produces an output, which is the logical OR of all those inputs. That means, the output of an OR gate will be ‘1’, when at least one of those inputs is ‘1’.
  • 6. NOT gate • A NOT gate is a digital circuit that has single input and single output. The output of NOT gate is the logical inversion of input. Hence, the NOT gate is also called as inverter. A Y = A’ 0 1 1 0
  • 7. Universal gates • NAND & NOR gates are called as universal gates. Because we can implement any Boolean function, which is in sum of products form by using NAND gates alone. Similarly, we can implement any Boolean function, which is in product of sums form by using NOR gates alone • NAND gate • NAND gate is a digital circuit that has two or more inputs and produces an output, which is the inversion of logical AND of all those inputs. • The following table shows the truth table of 2-input NAND gate
  • 8. A B Y = A.BA.B’ 0 0 1 0 1 1 1 0 1 1 1 0 Here A, B are the inputs and Y is the output of two input NAND gate. When both inputs are ‘1’, the output, Y is ‘0’. If at least one of the input is zero, then the output, Y is ‘1’. This is just opposite to that of two input AND gate operation. The following image shows the symbol of NAND gate, which is having two inputs A, B and one output, Y.
  • 9. NOR gate • NOR gate is a digital circuit that has two or more inputs and produces an output, which is the inversion of logical OR of all those inputs. A B Y = A+BA+B’ 0 0 1 0 1 0 1 0 0 1 1 0
  • 10. Here A, B are the inputs and Y is the output. If both inputs are ‘0’, then the output, Y is ‘1’. If at least one of the input is ‘1’, then the output, Y is ‘0’. This is just opposite to that of two input OR gate operation. The following figure shows the symbol of NOR gate, which is having two inputs A, B and one output, Y.
  • 11. Special Gates • Ex-OR & Ex-NOR gates are called as special gates. Because, these two gates are special cases of OR & NOR gates. • Ex-OR gate • The full form of Ex-OR gate is Exclusive-OR gate. Its function is same as that of OR gate except for some cases, when the inputs having even number of ones. • The following table shows the truth table of 2-input Ex-OR gate.
  • 12. A B Y = A⊕B 0 0 0 0 1 1 1 0 1 1 1 0 Here A, B are the inputs and Y is the output of two input Ex-OR gate. The truth table of Ex-OR gate is same as that of OR gate for first three rows. The only modification is in the fourth row. That means, the output YY is zero instead of one, when both the inputs are one, since the inputs having even number of ones. Therefore, the output of Ex-OR gate is ‘1’, when only one of the two inputs is ‘1’. And it is zero, when both inputs are same.
  • 13. EX-NOR gate Truth Table 2- input Ex- NOR Gate B A Q 0 0 1 0 1 0 1 0 0 1 1 1 Boolean Expression Q = A ⊕ B
  • 14. Logic gates using NAND gates
  • 15. Logic gates using NOR gate
  • 16. • When we type some letters or words, the computer translates them in numbers as computers can understand only numbers. • A computer can understand the positional number system where there are only a few symbols called digits and these symbols represent different values depending on the position they occupy in the number. • The value of each digit in a number can be determined using − • The digit • The position of the digit in the number • The base of the number system (where the base is defined as the total number of digits available in the number system)
  • 17. • Decimal Number System • The number system that we use in our day-to-day life is the decimal number system. Decimal number system has base 10 as it uses 10 digits from 0 to 9. In decimal number system, the successive positions to the left of the decimal point represent units, tens, hundreds, thousands, and so on.
  • 18. Each position represents a specific power of the base (10). For example, the decimal number 1234 consists of the digit 4 in the unit's position, 3 in the tens position, 2 in the hundreds position, and 1 in the thousands position. Its value can be written as