SlideShare ist ein Scribd-Unternehmen logo
1 von 49
Software Developers
   View of Hardware
        Electronic Circuits
What are circuits?
   Computers are electrical devices, so
    therefore all functions performed by a
    computer need to done via the use of circuits.
   Circuits are designed via the use of Logic
    Gates which show the path and the way in
    which electronic signals are sent and
    received.
Logic Gates
   Are a hardware circuit that produces a 0 or 1,
    which is normally an electronic impulse.
   There are THREE basic logic gates and
    THREE extended gates that can be used to
    build integrated circuits.
BASIC GATES
1.       NOT Gate
         This is the simplest of all gates, it involves a
          single input and a single output.
         The purpose of this gate is the flipping of a bit
          similar to what is performed in one’s
          complement.
NOT Gate



        A   X
    0           1
NOT Gate
NOT Gate
NOT Gate – Truth Table


                 IF A = 0 THEN
   A       X
                      X=1
   0       1     ELSE
                      X=0
   1       0     ENDIF
BASIC GATES
1.       AND Gate
         This is involves two inputs to produce one
          output.
         Both inputs must be true for the output to be true.
AND Gate



    A
           X
    B
AND Gate
AND Gate
AND Gate
AND Gate – Truth Table

 A    B     X    IF A=1 AND B=1THEN

 0    0     0        X=1

 0    1     0
                 ELSE
                     X=0
 1    0     0
                 ENDIF
 1    1     1
BASIC GATES
1.       OR Gate
         This is involves two inputs to produce one
          output.
         If either inputs are true then the output will be
          true.
OR Gate



    A
          X
    B
OR Gate
OR Gate
OR Gate
OR Gate
OR Gate – Truth Table

 A    B     X    IF A=1 OR B=1THEN

 0    0     0           X=1

 0    1     1
                 ELSE
                        X=0
 1    0     1
                 ENDIF
 1    1     1
Activity 1
Complete the truth table for the following circuit.



     A
                          X
                                          Y
     B
Truth Table

       A      B   X   Y

       0      0

       0      1

       1      0

       1      1
EXTENDED GATES
1.       NAND Gate
         This is involves two inputs to produce one
          output.
         The output is the opposite of an AND gate.
         Is a combination of an AND and NOT gate.
NAND Gate



    A
            X
    B
NAND Gate – Truth Table

 A    B     X   IF A=1 AND B=1THEN

 0    0     1       X=0

 0    1     1
                ELSE
                    X=1
 1    0     1
                ENDIF
 1    1     0
EXTENDED GATES
1.       NOR Gate
         This is involves two inputs to produce one
          output.
         The output is the opposite of an OR gate.
         It is a combination of an OR and NOT.
NOR Gate



    A
           X
    B
NOR Gate – Truth Table

 A    B     X    IF A=1 AND B=1THEN

 0    0     1        X=0

 0    1     0
                 ELSE
                     X=1
 1    0     0
                 ENDIF
 1    1     0
EXTENDED GATES
1.       XOR Gate
         This stands for exclusive OR.
         This gate is true if only one input is true.
XOR Gate



    A
           X
    B
XOR Gate – Truth Table

        A    B     X

        0    0     0

        0    1     1

        1    0     1

        1    1     0
SPECIALITY CIRCUITS
       Designed to make use of our binary
        knowledge and our circuitry knowledge
       Examples include:
        Adders
        Flip Flops
        Shifts
DESIGNING SPECIALITY
CIRCUITS
   These circuits are written to provide a specific
    function:
       Adder (Binary Addition)
       Flip Flop (Binary Storage)
DESIGNING SPECIALITY
CIRCUITS
       Follow these steps:
        Identify inputs and outputs
        Identify the components required to produce the
         output (AND, OR, NOT, NAND, NOR, XOR)
        Construct the solution with logic gates
        Check the solution for validity (with a truth table)
        Evaluate the circuit design (could you make this
         circuit better by chaining different logic gates)
Binary Half Adder
   This device is basically a calculator.
   Lets look at the half adder truth table first.
Binary Half Adders
                            INPUT         OUTPUT
   To create a
    Binary Adder,       A           B   Carry   Sum
    we need to find
    a logic gate that
    give us the         0           0    0       0
    Carry output
    and a logic gate
                        0           1    0       1
    the Sum output

                        1           0    0       1

                        1           1    1       0
Binary Half Adders
                                  INPUT         OUTPUT
       Carry output is
        created using a       A           B   Carry   Sum
        AND logic gate

                              0           0    0       0
A
                          X
