The logic is straightforward. Adding two 0s will result in 0. Adding two 1s results in 10 where 1 is the carry bit and 0 is the sum bit.

Similar documents
ENGR-4300 Electronic Instrumentation Fall 2000

Midterm Exam Two is scheduled on April 8 in class. On March 27 I will help you prepare Midterm Exam Two.

Carry Look Ahead Adders

Chapter 03: Computer Arithmetic. Lesson 03: Arithmetic Operations Adder and Subtractor circuits Design

Logic and Computer Design Fundamentals. Chapter 5 Arithmetic Functions and Circuits

Adders - Subtractors

ENGR-4300 Fall 2008 Test 3. Name SOLUTION. Section 1(MR 8:00) 2(TF 2:00) (circle one) Question I (20 points) Question II (15 points)

Looking at a two binary digit sum shows what we need to extend addition to multiple binary digits.

1 Short adders. t total_ripple8 = t first + 6*t middle + t last = 4t p + 6*2t p + 2t p = 18t p

Chapter 5. Digital Design and Computer Architecture, 2 nd Edition. David Money Harris and Sarah L. Harris. Chapter 5 <1>

XI STANDARD [ COMPUTER SCIENCE ] 5 MARKS STUDY MATERIAL.

CMSC 313 Lecture 18 Midterm Exam returned Assign Homework 3 Circuits for Addition Digital Logic Components Programmable Logic Arrays

Switching Circuits & Logic Design

COE 202: Digital Logic Design Combinational Circuits Part 2. Dr. Ahmad Almulhem ahmadsm AT kfupm Phone: Office:

EECS150. Arithmetic Circuits

EECS150 - Digital Design Lecture 10 - Combinational Logic Circuits Part 1

CprE 281: Digital Logic

Total Time = 90 Minutes, Total Marks = 50. Total /50 /10 /18

Binary addition by hand. Adding two bits

Function of Combinational Logic ENT263

Combinational Logic. By : Ali Mustafa

Fundamentals of Digital Design

Binary addition (1-bit) P Q Y = P + Q Comments Carry = Carry = Carry = Carry = 1 P Q

Digital Electronics Final Examination. Part A

PGT104 Digital Electronics. PGT104 Digital Electronics

Adders, subtractors comparators, multipliers and other ALU elements

Full Adder Ripple Carry Adder Carry-Look-Ahead Adder Manchester Adders Carry Select Adder

Chapter 5 Arithmetic Circuits

CMSC 313 Lecture 17. Focus Groups. Announcement: in-class lab Thu 10/30 Homework 3 Questions Circuits for Addition Midterm Exam returned

ENGR-2300 Electronic Instrumentation Quiz 3 Fall 2013 Name Section. Question III (25 Points) Question IV (25 Points) Total (100 Points)

Overview. Arithmetic circuits. Binary half adder. Binary full adder. Last lecture PLDs ROMs Tristates Design examples

EECS150 - Digital Design Lecture 4 - Boolean Algebra I (Representations of Combinational Logic Circuits)

Outline. EECS150 - Digital Design Lecture 4 - Boolean Algebra I (Representations of Combinational Logic Circuits) Combinational Logic (CL) Defined

XOR - XNOR Gates. The graphic symbol and truth table of XOR gate is shown in the figure.

9/29/2016. Task: Checking for a Lower-Case Letter. ECE 120: Introduction to Computing. Change C 5 to C 5 to Obtain L(C) from U(C)

mith College Computer Science CSC270 Spring 16 Circuits and Systems Lecture Notes Week 2 Dominique Thiébaut

ECE380 Digital Logic. Positional representation

Combinational Logic Design Arithmetic Functions and Circuits

14:332:231 DIGITAL LOGIC DESIGN

Building a Computer Adder

EE141- Spring 2004 Digital Integrated Circuits

Adders, subtractors comparators, multipliers and other ALU elements

NAND, NOR and XOR functions properties

Chapter 4: Designing Combinational Systems Uchechukwu Ofoegbu

Digital Electronics. Part A

CS 140 Lecture 14 Standard Combinational Modules

Universität Duisburg-Essen FCE 1. Experiment 2. Circuit simulation and Circuit Analysis

CMPUT 329. Circuits for binary addition

CMSC 313 Lecture 18 Midterm Exam returned Assign Homework 3 Circuits for Addition Digital Logic Components Programmable Logic Arrays

Digital Fundamentals

ECE 645: Lecture 2. Carry-Lookahead, Carry-Select, & Hybrid Adders

Boole Algebra and Logic Series

