SlideShare a Scribd company logo
1 of 20
TRUTH TABLE

• Remember:
   –   Decimal to Binary
   –   Binary to Decimal
   –   Binary math
   –   Finish representation of data
         • Numbers
         • Symbols
         • Images
         • Audio
• Today:
   – Boolean Logic
   – Truth Tables
   – Circuits


                                       4-1
4-2
What we will cover…

•   The connection between Boolean logic and circuits
•   Boolean (Propositional) Logic
•   The design of simple logic circuits
•   Representing simple logical sentences in hardware




                                                        4-3
Logic and Logic Circuits

• What is a circuit?
   – the complete path of an electric current, or a collection of electronic
     elements
   – We are interested in logic circuits, those whose output varies
     depending on their input.
• Logic circuits emulate the Boolean logic operators
  from propositional logic




                                                                               4-4
Binary for Logic?

• In Propositional Logic we examine the “truth” of
  sentences.
   – Sentences consist of:
      • Variables:
           – sub-sentences (A, B, C …) which are either true or false
           – In computer science, we use
                » true = 1
                » false = 0
      • Logical Operators:
           – e.g., NOT, OR, AND, XOR, NAND, NOR
      • Example sentence:
           – X = (A AND B) OR C
• We examine the logic of a sentence through “truth table
  analysis”                                                             4-5
Simplest Truth Table
                      a Single Variable
• A single variable has only two possible values in
  Boolean logic:
   – true = 1
   – false = 0                                                    A
• A “truth table” represents all of the possible
  values of a sentence given the possible values of               1
  its inputs (variables).
   – We determine the output by considering all possible truth
     values for each variable
   – we want to see the results of all possible combinations of
                                                                  0
     each variable
• How many rows should appear in a given truth
  table?                     • Example: A = “It is raining”           4-6
Logical AND

• Logical AND:
   – Takes two variables
   – Evaluates to True only if both variables are true
   – Written as: (A B)
• Example:
   –   A = It is raining
   –   B = I am in London
   –   (A B) = It is raining and I am in London
   –   What is the truth table for (A B) ?
         • How many combinations of values exist for A AND B?



                                                                4-7
Logical AND on two variables

                                   It is raining and I
  It is raining   I am in London
                                     am in London

       A                B                A       B
       1                1                    1
       1                0                    0
       0                1                    0
       0                0                    0



  A AND B is true if both A is true and B is true
        Otherwise, A AND B is false.
                                                         4-8
Logical Or

                    • A OR B
                    • A B
A   B   A       B
                    • Has two values: true if either A
                      or B is true, or if both A and B
1   1       1         are true
                    • false if they are both false.
1   0       1       • Are either of these things true?
                        – Note: both can be true… this is not
                          “exclusive or”
0   1       1

0   0       0

                                                                4-9
Logical Not

          • Used to invert a meaning
          • NOT A as an alternative:
A   A
          • A = “It is raining”
1   0     •  A = “It is not raining”

0   1




                                       4-10
XOR- Exclusive Or

A   B    A XOR B   • True when either A or B are
                     true, but not both
1   1       0      • So “A and NOT B” or “B and
                     NOT A”

1   0       1      • Built from simpler logic:
                        (A   B)   ( A   B)

0   1       1

0   0       0
                                                   4-11
Nor and Nand

A   B   A       B   A       B   A Nand B   A Nor B

1   1       1           1          0         0

1   0       0           1          1         0

0   1       0           1          1         0

0   0       0           0          1         1

                                                     4-12
Truth Table Analysis

•   How do you build a truth table?
    –   Step 1: Create columns for all the variables in the sentence
    –   Step 2: Determine the number of rows you need given the variables in your
        sentence
    –   Step 3: Define all possible sequences (cases) for your truth table, starting
        with all variables false and ending with all variables true
    –   Step 4: Deconstruct the logic in the sentence and fill in your table


    –   What is the truth table for:
        1. X = A AND (NOT B)
        2. X = (NOT A) AND (NOT B)
        3. X = (A OR B) AND C

                                                                                   4-13
Logic and Logic Circuits

• What is a circuit?
   – the complete path of an electric current, or a collection of electronic
     elements
   – we will consider transistors to be the basic building blocks of logic
     computer hardware.

   – Logic circuits are built from a series of transistors
      • What is a transistor?




                                                                               4-14
