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.

Slides:



Advertisements
Similar presentations
Logic Gates.
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.
Hardware Implementations Gates and Circuits. Three Main Gates  AND  OR  NOT.
Gates and Circuits. Three Main Gates  AND  OR  NOT.
08/07/041 CSE-221 Digital Logic Design (DLD) Lecture-8:
Chapter 4 Logic Gates and Boolean Algebra. Introduction Logic gates are the actual physical implementations of the logical operators. These gates form.
Combinational Logic1 DIGITAL LOGIC DESIGN by Dr. Fenghui Yao Tennessee State University Department of Computer Science Nashville, TN.
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.
©2008 The McGraw-Hill Companies, Inc. All rights reserved. Digital Electronics Principles & Applications Seventh Edition Chapter 10 Arithmetic Circuits.
CS 105 Digital Logic Design
Logic Circuits In today’s lesson we will look at: the symbols for NOT, AND, OR and EOR using truth tables to represent logic circuits two new operators.
22C:19 Discrete Math Boolean Algebra & Digital Logic Fall 2010 Sukumar Ghosh.
Binary Numbers.
BUILDING COMPUTER CIRCUITS prepared by Burak Galip ASLAN September, 2006 BOOLEAN LOGIC AND GATES CONTROL CIRCUITS.
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 Electronics Understanding truth tables. AND gate How many lines did a 2-input AND gate truth table have? ABZ (output) Answer:4.
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.
Computer Organization 1 Logic Gates and Adders. Propositions –Venn Diagrams.
1 Adders & Subtractors Adders –An adder is a combinational logic circuit that performs the addition of 2 binary numbers (A & B) to generate the sum (S)
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.
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.
Logic Design CS 270: Mathematical Foundations of Computer Science Jeremy Johnson.
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.
1 GCSE Computing Binary Logic. GCSE Computing 2 Candidates should be able to understand and produce simple logic diagrams using the operations NOT, AND,
Simple ALU  Half adder  Full adder  Constructing 4 bits adder  ALU does several operations  General ALU structure  Timing diagram of adder  Overflow.
Minute Paper 4/4/04 Z=50+j86.7=100
Boolean Algebra and Computer Logic Mathematical Structures for Computer Science Chapter 7 Copyright © 2006 W.H. Freeman & Co.MSCS Slides Boolean Logic.
LOGIC CIRCUITLOGIC CIRCUIT. Goal To understand how digital a computer can work, at the lowest level. To understand what is possible and the limitations.
L OGIC G ATES Computer Organization – week 3. W HAT ’ S ALU? 1. ALU stands for: Arithmetic Logic Unit 2. ALU is a digital circuit that performs Arithmetic.
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.
ECE 3130 Digital Electronics and Design
ECE 3130 Digital Electronics and Design
Logic Gates and Boolean Algebra
Computer Science 210 Computer Organization
Logic Gates.
Logic Gates Benchmark Companies Inc PO Box Aurora CO
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.
Number Systems Decimal (base 10) { }
Boolean Algebra.
Week 7: Gates and Circuits: PART II
Logic Gates.
Digital Logic.
Lecture 20: Combinatorial Circuits I
Number Systems and Circuits for Addition
Logic Gates.
Logic Gates.
Adders and Subtractors
GCSE Computer Science – Logic Gates & Boolean Expressions
Digital Logic.
DIGITAL ELECTRONICS B.SC FY
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.
Unit IV Adders Subtractors Flip Flops Counters Multiplexes and De multiplexes. Integrated circuits-Op. amp – Characteristics Inverting amplifier - Non-inverting.
Presentation transcript:

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 for the "mechanical switch" type of diagram. Second style (which we will call "symbolic diagrams") uses pictures for the boolean logic operators. These pictures are called gates.

Three Main Gates  AND  OR  NOT

Gate Diagrams  Example 1: (MR) + S

Gate Diagrams  Example: What does it represent?

Gate Diagrams  Example: ((MR) + S) (RS)’

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  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

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

Subtraction ABSub ABBorrow

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

Exercises  1 - From the book, p 266, Construct circuits with the following properties (using AND, OR or NOT gates):

Exercises A)B) ABZ ABCZ

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

NAND Truth Table ABA NAND B TTF TFT FTT FFT

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

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