Hardware Implementations Gates and Circuits. Three Main Gates  AND  OR  NOT.

Slides:



Advertisements
Similar presentations
(CSC 102) Discrete Structures Lecture 5.
Advertisements

ADDER, HALF ADDER & FULL ADDER
Digital Circuits. Review – Getting the truth table The first step in designing a digital circuit usually is to get the truth table. That is, for every.
Combinational Circuits ENEL 111. Common Combinationals Circuits NAND gates and Duality Adders Multiplexers.
Cosc 2150: Computer Organization Chapter 3: Boolean Algebra and Digital Logic.
Gates and Circuits. Three Main Gates  AND  OR  NOT.
Chapter 4 Logic Gates and Boolean Algebra. Introduction Logic gates are the actual physical implementations of the logical operators. These gates form.
Boolean Algebra and Truth Table The mathematics associated with binary number system (or logic) is call Boolean: –“0” and “1”, or “False” and “True” –Calculation.
Part 2: DESIGN CIRCUIT. LOGIC CIRCUIT DESIGN x y z F F = x + y’z x y z F Truth Table Boolean Function.
Chapter 7 Arithmetic Operations and Circuits Hexadecimal Arithmetic 4 binary bits represent a single hexadecimal digit Addition –Add the digits.
Arithmetic Operations and Circuits Lecture 5. Binary Arithmetic let’s look at the procedures for performing the four basic arithmetic functions: addition,
CS 105 Digital Logic Design
22C:19 Discrete Math Boolean Algebra & Digital Logic Fall 2010 Sukumar Ghosh.
CS1Q Computer Systems Lecture 5 Simon Gay. Lecture 5CS1Q Computer Systems - Simon Gay2 Where we are Global computing: the Internet Networks and distributed.
1 CHAPTER 4: PART I ARITHMETIC FOR COMPUTERS. 2 The MIPS ALU We’ll be working with the MIPS instruction set architecture –similar to other architectures.
Logic Design CS221 1 st Term combinational circuits Cairo University Faculty of Computers and Information.
Gates and Circuits Monday/Wednesday Week 7. Electronic Circuits  Two types of circuit diagrams See pp. 238 in The Analytical Engine by Decker and Hirshfield.
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.
Binary Addition Section 4.5. Binary Addition Example.
SUPLEMENTARY CHAPTER 1: An Introduction to Digital Logic The Architecture of Computer Hardware and Systems Software: An Information Technology Approach.
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.
Module 9.  Digital logic circuits can be categorized based on the nature of their inputs either: Combinational logic circuit It consists of logic gates.
Lecture 9 Topics: –Combinational circuits Basic concepts Examples of typical combinational circuits –Half-adder –Full-adder –Ripple-Carry adder –Decoder.
Logic Gates Logic gates are electronic digital circuit perform logic functions. Commonly expected logic functions are already having the corresponding.
DIGITAL CIRCUITS David Kauchak CS52 – Fall 2015.
IT253: Computer Organization Lecture 7: Logic and Gates: Digital Design Tonga Institute of Higher Education.
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.
Half Adder & Full Adder Patrick Marshall. Intro Adding binary digits Half adder Full adder Parallel adder (ripple carry) Arithmetic overflow.
Universal college of engineering & technology. .By Harsh Patel)
1 Ethics of Computing MONT 113G, Spring 2012 Session 5 Binary Addition.
How do I show that two compound propositions are logically equivalent?
CEC 220 Digital Circuit Design Boolean Algebra I Wed, Sept 2 CEC 220 Digital Circuit Design Slide 1 of 13.
Lecture 4 Introduction to Boolean Algebra. Binary Operators In the following descriptions, we will let A and B be Boolean variables and define a set of.
Outline Binary Addition 2’s complement Binary Subtraction Half Adder
1 GCSE Computing Binary Logic. GCSE Computing 2 Candidates should be able to understand and produce simple logic diagrams using the operations NOT, AND,
Logic Design CS221 1 st Term combinational circuits Cairo University Faculty of Computers and Information.
1 Ethics of Computing MONT 113G, Spring 2012 Session 4 Binary Addition.
Simple ALU  Half adder  Full adder  Constructing 4 bits adder  ALU does several operations  General ALU structure  Timing diagram of adder  Overflow.
1 Logic Gates CS 202, Spring 2008 Epp, sections 1.4 and 1.5.
LOGIC CIRCUITLOGIC CIRCUIT. Goal To understand how digital a computer can work, at the lowest level. To understand what is possible and the limitations.
Logic Design (CE1111 ) Lecture 4 (Chapter 4) Combinational Logic Prepared by Dr. Lamiaa Elshenawy 1.
1 Review of Boolean algebra Not is a horizontal bar above the number –0 = 1 –1 = 0 Or is a plus –0+0 = 0 –0+1 = 1 –1+0 = 1 –1+1 = 1 And is multiplication.
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.
Combinational Circuits and Boolean
Morgan Kaufmann Publishers
Eng. Mai Z. Alyazji October, 2016
Logic Gates and Boolean Algebra
Senior Lecturer SOE Dan Garcia
Logic Gates.
Combinational Logic Logic circuits for digital systems may be combinational or sequential. A combinational circuit consists of input variables, logic gates,
Combinational Circuits
Fundamentals & Ethics of Information Systems IS 201
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.
Week 7: Gates and Circuits: PART II
Logic Gates.
Digital Logic.
Number Systems and Circuits for Addition
Logic Gates.
Digital Logic.
Chapter 10.3 and 10.4: Combinatorial Circuits
XOR, XNOR, and Binary Adders
XOR Function Logic Symbol  Description  Truth Table 
Adder Circuits By: Asst Lec. Basma Nazar
Digital Circuits.
Half & Full Subtractor Half Subtractor Full Subtractor.
Half & Full Subtractor Half Subtractor Full Subtractor.
Presentation transcript:

Hardware Implementations Gates and Circuits

Three Main Gates  AND  OR  NOT

Gate Diagrams  Example 1: [(today is Monday) AND (it is raining)] OR (it is snowing)

Gate Diagrams  Example: What does it represent?

Gate Diagrams  Example: {[(today is Monday) AND (it is raining)] OR (it is snowing)} AND {NOT [(it is raining) AND (it is snowing)]}

Truth Table to Gates  First, build the Boolean algebra expression that gives Z Z = AB + A’B’ Z = (A AND B) OR (NOT A AND NOT B) ABZ TTT TFF FTF FFT

Truth Table to Gates  Z = AB + A’B’  Next, build the circuit that goes with the Boolean algebra expression Z ABZ TTT TFF FTF FFT

Z = AB + A’B’

Binary Arithmetic  We can add binary numbers just like decimal numbers only using base two arithmetic.  For example:

Binary Addition  Notice in addition: FalseTrue False True Sum Carry ABSum (1) T (0) F (1) T(0) F(1) T (0) F(1) T (0) F

Sum and Carry ABCarry ABSum

Sum Circuit ABSum Sum = AB’ + A’B

Carry Circuit ABCarry Carry = AB

Half Adder - Sum and Carry

Half Adder  The sum digit is 0 if the sum is even.  The sum digit is 1 if the sum is odd.  The carry is 1 if the sum is greater than 1.  Handles the case where we add two binary digits with no inward carry.

Full Adder  Takes a carry in and produces the result and carry out.  So, we have 3 inputs and two outputs.  Combine two half-adders together with an OR gate to get a full adder for each binary digit.  How many half adders would we need to add two 8-digit binary numbers? How many gates?

Full Adder

Subtraction ABSub ABBorrow

Binary Subtraction  We do binary subtraction like decimal subtraction only the borrowing is done in 2’s instead of 10’s

Subtraction as Addition  If A = , B = , then using the twos-complement representation for –B, we have –B = = so

Binary Multiplication  Again, just like decimal except we add and multiply in binary. * x 7x

NAND Gates and NOT  This gate represents (A NAND NOT B).

NAND Truth Table ABA NAND B TTF TFT FTT FFT

NAND  Fact: All other gates (AND, OR, NOT) can be constructed using only NAND gates  Verification:

Exercises  Fill in a truth table and give a Boolean expression for the following circuits.

Exercises - How would you create a one binary digit multiplier? A two-digit by one-digit multiplier? A two-digit by two-digit multiplier? *