Transistors

                 – A transistor is an electronic device that
                   has three ends: a source, a sink, and a
       source      gate

                 – In this type of transistor, when the gate
                   is:
gate                 • ON, power flows from the source to
                       the sink.
                     • OFF, power does not flow to the
                       sink

       sink
                                                           4-15
Transistors (like faucets)
    The operation of a transistor could be explained by making an analogy to faucets.
• A faucet has:
    – An input
        • the water company
        • “source”
    – An output
        • a sink (where water is drained)
        • “sink”
    – Flow control
        • If the tap knob (gate) is turned :
              – ON water flows from the source to the sink
              – OFF no water flows.
        • The state of the tap determines the presence of water at the sink



                                                                                        4-16
Transistors (like faucets)
                             gate                                               gate
           source                                    source



                 OFF                                       ON
                                        sink                                          sink
• Changing from water to electricity … in transistors:
    – Electricity flows from the source to the sink with the gate = 1 (ON)
    – Electricity does not flow from the source to the sink with the gate = 0 (OFF)


                                                                                             4-17
Transistors

                – The current technology used to build computer
                  hardware (chips) is called CMOS.

       source       • In CMOS we also use another kind of
                      transistor, distinguished by the little
                      bubble
                    • The bubble means that this transistor
                      works in the opposite way (it's ON
gate                  when the gate is OFF and OFF when
                      the gate is ON).



       sink
                                                             4-18
Building Complicated Circuits with
               Transistors
      Battery
                    • What on earth does this do?
                        If A=0 then . . .
                            bottom gate is off
                            top gate is on
                            power flows from the battery, can’t go out the sink,
                            and goes out through Z. Z = 1
                        If A = 1 then …
A               Z           bottom gate is on
                            top gate is off
                            power doesn’t get to Z from the battery, and any
                            power left in Z will flow out the sink. Z = 0




                                                                               4-19
Building Circuits with Transistors

     Battery

                          A          ?

                          1          0

A              Z          0          1


                   What logical operator does this
                   circuit perform?

                                                     4-20

More Related Content

Similar to Truth table1

Similar to Truth table1 (20)

Boolean algebra
Boolean algebraBoolean algebra
Boolean algebra
 
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
 
Digital 1
Digital 1Digital 1
Digital 1
 
Boolean+logic
Boolean+logicBoolean+logic
Boolean+logic
 
Logic Gates (1).ppt
Logic Gates (1).pptLogic Gates (1).ppt
Logic Gates (1).ppt
 
boolean-algebra.pdf
boolean-algebra.pdfboolean-algebra.pdf
boolean-algebra.pdf
 
UNIT1-part2.pptx
UNIT1-part2.pptxUNIT1-part2.pptx
UNIT1-part2.pptx
 
Chapter 4. logic function and boolean algebra
Chapter 4. logic function and boolean algebraChapter 4. logic function and boolean algebra
Chapter 4. logic function and boolean algebra
 
Lecture_11.pdf
Lecture_11.pdfLecture_11.pdf
Lecture_11.pdf
 
Digital Electronics basics book1_pdf.pdf
Digital Electronics basics book1_pdf.pdfDigital Electronics basics book1_pdf.pdf
Digital Electronics basics book1_pdf.pdf
 
02-gates-w.pptx
02-gates-w.pptx02-gates-w.pptx
02-gates-w.pptx
 
Boolean Algebra
Boolean AlgebraBoolean Algebra
Boolean Algebra
 
UNIT1-part2.pptx
UNIT1-part2.pptxUNIT1-part2.pptx
UNIT1-part2.pptx
 
Logic Gates.pptx
Logic Gates.pptxLogic Gates.pptx
Logic Gates.pptx
 
Electronic Circuits
Electronic  CircuitsElectronic  Circuits
Electronic Circuits
 
Decppt
DecpptDecppt
Decppt
 
Logic gates and circuits
Logic gates and circuitsLogic gates and circuits
Logic gates and circuits
 
Boolean Algebra part 2.ppt
Boolean Algebra part 2.pptBoolean Algebra part 2.ppt
Boolean Algebra part 2.ppt
 
Boolean Algebra DLD
Boolean Algebra DLDBoolean Algebra DLD
Boolean Algebra DLD
 
Logic gates (2)
Logic gates (2)Logic gates (2)
Logic gates (2)
 

More from ikjsamuel

Database system
Database systemDatabase system
Database systemikjsamuel
 
Database system
Database systemDatabase system
Database systemikjsamuel
 
