SlideShare a Scribd company logo
1 of 28
Logic Gates

1
Page 1
Logic
• Formal logic is a branch of
mathematics that deals with
true and false values
instead of numbers.
• In 1840’s, George Boole
developed many Logic ideas.
•A logic gate performs a
logical operation on one or
more logic inputs and produces
a single logic output.

2
Page 2
The logic normally performed is
Boolean logic and is most commonly found
in digital circuits.
Logic gates are primarily implemented
electronically using diodes or transistors, but
can also be constructed using
electromagnetic relays (relay logic),
fluidic logic, pneumatic logic, optics,
molecules, or even mechanical elements.
In electronic logic, a logic level is
represented by a voltage or current,
depending on the type of electronic logic in
use.

Page 3
Logic Signals
There are a number of different systems for representing
binary information in physical systems. Here are a few.
A voltage signal with zero (0) corresponding to 0 volts and
one (1) corresponding to five or three volts.
A sinusoidal signal with zero corresponding to some
frequency, and one corresponding to some other
frequency.
A current signal with zero corresponding to 4 milliamps
and one corresponding to 20 milliamps.
And one last way is to use switches, OPEN for "0" and
CLOSED for "1".
(And there are more ways!)
Page 4
Boolean algebra is the algebra of two values. These are usually
taken to be 0 and 1, as we shall do here, although F and T, false
and true, etc. are also in common use.
Whereas elementary algebra is based on numeric operations
multiplication xy, addition x + y, and negation −x, Boolean
algebra is customarily based on logical counterparts to those
operations, namely :
(1) conjunction x∧y (AND)
(2) disjunction x∨y (OR)
(3) complement or negation ¬x (NOT).
In electronics:
AND is represented as a multiplication
OR is represented as an addition
NOT is represented with an overbar
Page 5
Basic logic gates
• Not
• And
• Or
• Nand
• Nor
• Xor
6
Page 6
Truth Table
A truth table is a good way to
show the function of a logic gate.
It shows the output states for
every possible combination of
input states. The symbols 0
(false) and 1 (true) are usually
used in truth tables.

Page 7
NOT
The output A is true when the input a is NOT true, the output is the inverse of
the input: a = NOT A
A NOT gate can only have one input. A NOT gate is also called an inverter.
Truth Table:
A

A

a
0

A
1

1

0

Page 8
AND
"If A AND B are both 1, then Q should be 1.“
(All or nothing.)
Logic Gate:

A

A*B

B

Truth Table:

A
0
A
Series Circuit:

A*B
0

0
1

1
0

0
0

1

B

B
0

1

1

A*B

Page 9
Three Input AND Gate
A

B

C

ABC

0

0

0

0

0

0

1

0

0

1

0

0

0

1

1

0

1

0

0

0

1

0

1

0

1

1

0

0

1

1

1

1

Page 10
OR
"If A is 1 OR B is 1 (or both are 1), then Q is 1."

Logic Gate:

A

A+B

B

Truth Table:

A
0

B

1
0

1
1

1

Parallel Circuit:

A+B
0

0
1

A

B
0

1

1

A+B
Page 11
• Because + and * are binary operations, they
can be cascaded together to OR or AND
multiple inputs.
A
B

A
B
C

C

A+B+C

A+B+C

A
B

A
B
C

ABC

ABC

Page 12
NAND and NOR Gates
• NAND and NOR gates can greatly simplify circuit diagrams.
NAND inverts the output of AND.
• NOR inverts the output of OR.
A
0
0

1

1

0

1

1

1

0

A
NOR

0

A↑ B
1

1

NAND

B

B

0

0

A↓ B
1

0

1

0

1

0

0

1

1

0
Page 13
XOR and XNOR Gates
XOR (exclusive OR) :"If either A OR B is 1, but NOT both, Q is 1."
A
0

0

A⊕ B
0

0

1

1

1

0

1

1

XOR

B

1

0

XNOR (exclusive NOR) : invert output of XOR
A
XNOR

B

A

B

0

0

1

0

1

0

1

0

0

1

1

1
Page 14
• Find the output of the following circuit

x+y
(x+y)y
y
__

• Answer: (x+y)y

15
Page 15
• Find the output of the following circuit

x
xy

xy

y

___
__

• Answer: xy

Page 16
Give the Boolean expression of the given circuit

x+y

