CS151 Introduction to Digital Design Chapter 4: Arithmetic Functions and HDLs 4-1: Iterative Combinational Circuits 4-2: Binary Adders 1Created by: Ms.Amany.

Slides:



Advertisements
Similar presentations
Combinational Circuits. Analysis Diagram Designing Combinational Circuits In general we have to do following steps: 1. Problem description 2. Input/output.
Advertisements

Charles Kime & Thomas Kaminski © 2008 Pearson Education, Inc. (Hyperlinks are active in View Show mode) Chapter 4 – Arithmetic Functions Logic and Computer.
DPSD This PPT Credits to : Ms. Elakya - AP / ECE.
Overview Iterative combinational circuits Binary adders
Arithmetic Operations and Circuits
Henry Hexmoor1 Chapter 5 Arithmetic Functions Arithmetic functions –Operate on binary vectors –Use the same subfunction in each bit position Can design.
CSE-221 Digital Logic Design (DLD)
Overview Iterative combinational circuits Binary adders
Design of Arithmetic Circuits – Adders, Subtractors, BCD adders
Overview Iterative combinational circuits Binary adders
ECE 301 – Digital Electronics
Overview Iterative combinational circuits Binary adders
Chapter 5 Arithmetic Logic Functions. Page 2 This Chapter..  We will be looking at multi-valued arithmetic and logic functions  Bitwise AND, OR, EXOR,
Charles Kime & Thomas Kaminski © 2008 Pearson Education, Inc. (Hyperlinks are active in View Show mode) Chapter 4 – Arithmetic Functions Logic and Computer.
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,
©2008 The McGraw-Hill Companies, Inc. All rights reserved. Digital Electronics Principles & Applications Seventh Edition Chapter 10 Arithmetic Circuits.
 Arithmetic circuit  Addition  Subtraction  Division  Multiplication.
CS 105 Digital Logic Design
Top-down modular design
Logic Design CS221 1 st Term combinational circuits Cairo University Faculty of Computers and Information.
Outline Analysis of Combinational Circuits Signed Number Arithmetic
Logical Circuit Design Week 8: Arithmetic Circuits Mentor Hamiti, MSc Office ,
Digital Computer Concept and Practice Copyright ©2012 by Jaejin Lee Logic Circuits I.
+ CS 325: CS Hardware and Software Organization and Architecture Combinational Circuits 1.
Digital Arithmetic and Arithmetic Circuits
Eng. Mohammed Timraz Electronics & Communication Engineer University of Palestine Faculty of Engineering and Urban planning Software Engineering Department.
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 4 – Arithmetic Functions and HDLs Logic and Computer Design Fundamentals.
Charles Kime & Thomas Kaminski © 2008 Pearson Education, Inc. (Hyperlinks are active in View Show mode) Chapter 4 – Arithmetic Functions Logic and Computer.
Figure 5.1. Conversion from decimal to binary.. Table 5.1. Numbers in different systems.
Charles Kime & Thomas Kaminski © 2008 Pearson Education, Inc. (Hyperlinks are active in View Show mode) Chapter 4 – Arithmetic Functions Logic and Computer.
Arithmetic Functions and Circuits
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.
CHAPTER 4 Combinational Logic
Instructor: Alexander Stoytchev CprE 281: Digital Logic.
Logic Gates Logic gates are electronic digital circuit perform logic functions. Commonly expected logic functions are already having the corresponding.
Arithmetic Functions BIL- 223 Logic Circuit Design Ege University Department of Computer Engineering.
CHAPTER 4 Combinational Logic Design- Arithmetic Operation (Section 4.6&4.9)
COE 202: Digital Logic Design Combinational Circuits Part 2 KFUPM Courtesy of Dr. Ahmad Almulhem.
Computer Organization Department of CSE, SSE Mukka Chapter 6 : ARITHMETIC | Website for students | VTU NOTES.
Charles Kime & Thomas Kaminski © 2004 Pearson Education, Inc. Terms of Use (Hyperlinks are active in View Show mode) Terms of Use Logic and Computer Design.
1 CS 151: Digital Design Chapter 4: Arithmetic Functions and Circuits 4-1,2: Iterative Combinational Circuits and Binary Adders.
EE2174: Digital Logic and Lab Professor Shiyan Hu Department of Electrical and Computer Engineering Michigan Technological University CHAPTER 8 Arithmetic.
Combinational Circuits
CS 105 DIGITAL LOGIC DESIGN Chapter 4 Combinational Logic 1.
1 KU College of Engineering Elec 204: Digital Systems Design Lecture 10 Multiplexers MUX: –Selects binary information from one of many input lines and.
Digital Design Module –II Adders Amit Kumar Assistant Professor SCSE, Galgotias University, Greater Noida.
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.
CS 151: Digital Design Chapter 4: Arithmetic Functions and Circuits
CPEN Digital System Design
Addition and multiplication Arithmetic is the most basic thing you can do with a computer, but it’s not as easy as you might expect! These next few lectures.
1 Lecture 14 Binary Adders and Subtractors. 2 Overview °Addition and subtraction of binary data is fundamental Need to determine hardware implementation.
ECE DIGITAL LOGIC LECTURE 15: COMBINATIONAL CIRCUITS Assistant Prof. Fareena Saqib Florida Institute of Technology Fall 2015, 10/20/2015.
ECE 3110: Introduction to Digital Systems Chapter 5 Combinational Logic Design Practices Adders,subtractors, ALUs.
Explain Half Adder and Full Adder with Truth Table.
Logic Design (CE1111 ) Lecture 4 (Chapter 4) Combinational Logic Prepared by Dr. Lamiaa Elshenawy 1.
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.
Haifeng Liu 2014 Fall College of Computer Science and Technology, Zhejiang University Chapter 4 – Arithmetic Functions and Circuits.
Combinational Circuits
Combinational Circuits
King Fahd University of Petroleum and Minerals
Arithmetic Functions & Circuits
Overview Part 1 – Design Procedure Part 2 – Combinational Logic
Digital Logic.
Overview Iterative combinational circuits Binary adders
XOR Function Logic Symbol  Description  Truth Table 
Presentation transcript:

CS151 Introduction to Digital Design Chapter 4: Arithmetic Functions and HDLs 4-1: Iterative Combinational Circuits 4-2: Binary Adders 1Created by: Ms.Amany AlSaleh

2 Overview  Iterative combinational circuits  Binary adders Half and full adders Ripple carry adder  Binary subtraction  Binary adder-subtractors Signed binary numbers Signed binary addition and subtraction Overflow  Binary multiplication  Other arithmetic functions Design by contraction Created by: Ms.Amany AlSaleh

3 4-1 Iterative Combinational Circuits  In this chapter we will focus on a special class of functional blocks that perform arithmetic operations.  Arithmetic function blocks operate on binary input vectors and produce binary output vectors. Use the same subfunction in each bit position.  Can design functional block for subfunction and repeat to obtain functional block for overall function.  Cell  subfunction block.  Iterative array  a array of interconnected cells (cells are often identical).  An iterative array can be in a single dimension (1D) or multiple dimensions. Created by: Ms.Amany AlSaleh

4 Arithmetic Circuits  Arithmetic Circuits:  Arithmetic Circuits: Combinational circuits that perform arithmetic operations such as Addition Multiplication Subtraction Division Using binary numbers or decimal numbers in binary code. Created by: Ms.Amany AlSaleh

5 Block Diagram of a 1D Iterative Array  Example: a circuit that adds two 32-bit binary numbers (n = 32) Number of inputs = Number of outputs = Truth table rows = Equations with up to input variables Equations with huge number of terms Design impractical!  Develop using hierarchical design; design a circuit that processes 2 bits (e.g. 2-bit addition), and use it as a building block for a circuit that processes n bits.  Iterative array takes advantage of the regularity to make design feasible Created by: Ms.Amany AlSaleh

6 4-2 Binary Adders  Binary addition used frequently  Addition Development: Half-Adder (HA), a 2-input bit-wise addition functional block, Full-Adder (FA), a 3-input bit-wise addition functional block, Ripple Carry Adder, parallel binary adder to perform n-bit binary addition. Created by: Ms.Amany AlSaleh

7 Functional Block: Half-Adder  A 2-input, 1-bit width binary adder that performs the following computations:  I. Specifications: 2 Inputs: Augend X and Addend Y. 2 Outputs: Sum bit S and Carry bit C.  II. Truth Table:  X Y C S X Y C S  III. Equations: S = X Y’ + X’ Y = X  Y C = X Y Created by: Ms.Amany AlSaleh

8 Implementation: Half-Adder  IV. Logic Diagram: YXC YXS   X Y C S Created by: Ms.Amany AlSaleh

9 Functional Block: Full-Adder  A full adder is similar to a half adder, but includes a carry-in bit from lower stages. Like the half-adder, it computes a sum bit, S and a carry bit, C. For a carry-in (Z) of 0, it is the same as the half-adder: For a carry- in (Z) of 1: Z0000 X Y C S Z1111 X Y C S Created by: Ms.Amany AlSaleh

10 Logic Optimization: Full-Adder  I. Specifications: 3 Inputs: X, Y and Z (carry in) 2 Outputs: Sum S and Carry C  II. Full-Adder Truth Table: XYZCS X Y Z S X Y Z C  III. Optimization: Full-Adder K-Map: S = ∑(1,2,4,7) C = ∑(3,5,6,7) S is 1 when one input is 1 or all inputs are 1 Created by: Ms.Amany AlSaleh

11 Equations: Full-Adder  From the K-Map, we get:  The S function is the three-bit XOR function (Odd Function):  The Carry bit C is 1 if both X and Y are 1 (the sum is 2), or if the sum is 1 and a carry-in (Z) occurs. Thus C can be re-written as: ZYZXYXC ZYXZYXZYXZYXS   ZYXS  Z)YX(YXC  7 AND gates and 2 OR gates Created by: Ms.Amany AlSaleh

12 Implementation: Full Adder ZYXS  Z)YX(YXC  Two Half-Adders can be employed to implement a full adder. Created by: Ms.Amany AlSaleh

13 4-bit Ripple-Carry Binary Adder  A parallel binary adder is a digital circuit that produces the arithmetic sum of two binary numbers using combinational logic.  The parallel adder uses n full adders in parallel, with all input bits applied simultaneously to produce the sum.  A four-bit Ripple Carry Adder made from four 1-bit Full Adders (FA) connected in cascade.  Ripple Carry…A carry 1 may propagate through many FAs to the most significant bit just as a wave ripples outward… Input carry Output carry Created by: Ms.Amany AlSaleh

14 Binary Adders  To add multiple-bit operands, we “bundle” logical signals together into vectors and use functional blocks that operate on the vectors  Example: 4-bit ripple carry adder: Adds input vectors A(3:0) and B(3:0) to get a sum vector S(3:0)  Note: carry out of cell i becomes carry in of cell i + 1  Note: if the usual design method has been used, how many rows in the truth table will be there? Created by: Ms.Amany AlSaleh