Additional Gates COE 202. Digital Logic Design. Dr. Muhamed Mudawar King Fahd University of Petroleum and Minerals

Logic. Combinational. inputs. outputs. the result. system can

Module 2. Basic Digital Building Blocks. Binary Arithmetic & Arithmetic Circuits Comparators, Decoders, Encoders, Multiplexors Flip-Flops

Lecture 3 Review on Digital Logic (Part 2)

Slides for Lecture 19

Digital Logic. Lecture 5 - Chapter 2. Outline. Other Logic Gates and their uses. Other Logic Operations. CS 2420 Husain Gholoom - lecturer Page 1

Simplify the following Boolean expressions and minimize the number of literals:

Chapter 9. Estimating circuit speed. 9.1 Counting gate delays

Fundamentals of Computer Systems

UNIT III Design of Combinational Logic Circuits. Department of Computer Science SRM UNIVERSITY

CprE 281: Digital Logic

Lecture 10: Synchronous Sequential Circuits Design

A B OUT_0 OUT_1 OUT_2 OUT_

Number System. Decimal to binary Binary to Decimal Binary to octal Binary to hexadecimal Hexadecimal to binary Octal to binary

EE40 Lec 15. Logic Synthesis and Sequential Logic Circuits

Sample Test Paper - I

Implementation of Reversible ALU using Kogge-Stone Adder

LOGIC CIRCUITS. Basic Experiment and Design of Electronics

CHW 261: Logic Design

S.E. Sem. III [ETRX] Digital Circuit Design. t phl. Fig.: Input and output voltage waveforms to define propagation delay times.

EECS150 - Digital Design Lecture 25 Shifters and Counters. Recap

Calculating with the square root of NOT

Menu. 7-Segment LED. Misc. 7-Segment LED MSI Components >MUX >Adders Memory Devices >D-FF, RAM, ROM Computer/Microprocessor >GCPU

Digital Fundamentals

CS221: Digital Design Data Path Components Adder

UNIT II COMBINATIONAL CIRCUITS:

ECE 645: Lecture 3. Conditional-Sum Adders and Parallel Prefix Network Adders. FPGA Optimized Adders

Floating Point Representation and Digital Logic. Lecture 11 CS301

Sequential Logic Worksheet

Lecture 7: Logic design. Combinational logic circuits

MASSACHUSETTS INSTITUTE OF TECHNOLOGY Department of Electrical Engineering and Computer Sciences

Decoding A Counter. svbitec.wordpress.com 1

Digital Logic. CS211 Computer Architecture. l Topics. l Transistors (Design & Types) l Logic Gates. l Combinational Circuits.

Control gates as building blocks for reversible computers

Systems I: Computer Organization and Architecture

CprE 281: Digital Logic

Chapter 2 (Lect 2) Canonical and Standard Forms. Standard Form. Other Logic Operators Logic Gates. Sum of Minterms Product of Maxterms

Boolean Algebra and Logic Simplification

Digital Logic: Boolean Algebra and Gates. Textbook Chapter 3

Number representation

Reversible ALU Implementation using Kogge-Stone Adder

Computer organization

Lecture 11: Adders. Slides courtesy of Deming Chen. Slides based on the initial set from David Harris. 4th Ed.

Total Time = 90 Minutes, Total Marks = 100. Total /10 /25 /20 /10 /15 /20

to become literate in most common concepts and terminology of digital electronics

DESIGN AND ANALYSIS OF A FULL ADDER USING VARIOUS REVERSIBLE GATES

2009 Spring CS211 Digital Systems & Lab CHAPTER 2: INTRODUCTION TO LOGIC CIRCUITS

We are here. Assembly Language. Processors Arithmetic Logic Units. Finite State Machines. Circuits Gates. Transistors

Transcription:

Adders Half adders Half adders represent the smallest block for adding in digital computers. What they do is very simple: they add two bits, producing a sum and a carry. The logic is straightforward. Adding two 0s will result in 0. Adding two s results in 0 where is the carry bit and 0 is the sum bit. The operation can be tabulated as follows: 0 + 0 = 0 0 + = + 0 = + = 0 Inputs Outputs A B S 0 0 0 0 0 0 0 0 0 Truth table for a half adder The expressions for the carry and sum bits are A B and S A B. The circuit for the half adder is the following: OFFTIME =.5uS B ONTIME =.5uS LK STARTAL = OPPAL = 0 UA 74LS08 OFFTIME = us A ONTIME = us LK STARTAL = OPPAL = 0 UA 74LS86A S ircuit for a half adder The half adder consists of an AND gate that provides the carry bit and an XOR gate that provides the sum bit.