Database system
Database systemDatabase system
Database systemikjsamuel
 
Database system-DBMS
Database system-DBMSDatabase system-DBMS
Database system-DBMSikjsamuel
 
Reconciliation statement
Reconciliation statementReconciliation statement
Reconciliation statementikjsamuel
 
Binary Numbers
Binary NumbersBinary Numbers
Binary Numbersikjsamuel
 
Fund&Cash Flow
Fund&Cash FlowFund&Cash Flow
Fund&Cash Flowikjsamuel
 

More from ikjsamuel (8)

Database system
Database systemDatabase system
Database system
 
Database system
Database systemDatabase system
Database system
 
Database system
Database systemDatabase system
Database system
 
Database system-DBMS
Database system-DBMSDatabase system-DBMS
Database system-DBMS
 
Reconciliation statement
Reconciliation statementReconciliation statement
Reconciliation statement
 
Binary Numbers
Binary NumbersBinary Numbers
Binary Numbers
 
Staisticsii
StaisticsiiStaisticsii
Staisticsii
 
Fund&Cash Flow
Fund&Cash FlowFund&Cash Flow
Fund&Cash Flow
 

Recently uploaded

Arihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdfArihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdfchloefrazer622
 
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
 
Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3JemimahLaneBuaron
 
The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13Steve Thomason
 
APM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across SectorsAPM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across SectorsAssociation for Project Management
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingTechSoup
 
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...Marc Dusseiller Dusjagr
 
Measures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeMeasures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeThiyagu K
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxiammrhaywood
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityGeoBlogs
 
Mastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionMastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionSafetyChain Software
 
Presiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha electionsPresiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha electionsanshu789521
 
Micromeritics - Fundamental and Derived Properties of Powders
Micromeritics - Fundamental and Derived Properties of PowdersMicromeritics - Fundamental and Derived Properties of Powders
Micromeritics - Fundamental and Derived Properties of PowdersChitralekhaTherkar
 
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
 
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptxContemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptxRoyAbrique
 
Alper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentAlper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentInMediaRes1
 
Science 7 - LAND and SEA BREEZE and its Characteristics
Science 7 - LAND and SEA BREEZE and its CharacteristicsScience 7 - LAND and SEA BREEZE and its Characteristics
Science 7 - LAND and SEA BREEZE and its CharacteristicsKarinaGenton
 
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
 
Separation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesSeparation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesFatimaKhan178732
 

Recently uploaded (20)

Arihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdfArihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdf
 
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
 
Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3
 
The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13
 
APM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across SectorsAPM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across Sectors
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy Consulting
 
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
 
Measures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeMeasures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and Mode
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activity
 
Mastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionMastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory Inspection
 
Presiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha electionsPresiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha elections
 
Micromeritics - Fundamental and Derived Properties of Powders
Micromeritics - Fundamental and Derived Properties of PowdersMicromeritics - Fundamental and Derived Properties of Powders
Micromeritics - Fundamental and Derived Properties of Powders
 
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
 
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptxContemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
 
Alper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentAlper Gobel In Media Res Media Component
Alper Gobel In Media Res Media Component
 
Science 7 - LAND and SEA BREEZE and its Characteristics
Science 7 - LAND and SEA BREEZE and its CharacteristicsScience 7 - LAND and SEA BREEZE and its Characteristics
Science 7 - LAND and SEA BREEZE and its Characteristics
 
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
 
Separation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesSeparation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and Actinides
 

