CEC 220 Digital Circuit Design

Slides:



Advertisements
Similar presentations
Combinational Circuits
Advertisements

Combinational Circuits. Analysis Diagram Designing Combinational Circuits In general we have to do following steps: 1. Problem description 2. Input/output.
Comparator.
1 Homework Reading –Tokheim, Section 5-10, 7-4 Machine Projects –Continue on MP4 Labs –Continue labs with your assigned section.
Parallel Adder Recap To add two n-bit numbers together, n full-adders should be cascaded. Each full-adder represents a column in the long addition. The.
ECE 331 – Digital System Design
CSE-221 Digital Logic Design (DLD)
CK Cheng Tuesday 10/2/02 CS 140 Lecture 2. Part I. Combinational Logic I) Specification –a. Language –b. Truth Table –c. Boolean Algebra –d. Incompletely.
Computer ArchitectureFall 2008 © August 25, CS 447 – Computer Architecture Lecture 3 Computer Arithmetic (1)
Design of Arithmetic Circuits – Adders, Subtractors, BCD adders
Combinational Logic1 DIGITAL LOGIC DESIGN by Dr. Fenghui Yao Tennessee State University Department of Computer Science Nashville, TN.
ECE 301 – Digital Electronics
Chapter 5 Arithmetic Logic Functions. Page 2 This Chapter..  We will be looking at multi-valued arithmetic and logic functions  Bitwise AND, OR, EXOR,
Part 2: DESIGN CIRCUIT. LOGIC CIRCUIT DESIGN x y z F F = x + y’z x y z F Truth Table Boolean Function.
Combinational Functional Devices
CS 105 Digital Logic Design
Logic Design CS221 1 st Term combinational circuits Cairo University Faculty of Computers and Information.
Outline Analysis of Combinational Circuits Signed Number Arithmetic
Chapter 6 Digital Arithmetic: Operations and Circuits ECE 221 Intro
4.1 Conversion of English Sentences to Boolean Equations
1 COMBINATIONAL LOGIC One or more digital signal inputs One or more digital signal outputs Outputs are only functions of current input values (ideal) plus.
Binary Addition Section 4.5. Binary Addition Example.
+ CS 325: CS Hardware and Software Organization and Architecture Combinational Circuits 1.
طراحی مدارهای منطقی نیمسال دوم دانشگاه آزاد اسلامی واحد پرند.
Combinational Design ELEC 311 Digital Logic and Circuits Dr. Ron Hayne Images Courtesy of Cengage Learning.
Digital Arithmetic and Arithmetic Circuits
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.
Functions of Combinational Logic
WEEK #10 FUNCTIONS OF COMBINATIONAL LOGIC (ADDERS)
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)
Lecture 9 Topics: –Combinational circuits Basic concepts Examples of typical combinational circuits –Half-adder –Full-adder –Ripple-Carry adder –Decoder.
CHAPTER 4 Combinational Logic
Logic Gates Logic gates are electronic digital circuit perform logic functions. Commonly expected logic functions are already having the corresponding.
1 Lecture 6 BOOLEAN ALGEBRA and GATES Building a 32 bit processor PH 3: B.1-B.5.
Arithmetic Circuits. Half Adder ABSumCarry
Number Systems and Circuits for Addition Lecture 5 Section 1.5 Thu, Jan 26, 2006.
Universal college of engineering & technology. .By Harsh Patel)
Combinational Circuits
Kavita Bala CS 3410, Spring 2014 Computer Science Cornell University.
CEC 220 Digital Circuit Design Binary Codes
CEC 220 Digital Circuit Design Binary Arithmetic & Negative Numbers Monday, January 13 CEC 220 Digital Circuit Design Slide 1 of 14.
Computer Science 101 More Devices: Arithmetic. From 1-Bit Equality to N-Bit Equality = A B A = B Two bit strings.
Outline Binary Addition 2’s complement Binary Subtraction Half Adder
CEC 220 Digital Circuit Design Binary Arithmetic & Negative Numbers Fri, Aug 28 CEC 220 Digital Circuit Design Slide 1 of 14.
1 Chapter 4 Combinational Logic Logic circuits for digital systems may be combinational or sequential. A combinational circuit consists of input variables,
Logic Design CS221 1 st Term combinational circuits Cairo University Faculty of Computers and Information.
Number Systems and Circuits for Addition – Binary Adders Lecture 6 Section 1.5 Fri, Jan 26, 2007.
1 Fundamentals of Computer Science Combinational Circuits.
CEC 220 Digital Circuit Design More Karnaugh Maps Monday, February 02 CEC 220 Digital Circuit Design Slide 1 of 11.
CEC 220 Digital Circuit Design Binary Codes Mon, Aug 31 CEC 220 Digital Circuit Design Slide 1 of 14.
1 Lecture 14 Binary Adders and Subtractors. 2 Overview °Addition and subtraction of binary data is fundamental Need to determine hardware implementation.
CEC 220 Digital Circuit Design Minterms and Maxterms Monday, January 26 CEC 220 Digital Circuit Design Slide 1 of 11.
Logic Design (CE1111 ) Lecture 4 (Chapter 4) Combinational Logic Prepared by Dr. Lamiaa Elshenawy 1.
ACOE161Digital Circuit Design1 Design Of Combinational Logic Circuits.
ETE 204 – Digital Electronics Combinational Logic Design Single-bit and Multiple-bit Adder Circuits [Lecture: 9] Instructor: Sajib Roy Lecturer, ETE,ULAB.
1 CS 352 Introduction to Logic Design Lecture 2 Ahmed Ezzat Boolean Algebra and Its Applications Ch-3 + Ch-4.
©2010 Cengage Learning SLIDES FOR CHAPTER 4 APPLICATIONS OF BOOLEAN ALGEBRA MINTERM AND MAXTERM EXPANSIONS Click the mouse to move to the next page. Use.
UNIT 4 APPLICATIONS OF BOOLEAN ALGEBRA MINTERM AND MAXTERM EXPANSIONS Click the mouse to move to the next page. Use the ESC key to exit this chapter. This.
Chapter 6. Digital Arithmetic: Operations and Circuits
Gunjeet Kaur Dronacharya Group of Institutions. Binary Adder-Subtractor A combinational circuit that performs the addition of two bits is called a half.
Combinational Logic Logic circuits for digital systems may be combinational or sequential. A combinational circuit consists of input variables, logic gates,
Reference: Moris Mano 4th Edition Chapter 4
ECE Digital logic Lecture 10: Karnaugh MAps
ELL100: INTRODUCTION TO ELECTRICAL ENGG.
Homework Reading Tokheim, Section 5-10, 7-4.
Number Systems and Circuits for Addition
Arithmetic Circuits.
Half & Full Subtractor Half Subtractor Full Subtractor.
Half & Full Subtractor Half Subtractor Full Subtractor.
Presentation transcript:

CEC 220 Digital Circuit Design CEC 220 Digital Circuit Design Truth Tables, Incomplete Functions , & Full Adders Wed, January 28 CEC 220 Digital Circuit Design

CEC 220 Digital Circuit Design Lecture Outline Examples of Truth Table Construction Incompletely Specified Functions Design of Adders and Subtractors Wed, January 28 CEC 220 Digital Circuit Design

Examples of Truth Table Construction Design a binary adder that adds two 1-bit binary numbers (A and B) to give a 2-bit sum (X Y) A B X Y 0 0 1 A B X Y 1 A B X Y 0 0 1 0 1 1 0 A B X Y 0 0 1 0 1 A B X Y 0 0 1 0 1 + A X A + B X Y B Y This device is sometimes called a half-adder Wed, January 28 CEC 220 Digital Circuit Design

Examples of Truth Table Construction Design a binary adder that adds two UNSIGNED 2-bit binary numbers to form a 3-bit sum. A B + C D X Y Z X= S m (7,10,11,13,14,15) Y= S m (2,3,5,6,8,9,12,15) Z= S m (1,3,4,6,9,11,12,14) Wed, January 28 CEC 220 Digital Circuit Design

Incompletely Specified Functions The four inputs to a circuit (A,B,C,D) represent an 8-4-2-1 BCD digit. The output should be 1 iff the decimal number represented by the inputs is exactly divisible by three (i.e. a remainder of “0”). Assume that only valid BCD digits occur as inputs. 0123456789 These inputs will not occur. Do I care what the associated outputs are? Wed, January 28 CEC 220 Digital Circuit Design

Incompletely Specified Functions Consider the truth table If we make both don’t cares “0” If we make 𝑑 1 a “1” and 𝑑 6 a “0” If we make 𝑑 1 a “0” and 𝑑 6 a “1” If we make 𝑑 1 a “1” and 𝑑 6 a “1” A B C 1 F 1 F 1 X F 1 F 1 F 1 We can select the “don’t cares” to make our expression simpler!! Wed, January 28 CEC 220 Digital Circuit Design

Design of Adders and Subtracters A Binary Adder Design a 1-bit Full-Adder A B Cin Cout S 1 A + B Cout S + Cin = Sum Wed, January 28 CEC 220 Digital Circuit Design

Design of Adders and Subtracters A 4-bit Binary Adder Design a 4-bit adder (S=A+B): Considering 2’s complement arithmetic: Ignore Cout3 Overflow Set Cin0 = 0 1-bit Full Adder A3 B3 S3 Cin3 Cout3 1-bit Full Adder A2 B2 S2 Cin2 Cout2 1-bit Full Adder A1 B1 S1 Cin1 Cout1 1-bit Full Adder A0 B0 S0 Cin0 Cout0 Wed, January 28 CEC 220 Digital Circuit Design

Design of Adders and Subtracters Our adder is “slow” as it propagates the carry Can develop carry look-ahead circuitry How can I do subtraction Add A+(-B) -B = Flip all of the bits and add “1” 1-bit Full Adder A3 B3 S3 Cin3 Cout3 1-bit Full Adder A2 B2 S2 Cin2 Cout2 1-bit Full Adder A1 B1 S1 Cin1 Cout1 1-bit Full Adder A0 B0 S0 Cin0 Cout0 =1 Wed, January 28 CEC 220 Digital Circuit Design

CEC 220 Digital Circuit Design Next Lecture Karnaugh Maps Wed, January 28 CEC 220 Digital Circuit Design