B                             0           1    0       1

                              1           0    0       1

                              1           1    1       0
Binary Half Adders
                              INPUT         OUTPUT
       Sum output is
        created using a   A           B   Carry   Sum
        XOR logic gate

                          0           0    0       0
A
                      X
B
                          0           1    0       1

                          1           0    0       1

                          1           1    1       0
Binary Half Adders

The circuit:
  A

                     Carry (C)
  B




                     Sum (S)
Half And Full Adders

   Half Adders only work to add two digits
   To add more than 2 binary digits we need a full
    adder
   A full adder allows us to add the “carry” value to
    an binary addition
Full Adders

   A

   B

                     Carry
                     (C)


               Sum (S)
Carry in
Truth Tables
Construct a truth table for the full adder.
Truth Table
  A      B    CARRY   CARRY   SUM
                IN
  0      0       0      0      0
  0      0       1      0      1
  0      1       0      0      1
  0      1       1      1      0
  1      0       0      0      1
  1      0       1      1      0
  1      1       0      1      0
  1      1       1      1      1
Circuit Design Steps
   Identify inputs and outputs.
    A+B+C=X
   Identify the components needed to obtain
    the desired output.
    AND/OR/NOT/XOR/NAND/NOR
   Construct a truth table to test.
Activity 2
   Construct a truth table for the following
    circuit.

    A
                    Y
    B                             X



    C
A
    B               X



    C
A       B   C   Y       X
0       0   0   1       1
0       0   1   1       0
0       1   0   1       1
0       1   1   1       0
1       0   0   1       1
1       0   1   1       0
1       1   0   0       0
1       1   1   0       1
Activity 3
Fault   Door   Switch   x   Light
  0      0       0            0
  0      0       1            0
  0      1       0            0
  0      1       1            1
  1      0       0            0
  1      0       1            0
  1      1       0            0
  1      1       1            0

Weitere ähnliche Inhalte

Was ist angesagt?

Lecture 2.4 logic_gate_&_simple_logic_circuit
Lecture 2.4 logic_gate_&_simple_logic_circuitLecture 2.4 logic_gate_&_simple_logic_circuit
Lecture 2.4 logic_gate_&_simple_logic_circuit
KMJ Science Computer
 
Report on-the-logic-gates
Report on-the-logic-gatesReport on-the-logic-gates
Report on-the-logic-gates
bhardubhai
 

Was ist angesagt? (19)

Physics investigatory project
Physics investigatory projectPhysics investigatory project
Physics investigatory project
 
Lecture 2.4 logic_gate_&_simple_logic_circuit
Lecture 2.4 logic_gate_&_simple_logic_circuitLecture 2.4 logic_gate_&_simple_logic_circuit
Lecture 2.4 logic_gate_&_simple_logic_circuit
 
Report on-the-logic-gates
Report on-the-logic-gatesReport on-the-logic-gates
Report on-the-logic-gates
 
Physics investigatory project
Physics investigatory projectPhysics investigatory project
Physics investigatory project
 
Digital Electronics Logic gates
Digital Electronics Logic gatesDigital Electronics Logic gates
Digital Electronics Logic gates
 
Physic investigatory
Physic investigatoryPhysic investigatory
Physic investigatory
 
296779866 c-b-s-e-class-12-physics-project-on-logic-gates
296779866 c-b-s-e-class-12-physics-project-on-logic-gates296779866 c-b-s-e-class-12-physics-project-on-logic-gates
296779866 c-b-s-e-class-12-physics-project-on-logic-gates
 
Logic gates 12th standard ivestigatory project
Logic gates 12th standard ivestigatory projectLogic gates 12th standard ivestigatory project
Logic gates 12th standard ivestigatory project
 
Logic gates 07 11-2014
Logic gates 07 11-2014Logic gates 07 11-2014
Logic gates 07 11-2014
 
Logic gates
Logic gatesLogic gates
Logic gates
 
Logic gate class 12
Logic gate class 12Logic gate class 12
Logic gate class 12
 
Boolean algebra
Boolean algebraBoolean algebra
Boolean algebra
 
Computer circuit logic
Computer circuit logicComputer circuit logic
Computer circuit logic
 
Project on logic And Gate
Project on logic And GateProject on logic And Gate
Project on logic And Gate
 
9. logic gates._rr
9. logic gates._rr9. logic gates._rr
9. logic gates._rr
 
Physics investigatgory project on logic gates class 12
Physics  investigatgory project on logic gates class 12Physics  investigatgory project on logic gates class 12
Physics investigatgory project on logic gates class 12
 
