Lecture 2 Adders Half adder.

Slides:



Advertisements
Similar presentations
Comparator.
Advertisements

Lecture Adders Half adder.
Henry Hexmoor1 Chapter 5 Arithmetic Functions Arithmetic functions –Operate on binary vectors –Use the same subfunction in each bit position Can design.
ECE 331 – Digital System Design
ECE C03 Lecture 61 Lecture 6 Arithmetic Logic Circuits Hai Zhou ECE 303 Advanced Digital Design Spring 2002.
Design and Implementation of VLSI Systems (EN1600) Lecture 26: Datapath Subsystems 2/4 Prof. Sherief Reda Division of Engineering, Brown University Spring.
ECE 301 – Digital Electronics
ECE 301 – Digital Electronics
ECE 301 – Digital Electronics
CSE 246: Computer Arithmetic Algorithms and Hardware Design Prof Chung-Kuan Cheng Lecture 3.
Digital Arithmetic and Arithmetic Circuits
Figure 5.1. Conversion from decimal to binary.. Table 5.1. Numbers in different systems.
Chapter 6-1 ALU, Adder and Subtractor
Figure 5.1. Conversion from decimal to binary.. Table 5.1. Numbers in different systems.
درس مدارهای منطقی دانشگاه قم مدارهای منطقی محاسباتی تهیه شده توسط حسین امیرخانی مبتنی بر اسلایدهای درس مدارهای منطقی دانشگاه.
COE 202: Digital Logic Design Combinational Circuits Part 2 KFUPM Courtesy of Dr. Ahmad Almulhem.
Computer Architecture Lecture 16 Fasih ur Rehman.
ECE 331 – Digital System Design Multi-bit Adder Circuits, Adder/Subtractor Circuit, and Multiplier Circuit (Lecture #12)
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.
ETE 204 – Digital Electronics Combinational Logic Design Single-bit and Multiple-bit Adder Circuits [Lecture: 9] Instructor: Sajib Roy Lecturer, ETE,ULAB.
Gunjeet Kaur Dronacharya Group of Institutions. Binary Adder-Subtractor A combinational circuit that performs the addition of two bits is called a half.
Presented by A. Maleki Fall Semester, 2010
Arithmetic UNIT-V.
Carry-Lookahead & Carry-Select Adders
Somet things you should know about digital arithmetic:
Lecture 12 Logistics Last lecture Today HW4 due today Timing diagrams
Chapter 4 -- Modular Combinational Logic
Lecture Adders Half adder.
Single Bit ALU 3 R e s u l t O p r a i o n 1 C y I B v b 2 L S f w d O
Addition and multiplication
Space vs. Speed: Binary Adders
Basic Adders and Counters
Combinational Circuits
ECE 331 – Digital System Design
CSE Winter 2001 – Arithmetic Unit - 1
UNIT-6 Arithmetic Course code: 10CS46 Prepared by :
Lecture 14 Logistics Last lecture Today
Arithmetic Functions & Circuits
Instructor: Alexander Stoytchev
Arithmetic Circuits (Part I) Randy H
Instructor: Alexander Stoytchev
Instructor: Prof. Chung-Kuan Cheng
Instructor: Alexander Stoytchev
לוגיקה צרופית Combinatorial Logic מעגל צירופי לוגי n m
Instructor: Alexander Stoytchev
CS 140 Lecture 14 Standard Combinational Modules
Chapter 5 – Number Representation and Arithmetic Circuits
Digital System Design Combinational Logic
Overview Part 1 – Design Procedure Part 2 – Combinational Logic
CSE 140 Lecture 14 Standard Combinational Modules
Instructor: Alexander Stoytchev
Instructor: Alexander Stoytchev
Addition and multiplication
Instructor: Mozafar Bag-Mohammadi University of Ilam
Instructor: Alexander Stoytchev
Instructor: Alexander Stoytchev
Lecture 14 Logistics Last lecture Today
Overview Iterative combinational circuits Binary adders
Addition and multiplication
Instructor: Alexander Stoytchev
Instructor: Alexander Stoytchev
74LS283 4-Bit Binary Adder with Fast Carry
Lecture 9 Digital VLSI System Design Laboratory
Instructor: Alexander Stoytchev
Carry-Lookahead, Carry-Select, & Hybrid Adders
Carry-Lookahead, Carry-Select, & Hybrid Adders
Arithmetic Circuits.
Carry-Lookahead & Carry-Select Adders
Number Representation
Presentation transcript:

Lecture 2 Adders Half adder

Full Adder si is the modulo-2 sum of ci, xi, yi.

An n-bit Ripple Adder FA Xn-1 Yn-1 Sn-1 Cn-1 Cn X0 Y0 ……… C1 FA C0 S0 MSB LSB

Adder/subtractor - = add 2’s complement of the subtrahend y xor 0 = y; y xor 1 = ~y s 1 n – x c -bit adder y Add ¤ Sub control

Overflow v.s. Carry-out n-bit signed number: -2n-1 to 2n-1 -1 Detect overflow for signed number: Overflow = Cn-1 ⊕ Cn Overflow = Xn-1 Yn-1 ~Sn-1 (110) + ~Xn-1 ~Yn-1 Sn-1 (001) where X and Y represent the 2’s complement numbers, S = X+Y. (sign bits 0, 0 ≠ 1 ) 0111 1111 Carry-out: for unsigned number

Propagate and Generate ripple carry ci+1 = xiyi + (xi+yi)ci = gi + pici A ripple-carry adder: critical path = 2n + 1 x 1 y g p s Stage 1 Stage 0 c 2

Propagate and Generate Carry-Lookahead ci+1 = xiyi + (xi+yi)ci = gi + pici = gi + pi (gi-1 + pi-1ci-1) = gi + pigi-1 + pipi-1gi-2 + …+ pipi-1 …p2p1g0 + pipi-1…p1p0c0 For instance, c1 = g0 + p0c0 c2 = g1 + p1g0 + p1p0c0

Propagate and Generate Carry-Lookahead c1 = g0 + p0c0 c2 = g1 + p1g0 + p1p0c0 3 gate delays x 1 y g p s c 2 D1 D2 D3

A Multiplier Array and adder

Array of Adders for Unsigned Multiplication 4-bit example