(x+y)(xy)
xy
Answer:

xy

(x+y)(xy)
17
Page 17
•

Write the circuits for the following
Boolean algebraic expressions
__
a) x+y
x
x+y

18
Page 18
•

Write the circuits for the following
Boolean algebraic expressions
_______
b) (x+y)x
x+y

x+y

(x+y)x

19
Page 19
More about logic gates
• To implement a logic gate in hardware,
you use a transistor
• Transistors are all enclosed in an “IC”, or
integrated circuit
• The current Intel Pentium IV processors
have 55 million transistors!

20
Page 20
Flip-flops
• Consider the following circuit:

• What does it do?

21
Page 21
If you arrange the gates correctly, they will remember an input value. MEMORY
This simple concept is the basis of RAM (random access memory) in computers,
and also makes it possible to create a wide variety of other useful circuits.
Memory relies on a concept called feedback. That is, the output of a gate is fed back into the input.

• A flip-flop holds a single bit of memory
• In reality, flip-flops are a bit more
complicated
– Have 5 (or so) logic gates (transistors) per flipflop

• Consider a 1 Gb memory chip
– 1 Gb = 8,589,934,592 bits of memory
– That’s about 43 million transistors!

• In reality, those transistors are split into 9
ICs of about 5 million transistors each

22
Page 22
Exercises:
1.Give the Boolean expression of the given gate.
Answer: (A + B)C

2.Give the Boolean expression of the given gate.

Answer: A + BC + D

3.Draw a logic circuit for AB + AC.

Page 23
Exercises:
4.Draw a logic circuit for (A + B)(C + D) C.
5. Give the truth table for a 3-input (A,B & C) OR gate.
6. What type of logic gate's behavior does this truth table represent?

7.Give the Boolean expression of the given gate.

Page 24
Exercises:
8.Give the output expressions of the given gates.
a.

b.

c.

d.

e.

f.

Page 25
3.

AB + AC.

Answers to Exercises:
5.

3-input OR gate
ABC

4. (A + B)(C + D)C.

6. 3-input OR gate
7.

Page 26
Answers to Exercises:
8.

a.) (ABC)(DE).
b.) (ABC)+(DE).
c.) (R+S+T) (X+Y+Z).
d.) (R+S+T)+(X+Y+Z).
e.) (JK)(M + N).
f.) (AB) (M + N) (X + Y).

Page 27
---the end– 8-)

Page 28

More Related Content

What's hot (20)

Logic gates
Logic gatesLogic gates
Logic gates
 
Logic gates presentation
Logic gates presentationLogic gates presentation
Logic gates presentation
 
Basic logic gates
Basic logic gatesBasic logic gates
Basic logic gates
 
Logic families
Logic familiesLogic families
Logic families
 
Adder substracter
Adder substracterAdder substracter
Adder substracter
 
Logic gate implementing without using ICs by Nimay Giri
Logic gate implementing without using ICs by Nimay GiriLogic gate implementing without using ICs by Nimay Giri
Logic gate implementing without using ICs by Nimay Giri
 
Sequential circuits
Sequential circuitsSequential circuits
Sequential circuits
 
Basic Logic gates
Basic Logic gatesBasic Logic gates
Basic Logic gates
 
MULTIPLEXER
MULTIPLEXERMULTIPLEXER
MULTIPLEXER
 
BOOLEAN ALGEBRA AND LOGIC GATE
BOOLEAN ALGEBRA AND LOGIC GATE BOOLEAN ALGEBRA AND LOGIC GATE
BOOLEAN ALGEBRA AND LOGIC GATE
 
Digital logic gate and its application
Digital logic gate and its applicationDigital logic gate and its application
Digital logic gate and its application
 
adder and subtractor
 adder and subtractor adder and subtractor
adder and subtractor
 
Presentation On Logic Gate
Presentation On Logic Gate Presentation On Logic Gate
Presentation On Logic Gate
 
Sr Latch or Flip Flop
Sr Latch or Flip FlopSr Latch or Flip Flop
Sr Latch or Flip Flop
 
Logic gates ppt
Logic gates pptLogic gates ppt
Logic gates ppt
 
Basics of digital electronics
Basics of digital electronicsBasics of digital electronics
Basics of digital electronics
 
digital logic_families
digital logic_familiesdigital logic_families
digital logic_families
 