verification of logic gates cbse class 12
verification of logic gates cbse class 12verification of logic gates cbse class 12
verification of logic gates cbse class 12
 
Chap 3
Chap 3Chap 3
Chap 3
 
Class 12 Physics Investigatory Project Work, Practical- study of various logi...
Class 12 Physics Investigatory Project Work, Practical- study of various logi...Class 12 Physics Investigatory Project Work, Practical- study of various logi...
Class 12 Physics Investigatory Project Work, Practical- study of various logi...
 

Ähnlich wie Electronic Circuits

Mux decod pld2_vs2
Mux decod pld2_vs2Mux decod pld2_vs2
Mux decod pld2_vs2
WanNurdiana
 
Fault tolerant and online testability
Fault tolerant and online testabilityFault tolerant and online testability
Fault tolerant and online testability
Sajib Mitra
 

Ähnlich wie Electronic Circuits (20)

EASA Part 66 Module 5.5 : Logic Circuit
EASA Part 66 Module 5.5 : Logic CircuitEASA Part 66 Module 5.5 : Logic Circuit
EASA Part 66 Module 5.5 : Logic Circuit
 
Bca i sem de lab
Bca i sem  de labBca i sem  de lab
Bca i sem de lab
 
Logic Gates.pptx
Logic Gates.pptxLogic Gates.pptx
Logic Gates.pptx
 
Lecture 04-Digital logic gates.pptx
Lecture 04-Digital logic gates.pptxLecture 04-Digital logic gates.pptx
Lecture 04-Digital logic gates.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
 
logic gates
logic gates logic gates
logic gates
 
Logic gates - AND, OR, NOT, NOR, NAND, XOR, XNOR Gates.
Logic gates - AND, OR, NOT, NOR, NAND, XOR, XNOR Gates.Logic gates - AND, OR, NOT, NOR, NAND, XOR, XNOR Gates.
Logic gates - AND, OR, NOT, NOR, NAND, XOR, XNOR Gates.
 
Logic gates - AND, OR, NOT, NOR, NAND, XOR, XNOR Gates.
Logic gates - AND, OR, NOT, NOR, NAND, XOR, XNOR Gates. Logic gates - AND, OR, NOT, NOR, NAND, XOR, XNOR Gates.
Logic gates - AND, OR, NOT, NOR, NAND, XOR, XNOR Gates.
 
Mux decod pld2_vs2
Mux decod pld2_vs2Mux decod pld2_vs2
Mux decod pld2_vs2
 
Digital logic Gates of Computer Science
Digital logic Gates of Computer ScienceDigital logic Gates of Computer Science
Digital logic Gates of Computer Science
 
Logical Gates
Logical GatesLogical Gates
Logical Gates
 
Logic gates
Logic gatesLogic gates
Logic gates
 
Fault tolerant and online testability
Fault tolerant and online testabilityFault tolerant and online testability
Fault tolerant and online testability
 
logic gates functions.pptx
logic gates functions.pptxlogic gates functions.pptx
logic gates functions.pptx
 
Logic gates
Logic gatesLogic gates
Logic gates
 
Digital 1
Digital 1Digital 1
Digital 1
 
Digital Basics
Digital BasicsDigital Basics
Digital Basics
 
Digital logic gates and Boolean algebra
Digital logic gates and Boolean algebraDigital logic gates and Boolean algebra
Digital logic gates and 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
 
Boolean Algebra.pptx
 Boolean Algebra.pptx Boolean Algebra.pptx
Boolean Algebra.pptx
 

Mehr von gavhays

Data types
Data typesData types
Data types
gavhays
 
End user development
End user developmentEnd user development
End user development
gavhays
 
Representation Of Data
Representation Of DataRepresentation Of Data
Representation Of Data
gavhays
 
N301 Designing Circuits
N301 Designing CircuitsN301 Designing Circuits
N301 Designing Circuits
gavhays
 
Integer Representation
Integer RepresentationInteger Representation
Integer Representation
gavhays
 
Binary Arithmetic
Binary ArithmeticBinary Arithmetic
Binary Arithmetic
gavhays
 
Understanding Flip Flops
Understanding Flip FlopsUnderstanding Flip Flops
Understanding Flip Flops
gavhays
 
Programming Hardware Devices
Programming Hardware DevicesProgramming Hardware Devices
Programming Hardware Devices
gavhays
 
Boolean Algebra
Boolean AlgebraBoolean Algebra
Boolean Algebra
gavhays
 
Sdd Maintenance Of Software Solutions
Sdd Maintenance Of Software SolutionsSdd Maintenance Of Software Solutions
Sdd Maintenance Of Software Solutions
gavhays
 
