Selecting a to Eliminate Carry Chain in SD For no carry, require.

Slides:



Advertisements
Similar presentations
UNIVERSITY OF MASSACHUSETTS Dept
Advertisements

Intro to CS – Honors I Representing Numbers GEORGIOS PORTOKALIDIS
HEXADECIMAL NUMBERS Code
ELEC353 S. al Zahir UBC Sign-Magnitude Representation High order bit is sign: 0 = positive (or zero), 1 = negative Low order bits represent the magnitude:
Chapter 1 Number Systems and Codes
CS 151 Digital Systems Design Lecture 3 More Number Systems.
Fixed-Point Arithmetics: Part I
Number Systems Standard positional representation of numbers:
Agenda Shortcuts converting among numbering systems –Binary to Hex / Hex to Binary –Binary to Octal / Octal to Binary Signed and unsigned binary numbers.
Signed Numbers Up till now we've been concentrating on unsigned numbers. In real life we have to represent signed numbers ( like: -12, -45, 78). The difference.
UNIVERSITY OF MASSACHUSETTS Dept
CSCE 211: Digital Logic Design Chin-Tser Huang University of South Carolina.
ECE 331 – Digital System Design
ECE 301 – Digital Electronics Number Systems and Conversion, Binary Arithmetic, and Representation of Negative Numbers (Lecture #10) The slides included.
ECE 301 – Digital Electronics
Copyright 2008 Koren ECE666/Koren Part.6a.1 Israel Koren Spring 2008 UNIVERSITY OF MASSACHUSETTS Dept. of Electrical & Computer Engineering Digital Computer.
DIGITAL SYSTEMS TCE1111 Representation and Arithmetic Operations with Signed Numbers Week 6 and 7 (Lecture 1 of 2)
ENGIN112 L3: More Number Systems September 8, 2003 ENGIN 112 Intro to Electrical and Computer Engineering Lecture 3 More Number Systems.
Arithmetic Operations and Circuits
Number Systems Lecture 02.
1 Lecture 2: Number Systems Binary numbers Base conversion Arithmetic Number systems  Sign and magnitude  Ones-complement  Twos-complement Binary-coded.
Binary Addition Addition Rules: = = = = = carry 1 1 carry 1 Example 1: Example 2:
Computer Systems 1 Fundamentals of Computing Negative Binary.
Computer Organization & Programming Chapter2 Number Representation and Logic Operations.
Arithmetic for Computers
© Janice Regan, CMPT 128, Jan CMPT 128: Introduction to Computing Science for Engineering Students Integer Data representation Addition and Multiplication.
Number Systems Binary and Hexadecimal. Base 2 a.k.a. Binary  Binary works off of base of 2 instead of a base 10 like what we are taught in school 
Data Representation – Binary Numbers
CSCI-365 Computer Organization Lecture Note: Some slides and/or pictures in the following are adapted from: Computer Organization and Design, Patterson.
General Fixed Radix Number Systems Nonredundant Positive radix, ß n digits in digit set Vector:
Computer Arithmetic Nizamettin AYDIN
Computer Architecture Lecture 3: Logical circuits, computer arithmetics Piotr Bilski.
Conversion Between Lengths Positive number pack with leading zeros +18 = = Negative numbers pack with leading ones -18 =
Binary Arithmetic Stephen Boyd March 14, Two's Complement Most significant bit represents sign. 0 = positive 1 = negative Positive numbers behave.
Chapter 7 Arithmetic Operations and Circuits Binary Arithmetic Addition –When the sum exceeds 1, carry a 1 over to the next-more-significant column.
Dale & Lewis Chapter 3 Data Representation. Data and computers Everything inside a computer is stored as patterns of 0s and 1s Numbers, text, audio, video,
Number Systems Spring Semester 2013Programming and Data Structure1.
Digital Logic Design Lecture 3 Complements, Number Codes and Registers.
Number Systems. Why binary numbers? Digital systems process information in binary form. That is using 0s and 1s (LOW and HIGH, 0v and 5v). Digital designer.
Information Representation. Digital Hardware Systems Digital Systems Digital vs. Analog Waveforms Analog: values vary over a broad range continuously.
Number Systems. Today Decimal Hexadecimal Binary –Unsigned Binary –1’s Complement Binary –2’s Complement Binary.
46 Number Systems Problem: Implement simple pocket calculator Need: Display, adders & subtractors, inputs Display: Seven segment displays Inputs: Switches.
ECE 331 – Digital System Design
Fixed and Floating Point Numbers Lesson 3 Ioan Despi.
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.
ECE 2110: Introduction to Digital Systems Signed Addition/Subtraction.
Operations on Bits Arithmetic Operations Logic Operations
Number Systems Binary to Decimal Octal to Decimal Hexadecimal to Decimal Binary to Octal Binary to Hexadecimal Two’s Complement.
By Jariya Phongsai A two's-complement system is a system in which negative numbers are represented by the two's complement of the absolute value; this.
Data Representation in Computer Systems. 2 Signed Integer Representation The conversions we have so far presented have involved only positive numbers.
Two’s Complement. A system used to represent a negative number in binary A system used to represent a negative number in binary Positive numbers start.
UniMAP Sem2-10/11 DKT121: Fundamental of Computer Programming1 Number Systems and Bitwise Operation.
Lecture 2 Binary Arithmetic Topics Terminology Fractions Base-r to decimal Unsigned Integers Signed magnitude Two’s complement August 26, 2003 CSCE 211.
Unconventional Fixed-Radix Number Systems
CEC 220 Digital Circuit Design Binary Arithmetic & Negative Numbers Monday, January 13 CEC 220 Digital Circuit Design Slide 1 of 14.
CEC 220 Digital Circuit Design Binary Arithmetic & Negative Numbers Fri, Aug 28 CEC 220 Digital Circuit Design Slide 1 of 14.
CS 151: Digital Design Chapter 4: Arithmetic Functions and Circuits
IT1004: Data Representation and Organization Negative number representation.
1 Digital Logic Design Lecture 2 More Number Systems/Complements.
Integers’ Representation. Binary Addition. Two's Complement. Unsigned number representation Binary Addition, Subtraction. Overflow of unsigned numbers.
ECE 171 Digital Circuits Chapter 2 Binary Arithmetic Herbert G. Mayer, PSU Status 1/14/2016 Copied with Permission from prof. Mark PSU ECE.
In decimal we are quite familiar with placing a “-” sign in front of a number to denote that it is negative The same is true for binary numbers a computer.
Computer Organization 1 Data Representation Negative Integers.
Digital logic COMP214  Lecture 2 Dr. Sarah M.Eljack Chapter 1 1.
Binary Addition The simplest arithmetic operation in binary is addition. Adding two single-digit binary numbers is relatively simple, using a form of carrying:
Integers’ Representation. Binary Addition. Two's Complement.
Unconventional Fixed-Radix Number Systems
UNIVERSITY OF MASSACHUSETTS Dept
ECE 352 Digital System Fundamentals
Number Systems.
Presentation transcript:

Selecting a to Eliminate Carry Chain in SD For no carry, require

Selecting a to Eliminate Carry Chain in SD

Binary SD Addition Implies no guarantee that s i = w i + t i will not produce a carry Looking at algorithm: Step 1:

Unmodified Binary SD Addition Table x i,y i t i+1 wiwi Step 2: Based on calculation of w i and t i+1 Note: redundancy allows choices for w i and t i+1

How Useful is Unmodified Table? Works if operands do not contain If operands contain only 0’s and 1’s, no carry generated. Example Why not use this approach to break carry chain for unsigned binary number?

Limitations of Table Example (-9) 10 + (29) 10 Does not work if operands contain

SD Addition Table Choices Takagi, 1985

Modified Binary SD Addition Table x i,y i x i-1,y i-1 - neither isat least one is neither isat least one is -- t i+1 wiwi

Repeating Example with Modified Table Example (-9) 10 + (29) 10

Two SD Encodings x Encoding 1 x h x l Encoding 2 x h x l 4!=24 possible encodings Only nine are distinct under permutation and logical negation two’s complement

Encoding 1 Satisfies simple relation x = x l - x h and 11 has a valid numerical value of 0. SD to two’s complement conversion performed by two’s complement subtraction

Encoding 2 Satisfies relation x i = -2x i h + x i l This means that x i l and x i-1 h have the same weight Also simplified addition table possible by regrouping bits

Two’s Complement/BSD Conversion Two’s Complement to SD Bits can be encoded directly with MSB negative one BSD to Two’s Complement One algorithm simpler than complete binary adder z i is two’s complement result c 0 = 0 Example

Binary SD Representations Representation of a value with the minimum number of non-zero digits – Important in multiplication and division since each zero eliminates an operation Minimal SD representation of X = 5 X = 5, n = 4, r = 2