1 CPSC3850 Adders and Simple ALUs. 2 10.1 Simple Adders Figures 10.1/10.2 Binary half-adder (HA) and full-adder (FA). Digit-set interpretation: {0, 1}

Slides:



Advertisements
Similar presentations
Princess Sumaya University
Advertisements

Introduction So far, we have studied the basic skills of designing combinational and sequential logic using schematic and Verilog-HDL Now, we are going.
Chapter 9 Computer Design Basics. 9-2 Datapaths Reminding A digital system (or a simple computer) contains datapath unit and control unit. Datapath: A.
Datorteknik ArithmeticCircuits bild 1 Computer arithmetic Somet things you should know about digital arithmetic: Principles Architecture Design.
SYEN 3330 Digital SystemsJung H. Kim Chapter5-1 1 SYEN 3330 Digital Systems Chapter 5 – Part 1.
Lecture Adders Half adder.
1 ALUs. 2 Topics: ALU Overview - core of the integer datapath - 2 operands, 32-bits wide, plus control signals Exercise: A simple multiplier.
CSE-221 Digital Logic Design (DLD)
1 CS 140 Lecture 14 Standard Combinational Modules Professor CK Cheng CSE Dept. UC San Diego Some slides from Harris and Harris.
Arithmetic II CPSC 321 E. J. Kim. Today’s Menu Arithmetic-Logic Units Logic Design Revisited Faster Addition Multiplication (if time permits)
Fall 2005 L15: Combinational Circuits Lecture 15: Combinational Circuits Complete logic functions Some combinational logic functions –Half adders –Adders.
Lecture 9 Sept 28 Chapter 3 Arithmetic for Computers.
ECE C03 Lecture 61 Lecture 6 Arithmetic Logic Circuits Hai Zhou ECE 303 Advanced Digital Design Spring 2002.
Chapter # 5: Arithmetic Circuits Contemporary Logic Design Randy H
Modern VLSI Design 2e: Chapter 6 Copyright  1998 Prentice Hall PTR Topics n Shifters. n Adders and ALUs.
Lec 17 Nov 2 Chapter 4 – CPU design data path design control logic design single-cycle CPU performance limitations of single cycle CPU multi-cycle CPU.
Lecture 8 Arithmetic Logic Circuits
Homework Reading Machine Projects Labs
Combinational Logic1 DIGITAL LOGIC DESIGN by Dr. Fenghui Yao Tennessee State University Department of Computer Science Nashville, TN.
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.
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.
Jan. 2011Computer Architecture, The Arithmetic/Logic UnitSlide 1 Part III The Arithmetic/Logic Unit.
Adders, subtractors, ALUs
 Arithmetic circuit  Addition  Subtraction  Division  Multiplication.
Combinational Circuits Chapter 3 S. Dandamudi To be used with S. Dandamudi, “Fundamentals of Computer Organization and Design,” Springer, 2003.
1. Copyright  2005 by Oxford University Press, Inc. Computer Architecture Parhami2 Figure 10.1 Truth table and schematic diagram for a binary half-adder.
+ CS 325: CS Hardware and Software Organization and Architecture Combinational Circuits 1.
Digital Components and Combinational Circuits Sachin Kharady.
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.
WEEK #10 FUNCTIONS OF COMBINATIONAL LOGIC (ADDERS)
Chapter # 5: Arithmetic Circuits
Chapter 6-1 ALU, Adder and Subtractor
5-1 Programmable and Steering Logic Chapter # 5: Arithmetic Circuits.
ECE 3110: Introduction to Digital Systems Chapter 6 Combinational Logic Design Practices Adders, subtractors, ALUs.
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.
July 2005Computer Architecture, The Arithmetic/Logic UnitSlide 1 Part III The Arithmetic/Logic Unit.
Computer Architecture, The Arithmetic/Logic UnitSlide 1 Part III The Arithmetic/Logic Unit.
Modern VLSI Design 4e: Chapter 6 Copyright  2008 Wayne Wolf Topics n Shifters. n Adders and ALUs.
FPGA-Based System Design: Chapter 4 Copyright  2003 Prentice Hall PTR Topics n Number representation. n Shifters. n Adders and ALUs.
Computer Organization Department of CSE, SSE Mukka Chapter 6 : ARITHMETIC | Website for students | VTU NOTES.
CDA 3101 Fall 2013 Introduction to Computer Organization The Arithmetic Logic Unit (ALU) and MIPS ALU Support 20 September 2013.
1 CS 151: Digital Design Chapter 4: Arithmetic Functions and Circuits 4-1,2: Iterative Combinational Circuits and Binary Adders.
Universal college of engineering & technology. .By Harsh Patel)
1 Arithmetic I Instructor: Mozafar Bag-Mohammadi Ilam University.
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 Carry Lookahead Logic Carry Generate Gi = Ai Bi must generate carry when A = B = 1 Carry Propagate Pi = Ai xor Bi carry in will equal carry out here.
C-H1 Lecture Adders Half adder. C-H2 Full Adder si is the modulo- 2 sum of ci, xi, yi.
CPEN Digital System Design
ECE/CS 552: Arithmetic I Instructor:Mikko H Lipasti Fall 2010 University of Wisconsin-Madison Lecture notes partially based on set created by Mark Hill.
1. 2 Figure 10.1 Truth table and schematic diagram for a binary half-adder Simple Adders Half-adder.
Lecture #23: Arithmetic Circuits-1 Arithmetic Circuits (Part I) Randy H. Katz University of California, Berkeley Fall 2005.
How does a Computer Add ? Logic Gates within chips: AND Gate A B Output OR Gate A B Output A B A B
Carry-Lookahead, Carry-Select, & Hybrid Adders ECE 645: Lecture 2.
CS151 Introduction to Digital Design Chapter 4: Arithmetic Functions and HDLs 4-1: Iterative Combinational Circuits 4-2: Binary Adders 1Created by: Ms.Amany.
Topic: N-Bit parallel and Serial adder
Explain Half Adder and Full Adder with Truth Table.
Combinational Circuits
Somet things you should know about digital arithmetic:
Computer Design Basics
Arithmetic Circuits (Part I) Randy H
Part III The Arithmetic/Logic Unit
Computer Design Basics
Combinational Circuits
Instruction execution and ALU
Presentation transcript:

1 CPSC3850 Adders and Simple ALUs

Simple Adders Figures 10.1/10.2 Binary half-adder (HA) and full-adder (FA). Digit-set interpretation: {0, 1} + {0, 1} = {0, 2} + {0, 1} Digit-set interpretation: {0, 1} + {0, 1} + {0, 1} = {0, 2} + {0, 1}

3 Full-Adder Implementations Figure10.3 Full adder implemented with two half-adders, by means of two 4-input multiplexers, and as two-level gate network.

4 Ripple-Carry Adder: Slow But Simple Figure 10.4 Ripple-carry binary adder with 32-bit inputs and output. Critical path

Carry Propagation Networks Figure 10.5 The main part of an adder is the carry network. The rest is just a set of gates to produce the g and p signals and the sum bits. g i = x i y i p i = x i  y i

6 Ripple-Carry Adder Revisited Figure 10.6 The carry propagation network of a ripple-carry adder. The carry recurrence: c i+1 = g i  p i c i Latency of k-bit adder is roughly 2k gate delays: 1 gate delay for production of p and g signals, plus 2k gate delays for carry propagation, plus 1 XOR gate delay for generation of the sum bits

Counting and Incrementation Figure 10.9 Schematic diagram of an initializable synchronous counter.

8 Circuit for Incrementation by 1 Figure Carry propagation network and sum logic for an incrementer. Substantially simpler than an adder

9  Carries can be computed directly without propagation  For example, by unrolling the equation for c 3, we get: c 3 = g 2  p 2 c 2 = g 2  p 2 g 1  p 2 p 1 g 0  p 2 p 1 p 0 c 0  We define “generate” and “propagate” signals for a block extending from bit position a to bit position b as follows: g [a,b] = g b  p b g b–1  p b p b–1 g b–2 ...  p b p b–1 … p a+1 g a p [a,b] = p b p b–1... p a+1 p a  Combining g and p signals for adjacent blocks: g [h,j] = g [i+1,j]  p [i+1,j] g [h,i] p [h,j] = p [i+1,j] p [h,i] 10.4 Design of Fast Adders h i i+1 j [h, j] = [i + 1, j] ¢ [h, i]

10 Carry-Lookahead Logic with 4-Bit Block Figure Blocks needed in the design of carry-lookahead adders with four-way grouping of bits.

Logic and Shift Operations Conceptually, shifts can be implemented by multiplexing Figure Multiplexer-based logical shifting unit.

12 Practical Shifting in Multiple Stages Figure Multistage shifting in a barrel shifter.

Multifunction ALUs General structure of a simple arithmetic/logic unit. Logic unit Arith unit 0 1 Operand 1 Operand 2 Result Logic fn (AND, OR,...) Arith fn (add, sub,...) Select fn type (logic or arith)

14 An ALU for MiniMIPS Figure A multifunction ALU with 8 control signals (2 for function class, 1 arithmetic, 3 shift, 2 logic) specifying the operation.