Computer circuit logic
Computer circuit logicComputer circuit logic
Computer circuit logic
 
Logic gates
Logic gatesLogic gates
Logic gates
 
Practical Uses of Logic Gates
Practical Uses of Logic GatesPractical Uses of Logic Gates
Practical Uses of Logic Gates
 

Viewers also liked

Electronics and Communication Engineering : Digital circuits, THE GATE ACADEMY
Electronics and Communication Engineering : Digital circuits, THE GATE ACADEMYElectronics and Communication Engineering : Digital circuits, THE GATE ACADEMY
Electronics and Communication Engineering : Digital circuits, THE GATE ACADEMYklirantga
 
Logic Gates Presentation
Logic Gates PresentationLogic Gates Presentation
Logic Gates Presentationnad407
 
Basic logic gates
Basic logic gatesBasic logic gates
Basic logic gatesKumar
 
transparent electronics ppt
transparent electronics ppttransparent electronics ppt
transparent electronics pptArya Viswanath
 
3.bipolar junction transistor (bjt)
3.bipolar junction transistor (bjt)3.bipolar junction transistor (bjt)
3.bipolar junction transistor (bjt)firozamin
 

Viewers also liked (9)

Electronics and Communication Engineering : Digital circuits, THE GATE ACADEMY
Electronics and Communication Engineering : Digital circuits, THE GATE ACADEMYElectronics and Communication Engineering : Digital circuits, THE GATE ACADEMY
Electronics and Communication Engineering : Digital circuits, THE GATE ACADEMY
 
9. logic gates._rr
9. logic gates._rr9. logic gates._rr
9. logic gates._rr
 
Logic gates
Logic gatesLogic gates
Logic gates
 
Transistor as a switch
Transistor as a switch Transistor as a switch
Transistor as a switch
 
Logic Gates Presentation
Logic Gates PresentationLogic Gates Presentation
Logic Gates Presentation
 
Basic logic gates
Basic logic gatesBasic logic gates
Basic logic gates
 
transparent electronics ppt
transparent electronics ppttransparent electronics ppt
transparent electronics ppt
 
3.bipolar junction transistor (bjt)
3.bipolar junction transistor (bjt)3.bipolar junction transistor (bjt)
3.bipolar junction transistor (bjt)
 
transparent electronics
transparent electronicstransparent electronics
transparent electronics
 

Similar to LOGIC GATES

COMPUTER ORGANIZATION - Logic gates, Boolean Algebra, Combinational Circuits
COMPUTER ORGANIZATION - Logic gates, Boolean Algebra, Combinational CircuitsCOMPUTER ORGANIZATION - Logic gates, Boolean Algebra, Combinational Circuits
COMPUTER ORGANIZATION - Logic gates, Boolean Algebra, Combinational CircuitsVanitha Chandru
 
assignment_mathematics.pptx
assignment_mathematics.pptxassignment_mathematics.pptx
assignment_mathematics.pptxAravindaAKumar1
 
Lecture 04-Digital logic gates.pptx
Lecture 04-Digital logic gates.pptxLecture 04-Digital logic gates.pptx
Lecture 04-Digital logic gates.pptxWilliamJosephat1
 
ICT Basic Logic Gates Lessons.pptx
ICT Basic Logic Gates Lessons.pptxICT Basic Logic Gates Lessons.pptx
ICT Basic Logic Gates Lessons.pptxChristianVelchez2
 
6_2019_04_09!08_59_48_PM logic gate_.ppt
6_2019_04_09!08_59_48_PM logic gate_.ppt6_2019_04_09!08_59_48_PM logic gate_.ppt
6_2019_04_09!08_59_48_PM logic gate_.pptnaghamallella
 
basic logic gate presentation date23.ppt
basic logic gate presentation date23.pptbasic logic gate presentation date23.ppt
basic logic gate presentation date23.pptnaghamallella
 
integrated circutits -324567654-12-345-.pptx
integrated circutits -324567654-12-345-.pptxintegrated circutits -324567654-12-345-.pptx
integrated circutits -324567654-12-345-.pptxFermanIbrahim
 
chapter 3 Boolean algebra (2).pptx
chapter 3 Boolean algebra (2).pptxchapter 3 Boolean algebra (2).pptx
chapter 3 Boolean algebra (2).pptxRithinA1
 