In high-level schematics, the half adder is often shown as a block: Half adder block The waveforms for the half adder reflect the logic previously outlined: A: B: UA:Y UA:Y 0s 0.5us.0us.5us.0us Time Waveforms for a half adder The half adder produces a carry bit only when both input bits are and it produces a sum bit only if one of the input bits is.

Full adders Full adders are the next step after half adders. What they do is also simple: they add three bits, producing a sum bit and a carry bit. The logic is straightforward. Adding two 0s results in 0. Adding two s results in 0 where is the carry bit and 0 is the sum bit. Adding three s produces, for carry bit and for sum bit 0 + 0 + 0 = 0 0 + 0 + = 0 + + 0 = 0 + + = 0 + 0 + 0 = + 0 + = 0 + + 0 = 0 + + = One of the bits is a carry-in bit that comes from a previous stage. That bit is shown in the third column. The carry-out bit that results from the operation is passed on to a higher level within the adder. The operation can be tabulated as follows: Inputs Outputs A B in out S 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 Truth table for a full adder The expressions for the carry and sum bits are: A B A B out in S A B in

The circuit for the full adder is the following: OFFTIME =.5uS ONTIME =.5uS LK STARTAL = OPPAL = 0 OFFTIME = us B ONTIME = us LK STARTAL = OPPAL = 0 UA 74LS86A UA 74LS86A S OFFTIME = us A ONTIME = us LK STARTAL = OPPAL = 0 U4A UA 74LS08 U5A 74LS 74LS08 ircuit for a full adder The full adder consists of XOR gates, AND gates and OR gate. The XOR gates provide the sum bit while the AND/OR gate group provides the carry bit. It s worth noting that UA and U4A are essentially a half adder just like UA and UA so a full adder is made of half adders and OR gate. In high-level schematics, the full adder is often shown as a block: Block for a full adder The waveforms for the full adder reflect the logic previously outlined: A: B: : U5A:Y UA:Y 0s 0.5us.0us.5us.0us.5us.0us.5us 4.0us Time Waveforms for a full adder 4

Multiple-bit adders Adding two bits is very simple. Applications are much more complex and require several bits to be are added. Therefore, several full adder blocks are used to obtain additions for arrays of bits. For this purpose, ripple carry adders and carry look-ahead adders have been invented. 4-bit ripple carry adder The following is an example of a 4-bit ripple carry adder. 4-bit ripple carry adder block diagram This is the simplest multiple-bit adder available. It is very basic since each full adder block connects to the next one in series. However, this adder has a major disadvantage which is the propagation delay of the carry bits to obtain the final addition. The carry bits, in fact, ripple through the adder from right to left. This is why this adder is called ripple carry adder. This adder is obviously impractical if it is to be used in time-critical applications. Alternatives to the ripple carry adder exist. These alternatives speed up addition by using a separate and dedicated set of gates. 5

4-bit carry look-ahead adder In order to circumvent the problem of the propagation delay associated to the ripple carry adder, engineers developed strategies to compute carry bits ahead of time by using propagate and generate bits (P and G). These bits are then combined in successive expressions in order to derive propagate group and generate groups (PG and GG). PG and GG are useful if several blocks of the 4-bit carry look-ahead adder are used. 4-bit carry look-ahead adder block diagram The adder shown above adds an array of 4 bits (A 0 through A ) to another array of 4 bits (B 0 through B ). The result of the addition is provided by bits S 0 through S and 4. A propagate bit P corresponds to the XORing of two bits. The generate bit G corresponds to the ANDing of two bits. The general expression for the carry bits and the derived one for 4 are: Expressions for PG and GG are: 6

6-bit carry look-ahead adder By using 4 instances of the previously presented 4-bit carry look-ahead adder, a 6-bit carry look-ahead adder can be constructed. 6-bit carry look-ahead adder block diagram The adder shown above adds an array of 6 bits (A 0 through A 5 ) to another array of 4 bits (B 0 through B 5 ). The result of the addition is provided by bits S 0 through S 5 and 6. 64-bit carry look-ahead adder By using 4 instances of the previously presented 6-bit carry look-ahead, a 64-bit carry look-ahead adder can be constructed. 64-bit carry look-ahead adder block diagram The adder shown above adds an array of 64 bits (A 0 through A 6 ) to another array of 64 bits (B 0 through B 6 ). The result of the addition is provided by bits S 0 through S 6 and 64. 7