Truth table1

  • 1. TRUTH TABLE • Remember: – Decimal to Binary – Binary to Decimal – Binary math – Finish representation of data • Numbers • Symbols • Images • Audio • Today: – Boolean Logic – Truth Tables – Circuits 4-1
  • 2. 4-2
  • 3. What we will cover… • The connection between Boolean logic and circuits • Boolean (Propositional) Logic • The design of simple logic circuits • Representing simple logical sentences in hardware 4-3
  • 4. Logic and Logic Circuits • What is a circuit? – the complete path of an electric current, or a collection of electronic elements – We are interested in logic circuits, those whose output varies depending on their input. • Logic circuits emulate the Boolean logic operators from propositional logic 4-4
  • 5. Binary for Logic? • In Propositional Logic we examine the “truth” of sentences. – Sentences consist of: • Variables: – sub-sentences (A, B, C …) which are either true or false – In computer science, we use » true = 1 » false = 0 • Logical Operators: – e.g., NOT, OR, AND, XOR, NAND, NOR • Example sentence: – X = (A AND B) OR C • We examine the logic of a sentence through “truth table analysis” 4-5
  • 6. Simplest Truth Table a Single Variable • A single variable has only two possible values in Boolean logic: – true = 1 – false = 0 A • A “truth table” represents all of the possible values of a sentence given the possible values of 1 its inputs (variables). – We determine the output by considering all possible truth values for each variable – we want to see the results of all possible combinations of 0 each variable • How many rows should appear in a given truth table? • Example: A = “It is raining” 4-6
  • 7. Logical AND • Logical AND: – Takes two variables – Evaluates to True only if both variables are true – Written as: (A B) • Example: – A = It is raining – B = I am in London – (A B) = It is raining and I am in London – What is the truth table for (A B) ? • How many combinations of values exist for A AND B? 4-7
  • 8. Logical AND on two variables It is raining and I It is raining I am in London am in London A B A B 1 1 1 1 0 0 0 1 0 0 0 0 A AND B is true if both A is true and B is true Otherwise, A AND B is false. 4-8
  • 9. Logical Or • A OR B • A B A B A B • Has two values: true if either A or B is true, or if both A and B 1 1 1 are true • false if they are both false. 1 0 1 • Are either of these things true? – Note: both can be true… this is not “exclusive or” 0 1 1 0 0 0 4-9
  • 10. Logical Not • Used to invert a meaning • NOT A as an alternative: A A • A = “It is raining” 1 0 • A = “It is not raining” 0 1 4-10
  • 11. XOR- Exclusive Or A B A XOR B • True when either A or B are true, but not both 1 1 0 • So “A and NOT B” or “B and NOT A” 1 0 1 • Built from simpler logic: (A B) ( A B) 0 1 1 0 0 0 4-11
  • 12. Nor and Nand A B A B A B A Nand B A Nor B 1 1 1 1 0 0 1 0 0 1 1 0 0 1 0 1 1 0 0 0 0 0 1 1 4-12
  • 13. Truth Table Analysis • How do you build a truth table? – Step 1: Create columns for all the variables in the sentence – Step 2: Determine the number of rows you need given the variables in your sentence – Step 3: Define all possible sequences (cases) for your truth table, starting with all variables false and ending with all variables true – Step 4: Deconstruct the logic in the sentence and fill in your table – What is the truth table for: 1. X = A AND (NOT B) 2. X = (NOT A) AND (NOT B) 3. X = (A OR B) AND C 4-13
  • 14. Logic and Logic Circuits • What is a circuit? – the complete path of an electric current, or a collection of electronic elements – we will consider transistors to be the basic building blocks of logic computer hardware. – Logic circuits are built from a series of transistors • What is a transistor? 4-14
  • 15. Transistors – A transistor is an electronic device that has three ends: a source, a sink, and a source gate – In this type of transistor, when the gate is: gate • ON, power flows from the source to the sink. • OFF, power does not flow to the sink sink 4-15
  • 16. Transistors (like faucets) The operation of a transistor could be explained by making an analogy to faucets. • A faucet has: – An input • the water company • “source” – An output • a sink (where water is drained) • “sink” – Flow control • If the tap knob (gate) is turned : – ON water flows from the source to the sink – OFF no water flows. • The state of the tap determines the presence of water at the sink 4-16
  • 17. Transistors (like faucets) gate gate source source OFF ON sink sink • Changing from water to electricity … in transistors: – Electricity flows from the source to the sink with the gate = 1 (ON) – Electricity does not flow from the source to the sink with the gate = 0 (OFF) 4-17
  • 18. Transistors – The current technology used to build computer hardware (chips) is called CMOS. source • In CMOS we also use another kind of transistor, distinguished by the little bubble • The bubble means that this transistor works in the opposite way (it's ON gate when the gate is OFF and OFF when the gate is ON). sink 4-18
  • 19. Building Complicated Circuits with Transistors Battery • What on earth does this do? If A=0 then . . . bottom gate is off top gate is on power flows from the battery, can’t go out the sink, and goes out through Z. Z = 1 If A = 1 then … A Z bottom gate is on top gate is off power doesn’t get to Z from the battery, and any power left in Z will flow out the sink. Z = 0 4-19
  • 20. Building Circuits with Transistors Battery A ? 1 0 A Z 0 1 What logical operator does this circuit perform? 4-20