Logic gatesrevised.ppt
Logic gatesrevised.pptLogic gatesrevised.ppt
Logic gatesrevised.pptDevanDev7
 

Similar to LOGIC GATES (20)

COMPUTER ORGANIZATION - Logic gates, Boolean Algebra, Combinational Circuits
COMPUTER ORGANIZATION - Logic gates, Boolean Algebra, Combinational CircuitsCOMPUTER ORGANIZATION - Logic gates, Boolean Algebra, Combinational Circuits
COMPUTER ORGANIZATION - Logic gates, Boolean Algebra, Combinational Circuits
 
Logic gates
Logic gatesLogic gates
Logic gates
 
assignment_mathematics.pptx
assignment_mathematics.pptxassignment_mathematics.pptx
assignment_mathematics.pptx
 
Lecture 04-Digital logic gates.pptx
Lecture 04-Digital logic gates.pptxLecture 04-Digital logic gates.pptx
Lecture 04-Digital logic gates.pptx
 
Deld lab manual
Deld lab manualDeld lab manual
Deld lab manual
 
ICT Basic Logic Gates Lessons.pptx
ICT Basic Logic Gates Lessons.pptxICT Basic Logic Gates Lessons.pptx
ICT Basic Logic Gates Lessons.pptx
 
2th year iv sem de lab manual
2th year iv sem de lab manual2th year iv sem de lab manual
2th year iv sem de lab manual
 
Chapter04.ppt
Chapter04.pptChapter04.ppt
Chapter04.ppt
 
Chapter04
Chapter04Chapter04
Chapter04
 
Electronics: Logic Gates
Electronics: Logic GatesElectronics: Logic Gates
Electronics: Logic Gates
 
6_2019_04_09!08_59_48_PM logic gate_.ppt
6_2019_04_09!08_59_48_PM logic gate_.ppt6_2019_04_09!08_59_48_PM logic gate_.ppt
6_2019_04_09!08_59_48_PM logic gate_.ppt
 
basic logic gate presentation date23.ppt
basic logic gate presentation date23.pptbasic logic gate presentation date23.ppt
basic logic gate presentation date23.ppt
 
logic gates By ZAK
logic gates By ZAKlogic gates By ZAK
logic gates By ZAK
 
integrated circutits -324567654-12-345-.pptx
integrated circutits -324567654-12-345-.pptxintegrated circutits -324567654-12-345-.pptx
integrated circutits -324567654-12-345-.pptx
 
chapter 3 Boolean algebra (2).pptx
chapter 3 Boolean algebra (2).pptxchapter 3 Boolean algebra (2).pptx
chapter 3 Boolean algebra (2).pptx
 
class xi pptx-1.pptx
class xi pptx-1.pptxclass xi pptx-1.pptx
class xi pptx-1.pptx
 
Class 12th Logic Gates
Class 12th Logic GatesClass 12th Logic Gates
Class 12th Logic Gates
 
Digital Logic circuit
Digital Logic circuitDigital Logic circuit
Digital Logic circuit
 
Logic gatesrevised.ppt
Logic gatesrevised.pptLogic gatesrevised.ppt
Logic gatesrevised.ppt
 
Combinational circuits
Combinational circuitsCombinational circuits
Combinational circuits
 

Recently uploaded

Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions  for the students and aspirants of Chemistry12th.pptxOrganic Name Reactions  for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions for the students and aspirants of Chemistry12th.pptxVS Mahajan Coaching Centre
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...EduSkills OECD
 
Crayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon ACrayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon AUnboundStockton
 
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17Celine George
 
Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactdawncurless
 
_Math 4-Q4 Week 5.pptx Steps in Collecting Data
_Math 4-Q4 Week 5.pptx Steps in Collecting Data_Math 4-Q4 Week 5.pptx Steps in Collecting Data
_Math 4-Q4 Week 5.pptx Steps in Collecting DataJhengPantaleon
 
MENTAL STATUS EXAMINATION format.docx
MENTAL     STATUS EXAMINATION format.docxMENTAL     STATUS EXAMINATION format.docx
MENTAL STATUS EXAMINATION format.docxPoojaSen20
 
Introduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher EducationIntroduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher Educationpboyjonauth
 
URLs and Routing in the Odoo 17 Website App
URLs and Routing in the Odoo 17 Website AppURLs and Routing in the Odoo 17 Website App
URLs and Routing in the Odoo 17 Website AppCeline George
 