Sdd Documentation
Sdd DocumentationSdd Documentation
Sdd Documentation
gavhays
 
Testing Software Solutions
Testing Software SolutionsTesting Software Solutions
Testing Software Solutions
gavhays
 
Reporting On The Testing Process
Reporting On The Testing ProcessReporting On The Testing Process
Reporting On The Testing Process
gavhays
 
S D D Program Development Tools
S D D  Program  Development  ToolsS D D  Program  Development  Tools
S D D Program Development Tools
gavhays
 
SDD Translation
SDD  TranslationSDD  Translation
SDD Translation
gavhays
 
The Role Of The Cpu
The Role Of The CpuThe Role Of The Cpu
The Role Of The Cpu
gavhays
 
Sdd Syntax Descriptions
Sdd Syntax DescriptionsSdd Syntax Descriptions
Sdd Syntax Descriptions
gavhays
 

Mehr von gavhays (19)

Data types
Data typesData types
Data types
 
End user development
End user developmentEnd user development
End user development
 
Representation Of Data
Representation Of DataRepresentation Of Data
Representation Of Data
 
N301 Designing Circuits
N301 Designing CircuitsN301 Designing Circuits
N301 Designing Circuits
 
Integer Representation
Integer RepresentationInteger Representation
Integer Representation
 
Binary Arithmetic
Binary ArithmeticBinary Arithmetic
Binary Arithmetic
 
Understanding Flip Flops
Understanding Flip FlopsUnderstanding Flip Flops
Understanding Flip Flops
 
Programming Hardware Devices
Programming Hardware DevicesProgramming Hardware Devices
Programming Hardware Devices
 
Plp
PlpPlp
Plp
 
Boolean Algebra
Boolean AlgebraBoolean Algebra
Boolean Algebra
 
Sdd Maintenance Of Software Solutions
Sdd Maintenance Of Software SolutionsSdd Maintenance Of Software Solutions
Sdd Maintenance Of Software Solutions
 
Sdd Documentation
Sdd DocumentationSdd Documentation
Sdd Documentation
 
Testing Software Solutions
Testing Software SolutionsTesting Software Solutions
Testing Software Solutions
 
Reporting On The Testing Process
Reporting On The Testing ProcessReporting On The Testing Process
Reporting On The Testing Process
 
S D D Program Development Tools
S D D  Program  Development  ToolsS D D  Program  Development  Tools
S D D Program Development Tools
 
SDD Translation
SDD  TranslationSDD  Translation
SDD Translation
 
The Role Of The Cpu
The Role Of The CpuThe Role Of The Cpu
The Role Of The Cpu
 
Sdd Syntax Descriptions
Sdd Syntax DescriptionsSdd Syntax Descriptions
Sdd Syntax Descriptions
 
Interface Design
Interface DesignInterface Design
Interface Design
 

Kürzlich hochgeladen

Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
Joaquim Jorge
 
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
?#DUbAI#??##{{(☎️+971_581248768%)**%*]'#abortion pills for sale in dubai@
 

Kürzlich hochgeladen (20)

Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processors
 
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
 
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a Fresher
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
 
Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century education
 
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUnderstanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
 
Real Time Object Detection Using Open CV
Real Time Object Detection Using Open CVReal Time Object Detection Using Open CV
Real Time Object Detection Using Open CV
 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day Presentation
 
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivity
 
GenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdfGenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdf
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdf
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...
 

