XOR, XNOR, and Binary Adders

Slides:



Advertisements
Similar presentations
ADDER, HALF ADDER & FULL ADDER
Advertisements

Combinational Logic Circuits Chapter 2 Mano and Kime.
ECE 3110: Introduction to Digital Systems Chapter 6 Combinational Logic Design Practices XOR, Parity Circuits, Comparators.
Section 10.3 Logic Gates.
DIGITAL SYSTEMS TCE OTHER COMBINATIONAL LOGIC CIRCUITS WEEK 7 AND WEEK 8 (LECTURE 1 OF 3) COMPARATORS CODE CONVERTERS.
ECE 301 – Digital Electronics
Combinational circuits
TDC 311 Digital Logic. Truth Tables  AND  OR  NOT  NAND  NOR  XOR  XNOR.
AOI Logic Implementation © 2014 Project Lead The Way, Inc.Digital Electronics.
Part 2: DESIGN CIRCUIT. LOGIC CIRCUIT DESIGN x y z F F = x + y’z x y z F Truth Table Boolean Function.
AOI Logic Implementation
Lecture No. 14 Combinational Functional Devices svbitec.wordpress.com.
Today’s Topics Digital Logic Design Digital Logic Design Boolean Logic Boolean Logic Digital Logic Circuits Digital Logic Circuits.
Morgan Kaufmann Publishers
Logic Design CS221 1 st Term combinational circuits Cairo University Faculty of Computers and Information.
Binary Numbers.
Binary Addition CSC 103 September 17, 2007.
XOR and XNOR Logic Gates. XOR Function Output Y is TRUE if input A OR input B are TRUE Exclusively, else it is FALSE. Logic Symbol  Description  Truth.
Digital Computer Concept and Practice Copyright ©2012 by Jaejin Lee Logic Circuits I.
MSI Devices M. Mano & C. Kime: Logic and Computer Design Fundamentals (Chapter 5) Dr. Costas Kyriacou and Dr. Konstantinos Tatas ACOE161 - Digital Logic.
Computer Architecture I: Digital Design Dr. Robert D. Kent Logic Design Medium Scale Integration and Programmable Logic Devices Part I.
ADDERS Half Adders Recall that the basic rules of binary addition are as indicated below in Table 2-9. A circuit known as the half-adder carries out these.
Chapter 10 (Part 2): Boolean Algebra  Logic Gates (10.3) (cont.)  Minimization of Circuits (10.4)
Module 9.  Digital logic circuits can be categorized based on the nature of their inputs either: Combinational logic circuit It consists of logic gates.
AOI Logic Implementation
Sneha.  Gates Gates  Characteristics of gates Characteristics of gates  Basic Gates Basic Gates  AND Gate AND Gate  OR gate OR gate  NOT gate NOT.
Computer Science 101 Circuit Design - Examples. Sum of Products Algorithm Identify each row of the output that has a 1. Identify each row of the output.
4. Computer Maths and Logic 4.2 Boolean Logic Logic Circuits.
Digital Logic. 2 Abstractions in CS (gates) Basic Gate: Inverter IO IO GNDI O Vcc Resister (limits conductivity) Truth Table.
Logic Design CS 270: Mathematical Foundations of Computer Science Jeremy Johnson.
1 EG 32 Digital Electronics Thought for the day You learn from your mistakes..... So make as many as you can and you will eventually know everything.
Universal college of engineering & technology. .By Harsh Patel)
Sneha.  A combinational circuit that performs the addition of two bits is called a half adder.  It has two inputs.  It has two outputs.
Combinational Logic Design Process © 2014 Project Lead The Way, Inc.Digital Electronics.
Boolean Algebra & Logic Circuits Dr. Ahmed El-Bialy Dr. Sahar Fawzy.
Logic Design CS221 1 st Term combinational circuits Cairo University Faculty of Computers and Information.
Gates & Logic Computer Organization I 1 August 2009 © McQuain, Feng & Ribbens Logic Design Goal:to become literate in most common concepts.
Appendix B: Digital Logic
How does a Computer Add ? Logic Gates within chips: AND Gate A B Output OR Gate A B Output A B A B
ECE 2110: Introduction to Digital Systems Chapter 6 Combinational Logic Design Practices XOR and parity check Circuits.
WORKING PRINCIPLE OF DIGITAL LOGIC
Electrical Engineering Engineering the Future Digital Circuits Fundamentals Hands-on Full-Adder Simulation (afternoon)
LOGIC CIRCUITLOGIC CIRCUIT. Goal To understand how digital a computer can work, at the lowest level. To understand what is possible and the limitations.
Lecture No. 14 Combinational Functional Devices. Digital Logic &Design Dr. Waseem Ikram Lecture 14.
Combinational Logic Weiqiang Sun. A brief review Logic gates Logic gates AND, OR, NOT AND, OR, NOT NAND, NOR, XOR, XNOR NAND, NOR, XOR, XNOR Boolean algebra.
Logic Gates Learning Objectives Learn that there is a one-to-one relationship between logic gates and Boolean expressions Learn how logic gates are combined.
Dr.Ahmed Bayoumi Dr.Shady Elmashad
Eng. Mai Z. Alyazji October, 2016
ECE 3130 Digital Electronics and Design
Combinational Circuits
Computer Architecture CST 250
Summary Half-Adder Basic rules of binary addition are performed by a half adder, which has two binary inputs (A and B) and two binary outputs (Carry out.
XOR, XNOR, and Binary Adders
Basics Combinational Circuits Sequential Circuits
Karnaugh Maps (K-Maps)
XOR, XNOR, & Binary Adders
Boolean Algebra.
Week 7: Gates and Circuits: PART II
Digital Logic.
Number Systems and Circuits for Addition
Logic Gates.
Logic Gates.
AOI Logic Implementation
Digital Logic.
DIGITAL ELECTRONICS B.SC FY
Chapter 10.3 and 10.4: Combinatorial Circuits
Chapter 2 Gates.
XOR, XNOR, and Binary Adders
XOR Function Logic Symbol  Description  Truth Table 
XOR, XNOR, and Binary Adders
Presentation transcript:

XOR, XNOR, and Binary Adders XOR, XNOR, & Adders Digital Electronics Lesson 2.4 – Specific Comb Circuit & Misc Topics XOR, XNOR, and Binary Adders Digital Electronics © 2014 Project Lead The Way, Inc. Project Lead The Way, Inc. Copyright 2009

XOR, XNOR & Adders This presentation will demonstrate Digital Electronics Lesson 2.4 – Specific Comb Circuit & Misc Topics This presentation will demonstrate The basic function of the exclusive OR (XOR) gate. The basic function of the exclusive NOR (XNOR) gate. How XOR and XNOR gates can be used to implement combinational logic design. How XOR gates can be using to design half and full adders. How full adders can be implemented with Small Scale Integration (SSI) and Medium Scale Integration (MSI) logic. How single bit half and full adders can be cascaded to make multi-bit adders. Introductory Slide / Overview of Presentation Project Lead The Way, Inc. Copyright 2009

XOR Gate – Exclusive OR X Y X Y Z 1 XOR, XNOR, & Adders Digital Electronics Lesson 2.4 – Specific Comb Circuit & Misc Topics X Y X Y Z 1 Overview of basic XOR gates: Logic Symbol, Logic Expression, and Truth Table. Project Lead The Way, Inc. Copyright 2009

XNOR Gate – Exclusive NOR XOR, XNOR, & Adders Digital Electronics Lesson 2.4 – Specific Comb Circuit & Misc Topics X Y X Y Z 1 Overview of basic XNOR gates: Logic Symbol, Logic Expression, and Truth Table. Project Lead The Way, Inc. Copyright 2009

Logic Design with XOR & XNOR XOR, XNOR, & Adders Digital Electronics Lesson 2.4 – Specific Comb Circuit & Misc Topics Example Algebraically manipulate the logic expression for F1 so that XOR and XNOR gates can be used to implement the function. Other AOI gates can be used as needed. Pause the presentation and allow students to complete the example. The solution is on the next slide. Project Lead The Way, Inc. Copyright 2009

Logic Design with XOR & XNOR XOR, XNOR, & Adders Logic Design with XOR & XNOR Digital Electronics Lesson 2.4 – Specific Comb Circuit & Misc Topics Solution This slide includes the solution to example #1. If you print handouts, do not print this page. Project Lead The Way, Inc. Copyright 2009

Binary Addition Single Bit Addition: Multiple Bit Addition: Carry Cout XOR, XNOR, & Adders Digital Electronics Lesson 2.4 – Specific Comb Circuit & Misc Topics Single Bit Addition: Carry Multiple Bit Addition: Cin Cout A B Sum This slide shows the four possible combinations of adding together two single bit binary numbers and how these single bits can be cascaded into the addition of two 4-bit binary numbers. The 4-bit is just an example; we could have used 8-bits, 12-bits, etc. Project Lead The Way, Inc. Copyright 2009

Two Types of Adders Half Adder Full Adder 2 Inputs (A & B) XOR, XNOR, & Adders Two Types of Adders Digital Electronics Lesson 2.4 – Specific Comb Circuit & Misc Topics Half Adder Full Adder 2 Inputs (A & B) 2 Outputs (Sum & Cout) Used for LSB only 3 Inputs (A, B, Cin) 2 Outputs (Sum & Cout) Used for all other bits Half Adder A B Sum Cout Full Adder A B Cin Sum Cout Explain the two types of adders, half adder and full adder. Project Lead The Way, Inc. Copyright 2009

Half Adder – Design A B Sum Cout 1 XOR, XNOR, & Adders Half Adder – Design Digital Electronics Lesson 2.4 – Specific Comb Circuit & Misc Topics A B Sum Cout 1 This slide includes a truth table and logic equations for a half adder. Neither K-Mapping nor Boolean algebra were required because of the simplicity of the logic. Project Lead The Way, Inc. Copyright 2009

Half Adder - Circuit Logic diagram for a half adder. XOR, XNOR, & Adders Digital Electronics Lesson 2.4 – Specific Comb Circuit & Misc Topics Logic diagram for a half adder. Project Lead The Way, Inc. Copyright 2009

Full Adder – Design of Cout XOR, XNOR, & Adders Digital Electronics Lesson 2.4 – Specific Comb Circuit & Misc Topics A B Cin Sum Cout 1 V 1 Truth table for full adder and K-Map for the Cout output of the full adder. Project Lead The Way, Inc. Copyright 2009

Full Adder – Design of Sum XOR, XNOR, & Adders Digital Electronics Lesson 2.4 – Specific Comb Circuit & Misc Topics A B Cin Sum Cout 1 V 1 Truth table for full adder and K-Map for the Sum output of the full adder. Note that the K-Map did not simplify the expression. K-Mapping did NOT help us simplify . . . Let’s try Boolean algebra. Project Lead The Way, Inc. Copyright 2009

Boolean Simplification of Sum XOR, XNOR, & Adders Digital Electronics Lesson 2.4 – Specific Comb Circuit & Misc Topics Boolean algebra simplification for the sum output of a full adder. Project Lead The Way, Inc. Copyright 2009

Full Adder - Circuit Logic diagram for a full adder. XOR, XNOR, & Adders Digital Electronics Lesson 2.4 – Specific Comb Circuit & Misc Topics Logic diagram for a full adder. Project Lead The Way, Inc. Copyright 2009

XOR, XNOR, & Adders Full Adder: AOI vs. XOR Digital Electronics Lesson 2.4 – Specific Comb Circuit & Misc Topics Though XOR gates can be used for implementing any combinational logic design, their primary application is adder circuits. Compare the AOI implementation (above) for the sum function to the XOR implementation (below). This slide compares the sum output of a full adder, one implemented with AOI logic, and one implemented with XOR. This illustrates why we have XOR gates. Project Lead The Way, Inc. Copyright 2009

MSI Full Adder SSI - Full Adder MSI - Full Adder XOR, XNOR, & Adders Digital Electronics Lesson 2.4 – Specific Comb Circuit & Misc Topics Introduction of the 74LS183 MSI full adder SSI - Full Adder MSI - Full Adder Project Lead The Way, Inc. Copyright 2009

Cascading Adders – Four Bits XOR, XNOR, & Adders Digital Electronics Lesson 2.4 – Specific Comb Circuit & Misc Topics Example: 6 + 3 = 9 This slide provides an example and general form for cascading single bit adders into four bit adders. The 4-bit adder is simply being used as an example. General Form Project Lead The Way, Inc. Copyright 2009

Four Bit Adder with SSI Logic XOR, XNOR, & Adders Four Bit Adder with SSI Logic Digital Electronics Lesson 2.4 – Specific Comb Circuit & Misc Topics Full Adder Full Adder 4-Bit adders built with SSI. Note that the LSB only required a half adder. Full Adder Half Adder Project Lead The Way, Inc. Copyright 2009

Four Bit Adder with MSI Logic XOR, XNOR, & Adders Four Bit Adder with MSI Logic Digital Electronics Lesson 2.4 – Specific Comb Circuit & Misc Topics Full Adder Full Adder Full Adder 4-Bit adders built with MSI. Note that the LSB is a full adder. We must contact the Cin to a logic zero (i.e., ground). Full Adder Project Lead The Way, Inc. Copyright 2009