Concept of Vouching. B.Com(Hons) /B.Compdf
Concept of Vouching. B.Com(Hons) /B.CompdfConcept of Vouching. B.Com(Hons) /B.Compdf
Concept of Vouching. B.Com(Hons) /B.CompdfUmakantAnnand
 
How to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxHow to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxmanuelaromero2013
 
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdfSoniaTolstoy
 
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)eniolaolutunde
 
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️9953056974 Low Rate Call Girls In Saket, Delhi NCR
 
Separation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesSeparation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesFatimaKhan178732
 
Introduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxIntroduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxpboyjonauth
 
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdfssuser54595a
 
CARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxCARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxGaneshChakor2
 
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfsanyamsingh5019
 

Recently uploaded (20)

Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions  for the students and aspirants of Chemistry12th.pptxOrganic Name Reactions  for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
 
Crayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon ACrayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon A
 
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
 
Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impact
 
_Math 4-Q4 Week 5.pptx Steps in Collecting Data
_Math 4-Q4 Week 5.pptx Steps in Collecting Data_Math 4-Q4 Week 5.pptx Steps in Collecting Data
_Math 4-Q4 Week 5.pptx Steps in Collecting Data
 
MENTAL STATUS EXAMINATION format.docx
MENTAL     STATUS EXAMINATION format.docxMENTAL     STATUS EXAMINATION format.docx
MENTAL STATUS EXAMINATION format.docx
 
Introduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher EducationIntroduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher Education
 
URLs and Routing in the Odoo 17 Website App
URLs and Routing in the Odoo 17 Website AppURLs and Routing in the Odoo 17 Website App
URLs and Routing in the Odoo 17 Website App
 
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
 
Concept of Vouching. B.Com(Hons) /B.Compdf
Concept of Vouching. B.Com(Hons) /B.CompdfConcept of Vouching. B.Com(Hons) /B.Compdf
Concept of Vouching. B.Com(Hons) /B.Compdf
 
How to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxHow to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptx
 
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
 
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)
 
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
 
Separation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesSeparation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and Actinides
 
Introduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxIntroduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptx
 
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
 
CARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxCARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptx
 
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdf
 