Electronic Circuits

  • 1. Software Developers View of Hardware Electronic Circuits
  • 2. What are circuits?  Computers are electrical devices, so therefore all functions performed by a computer need to done via the use of circuits.  Circuits are designed via the use of Logic Gates which show the path and the way in which electronic signals are sent and received.
  • 3. Logic Gates  Are a hardware circuit that produces a 0 or 1, which is normally an electronic impulse.  There are THREE basic logic gates and THREE extended gates that can be used to build integrated circuits.
  • 4. BASIC GATES 1. NOT Gate  This is the simplest of all gates, it involves a single input and a single output.  The purpose of this gate is the flipping of a bit similar to what is performed in one’s complement.
  • 5. NOT Gate A X 0 1
  • 8. NOT Gate – Truth Table IF A = 0 THEN A X X=1 0 1 ELSE X=0 1 0 ENDIF
  • 9. BASIC GATES 1. AND Gate  This is involves two inputs to produce one output.  Both inputs must be true for the output to be true.
  • 10. AND Gate A X B
  • 14. AND Gate – Truth Table A B X IF A=1 AND B=1THEN 0 0 0 X=1 0 1 0 ELSE X=0 1 0 0 ENDIF 1 1 1
  • 15. BASIC GATES 1. OR Gate  This is involves two inputs to produce one output.  If either inputs are true then the output will be true.
  • 16. OR Gate A X B
  • 21. OR Gate – Truth Table A B X IF A=1 OR B=1THEN 0 0 0 X=1 0 1 1 ELSE X=0 1 0 1 ENDIF 1 1 1
  • 22. Activity 1 Complete the truth table for the following circuit. A X Y B
  • 23. Truth Table A B X Y 0 0 0 1 1 0 1 1
  • 24. EXTENDED GATES 1. NAND Gate  This is involves two inputs to produce one output.  The output is the opposite of an AND gate.  Is a combination of an AND and NOT gate.
  • 25. NAND Gate A X B
  • 26. NAND Gate – Truth Table A B X IF A=1 AND B=1THEN 0 0 1 X=0 0 1 1 ELSE X=1 1 0 1 ENDIF 1 1 0
  • 27. EXTENDED GATES 1. NOR Gate  This is involves two inputs to produce one output.  The output is the opposite of an OR gate.  It is a combination of an OR and NOT.
  • 28. NOR Gate A X B
  • 29. NOR Gate – Truth Table A B X IF A=1 AND B=1THEN 0 0 1 X=0 0 1 0 ELSE X=1 1 0 0 ENDIF 1 1 0
  • 30. EXTENDED GATES 1. XOR Gate  This stands for exclusive OR.  This gate is true if only one input is true.
  • 31. XOR Gate A X B
  • 32. XOR Gate – Truth Table A B X 0 0 0 0 1 1 1 0 1 1 1 0
  • 33. SPECIALITY CIRCUITS  Designed to make use of our binary knowledge and our circuitry knowledge  Examples include:  Adders  Flip Flops  Shifts
  • 34. DESIGNING SPECIALITY CIRCUITS  These circuits are written to provide a specific function:  Adder (Binary Addition)  Flip Flop (Binary Storage)
  • 35. DESIGNING SPECIALITY CIRCUITS  Follow these steps:  Identify inputs and outputs  Identify the components required to produce the output (AND, OR, NOT, NAND, NOR, XOR)  Construct the solution with logic gates  Check the solution for validity (with a truth table)  Evaluate the circuit design (could you make this circuit better by chaining different logic gates)
  • 36. Binary Half Adder  This device is basically a calculator.  Lets look at the half adder truth table first.
  • 37. Binary Half Adders INPUT OUTPUT  To create a Binary Adder, A B Carry Sum we need to find a logic gate that give us the 0 0 0 0 Carry output and a logic gate 0 1 0 1 the Sum output 1 0 0 1 1 1 1 0
  • 38. Binary Half Adders INPUT OUTPUT  Carry output is created using a A B Carry Sum AND logic gate 0 0 0 0 A X B 0 1 0 1 1 0 0 1 1 1 1 0
  • 39. Binary Half Adders INPUT OUTPUT  Sum output is created using a A B Carry Sum XOR logic gate 0 0 0 0 A X B 0 1 0 1 1 0 0 1 1 1 1 0
  • 40. Binary Half Adders The circuit: A Carry (C) B Sum (S)
  • 41. Half And Full Adders  Half Adders only work to add two digits  To add more than 2 binary digits we need a full adder  A full adder allows us to add the “carry” value to an binary addition
  • 42. Full Adders A B Carry (C) Sum (S) Carry in
  • 43. Truth Tables Construct a truth table for the full adder.
  • 44. Truth Table A B CARRY CARRY SUM IN 0 0 0 0 0 0 0 1 0 1 0 1 0 0 1 0 1 1 1 0 1 0 0 0 1 1 0 1 1 0 1 1 0 1 0 1 1 1 1 1
  • 45. Circuit Design Steps  Identify inputs and outputs. A+B+C=X  Identify the components needed to obtain the desired output. AND/OR/NOT/XOR/NAND/NOR  Construct a truth table to test.
  • 46. Activity 2  Construct a truth table for the following circuit. A Y B X C
  • 47. A B X C A B C Y X 0 0 0 1 1 0 0 1 1 0 0 1 0 1 1 0 1 1 1 0 1 0 0 1 1 1 0 1 1 0 1 1 0 0 0 1 1 1 0 1
  • 49. Fault Door Switch x Light 0 0 0 0 0 0 1 0 0 1 0 0 0 1 1 1 1 0 0 0 1 0 1 0 1 1 0 0 1 1 1 0