LOGIC GATES

  • 2. Logic • Formal logic is a branch of mathematics that deals with true and false values instead of numbers. • In 1840’s, George Boole developed many Logic ideas. •A logic gate performs a logical operation on one or more logic inputs and produces a single logic output. 2 Page 2
  • 3. The logic normally performed is Boolean logic and is most commonly found in digital circuits. Logic gates are primarily implemented electronically using diodes or transistors, but can also be constructed using electromagnetic relays (relay logic), fluidic logic, pneumatic logic, optics, molecules, or even mechanical elements. In electronic logic, a logic level is represented by a voltage or current, depending on the type of electronic logic in use. Page 3
  • 4. Logic Signals There are a number of different systems for representing binary information in physical systems. Here are a few. A voltage signal with zero (0) corresponding to 0 volts and one (1) corresponding to five or three volts. A sinusoidal signal with zero corresponding to some frequency, and one corresponding to some other frequency. A current signal with zero corresponding to 4 milliamps and one corresponding to 20 milliamps. And one last way is to use switches, OPEN for "0" and CLOSED for "1". (And there are more ways!) Page 4
  • 5. Boolean algebra is the algebra of two values. These are usually taken to be 0 and 1, as we shall do here, although F and T, false and true, etc. are also in common use. Whereas elementary algebra is based on numeric operations multiplication xy, addition x + y, and negation −x, Boolean algebra is customarily based on logical counterparts to those operations, namely : (1) conjunction x∧y (AND) (2) disjunction x∨y (OR) (3) complement or negation ¬x (NOT). In electronics: AND is represented as a multiplication OR is represented as an addition NOT is represented with an overbar Page 5
  • 6. Basic logic gates • Not • And • Or • Nand • Nor • Xor 6 Page 6
  • 7. Truth Table A truth table is a good way to show the function of a logic gate. It shows the output states for every possible combination of input states. The symbols 0 (false) and 1 (true) are usually used in truth tables. Page 7
  • 8. NOT The output A is true when the input a is NOT true, the output is the inverse of the input: a = NOT A A NOT gate can only have one input. A NOT gate is also called an inverter. Truth Table: A A a 0 A 1 1 0 Page 8
  • 9. AND "If A AND B are both 1, then Q should be 1.“ (All or nothing.) Logic Gate: A A*B B Truth Table: A 0 A Series Circuit: A*B 0 0 1 1 0 0 0 1 B B 0 1 1 A*B Page 9
  • 10. Three Input AND Gate A B C ABC 0 0 0 0 0 0 1 0 0 1 0 0 0 1 1 0 1 0 0 0 1 0 1 0 1 1 0 0 1 1 1 1 Page 10
  • 11. OR "If A is 1 OR B is 1 (or both are 1), then Q is 1." Logic Gate: A A+B B Truth Table: A 0 B 1 0 1 1 1 Parallel Circuit: A+B 0 0 1 A B 0 1 1 A+B Page 11
  • 12. • Because + and * are binary operations, they can be cascaded together to OR or AND multiple inputs. A B A B C C A+B+C A+B+C A B A B C ABC ABC Page 12
  • 13. NAND and NOR Gates • NAND and NOR gates can greatly simplify circuit diagrams. NAND inverts the output of AND. • NOR inverts the output of OR. A 0 0 1 1 0 1 1 1 0 A NOR 0 A↑ B 1 1 NAND B B 0 0 A↓ B 1 0 1 0 1 0 0 1 1 0 Page 13
  • 14. XOR and XNOR Gates XOR (exclusive OR) :"If either A OR B is 1, but NOT both, Q is 1." A 0 0 A⊕ B 0 0 1 1 1 0 1 1 XOR B 1 0 XNOR (exclusive NOR) : invert output of XOR A XNOR B A B 0 0 1 0 1 0 1 0 0 1 1 1 Page 14
  • 15. • Find the output of the following circuit x+y (x+y)y y __ • Answer: (x+y)y 15 Page 15
  • 16. • Find the output of the following circuit x xy xy y ___ __ • Answer: xy Page 16
  • 17. Give the Boolean expression of the given circuit x+y (x+y)(xy) xy Answer: xy (x+y)(xy) 17 Page 17
  • 18. • Write the circuits for the following Boolean algebraic expressions __ a) x+y x x+y 18 Page 18
  • 19. • Write the circuits for the following Boolean algebraic expressions _______ b) (x+y)x x+y x+y (x+y)x 19 Page 19
  • 20. More about logic gates • To implement a logic gate in hardware, you use a transistor • Transistors are all enclosed in an “IC”, or integrated circuit • The current Intel Pentium IV processors have 55 million transistors! 20 Page 20
  • 21. Flip-flops • Consider the following circuit: • What does it do? 21 Page 21
  • 22. If you arrange the gates correctly, they will remember an input value. MEMORY This simple concept is the basis of RAM (random access memory) in computers, and also makes it possible to create a wide variety of other useful circuits. Memory relies on a concept called feedback. That is, the output of a gate is fed back into the input. • A flip-flop holds a single bit of memory • In reality, flip-flops are a bit more complicated – Have 5 (or so) logic gates (transistors) per flipflop • Consider a 1 Gb memory chip – 1 Gb = 8,589,934,592 bits of memory – That’s about 43 million transistors! • In reality, those transistors are split into 9 ICs of about 5 million transistors each 22 Page 22
  • 23. Exercises: 1.Give the Boolean expression of the given gate. Answer: (A + B)C 2.Give the Boolean expression of the given gate. Answer: A + BC + D 3.Draw a logic circuit for AB + AC. Page 23
  • 24. Exercises: 4.Draw a logic circuit for (A + B)(C + D) C. 5. Give the truth table for a 3-input (A,B & C) OR gate. 6. What type of logic gate's behavior does this truth table represent? 7.Give the Boolean expression of the given gate. Page 24
  • 25. Exercises: 8.Give the output expressions of the given gates. a. b. c. d. e. f. Page 25
  • 26. 3. AB + AC. Answers to Exercises: 5. 3-input OR gate ABC 4. (A + B)(C + D)C. 6. 3-input OR gate 7. Page 26
  • 27. Answers to Exercises: 8. a.) (ABC)(DE). b.) (ABC)+(DE). c.) (R+S+T) (X+Y+Z). d.) (R+S+T)+(X+Y+Z). e.) (JK)(M + N). f.) (AB) (M + N) (X + Y). Page 27