General Fixed Radix Number Systems Nonredundant Positive radix, ß n digits in digit set Vector:

Slides:



Advertisements
Similar presentations
UNIVERSITY OF MASSACHUSETTS Dept
Advertisements

Intro to CS – Honors I Representing Numbers GEORGIOS PORTOKALIDIS
EET 1131 Unit 7 Arithmetic Operations and Circuits
HEXADECIMAL NUMBERS Code
Radix Conversion Given a value X represented in source system with radix  s, represent the same number in a destination system with radix  d Consider.
Digital Fundamentals Floyd Chapter 2 Tenth Edition
Chapter 1 Number Systems and Codes
CS 151 Digital Systems Design Lecture 3 More Number Systems.
1 Binary Arithmetic, Subtraction The rules for binary arithmetic are: = 0, carry = = 1, carry = = 1, carry = = 0, carry =
CSCE 211: Digital Logic Design Chin-Tser Huang University of South Carolina.
Copyright 2008 Koren ECE666/Koren Part.6a.1 Israel Koren Spring 2008 UNIVERSITY OF MASSACHUSETTS Dept. of Electrical & Computer Engineering Digital Computer.
1 CSE-221 Digital Logic Design (DLD) Lecture-1: Digital Systems & Number Systems.
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.
S. Barua – CPSC 240 CHAPTER 2 BITS, DATA TYPES, & OPERATIONS Topics to be covered are Number systems.
1 Binary Numbers Again Recall that N binary digits (N bits) can represent unsigned integers from 0 to 2 N bits = 0 to 15 8 bits = 0 to bits.
Number Systems Lecture 02.
Fixed-Point Negative Numbers Two Common Forms: 1.Signed-Magnitude Form 2.Complement Forms Signed-Magnitude Numbers First Digit is Sign Digit, Remaining.
NEGATIVE BINARY NUMBER – Digital Circuit 1 Choopan Rattanapoka.
Data Representation Number Systems.
Computer Organization & Programming Chapter2 Number Representation and Logic Operations.
Selecting a to Eliminate Carry Chain in SD For no carry, require.
Lecture for Week Spring.  Numbers can be represented in many ways. We are familiar with the decimal system since it is most widely used in everyday.
1 Arithmetic and Logical Operations - Part II. Unsigned Numbers Addition in unsigned numbers is the same regardless of the base. Given a pair of bit sequences.
Computer Arithmetic Nizamettin AYDIN
Chapter 7 Arithmetic Operations and Circuits Binary Arithmetic Addition –When the sum exceeds 1, carry a 1 over to the next-more-significant column.
#1 Lec # 2 Winter EECC341 - Shaaban Positional Number Systems A number system consists of an order set of symbols (digits) with relations.
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,
Lecture Overview Introduction Positional Numbering System
Topic 2 – Introduction to Computer Codes. Computer Codes A code is a systematic use of a given set of symbols for representing information. As an example,
ECEN2102 Digital Logic Design Lecture 1 Numbers Systems Abdullah Said Alkalbani University of Buraimi.
Digital Logic Design Lecture 3 Complements, Number Codes and Registers.
Chapter 4 – Arithmetic Functions and HDLs Logic and Computer Design Fundamentals.
Computer Arithmetic — Number Representation EPFL – I&C – LAP EPFL – CSDA and UC Davis – ACSEL.
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.
Oct. 18, 2007SYSC 2001* - Fall SYSC2001-Ch9.ppt1 See Stallings Chapter 9 Computer Arithmetic.
Information Representation. Digital Hardware Systems Digital Systems Digital vs. Analog Waveforms Analog: values vary over a broad range continuously.
Computer Arithmetic and the Arithmetic Unit Lesson 2 - Ioan Despi.
1 EENG 2710 Chapter 1 Number Systems and Codes. 2 Chapter 1 Homework 1.1c, 1.2c, 1.3c, 1.4e, 1.5e, 1.6c, 1.7e, 1.8a, 1.9a, 1.10b, 1.13a, 1.19.
Cosc 2150: Computer Organization Chapter 2 Part 1 Integers addition and subtraction.
BR 8/99 Binary Numbers Again Recall than N binary digits (N bits) can represent unsigned integers from 0 to 2 N bits = 0 to 15 8 bits = 0 to 255.
ECE 8053 Introduction to Computer Arithmetic (Website: Course & Text Content: Part 1: Number Representation.
Topic 1 – Number Systems. What is a Number System? A number system consists of an ordered set of symbols (digits) with relations defined for addition,
Tutorial: ITI1100 Dewan Tanvir Ahmed SITE, UofO
Data Representation in Computer Systems. 2 Signed Integer Representation The conversions we have so far presented have involved only positive numbers.
Unconventional Fixed-Radix Number Systems
Chapter 1: Binary Systems
IT1004: Data Representation and Organization Negative number representation.
2's Complement Arithmetic
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.
CSC 331: DIGITAL LOGIC DESIGN COURSE LECTURER: E. Y. BAAGYERE. CONTACT: LECTURE TIME: 15:40 – 17:45 hrs. VENUE: SP-LAB.
ECE DIGITAL LOGIC LECTURE 3: DIGITAL COMPUTER AND NUMBER SYSTEMS Assistant Prof. Fareena Saqib Florida Institute of Technology Fall 2016, 01/19/2016.
ECE DIGITAL LOGIC LECTURE 4: BINARY CODES Assistant Prof. Fareena Saqib Florida Institute of Technology Fall 2016, 01/26/2016.
General Fixed Radix Number Systems Nonredundant Positive radix, ß n digits in digit set Vector:
ELEC692 VLSI Signal Processing Architecture Lecture 12 Numerical Strength Reduction.
Computer Math CPS120 Introduction to Computer Science Lecture 7.
Number Systems. The position of each digit in a weighted number system is assigned a weight based on the base or radix of the system. The radix of decimal.
Dr. ClincyLecture 2 Slide 1 CS Chapter 2 (1 of 5) Dr. Clincy Professor of CS Note: Do not study chapter 2’s appendix (the topics will be covered.
Cosc 2150: Computer Organization
Addition and Subtraction
Digital Logic & Design Adil Waheed Lecture 02.
Digital Systems and Number Systems
King Fahd University of Petroleum and Minerals
Unconventional Fixed-Radix Number Systems
Data Representation in Computer Systems
UNIVERSITY OF MASSACHUSETTS Dept
ECE 352 Digital System Fundamentals
CHAPTER 69 NUMBER SYSTEMS AND CODES
Presentation transcript:

General Fixed Radix Number Systems Nonredundant Positive radix, ß n digits in digit set Vector:

General Fixed Radix Number Systems For Given Radix and n, how many number systems? ANSWER: Number equal to all possible permutations of n choose –1 (or +1), Choose -1 Positive Radix Negative Radix Of these, 1 is Pos. Radix 1 is Neg. Radix The following is the Radix-complement:

General FR Number Systems - Properties Largest Representable Integer Smallest Representable Integer p i are Digits of P

General FR Number Systems - Properties Using the p i Expression and Forming the Radix Polynomial for P digit weight Define as Q

General FR Number Systems - Properties Q is the value represented by the following n-tuple if all i =1 For N, the Smallest Representable Value:

General FR Number Systems - Properties Using Similar Analysis as With the Case of P: digit weight Define as Q

General FR Number Systems –Symmetry Summarizing: Where In General These Bounds are Asymmetric Measure of Asymmetry is: Therefore, Q is a Measure of Asymmetry for Generalized Fixed Radix Number Systems

GFRNS – Asymmetry Examples Consider the Negative Radix System: Asymmetric Range: n even   times as many negative as positive values n odd   times as many positive as negative values 2’s Complement: (1 more negative number) System: (1 more positive number)

GFRNS – Complement Recall that a complement of a digit, x i, is: The Complement of a Value, X, is Calculated as: Q X Thus,

Signed-Digit Number Systems Fixed radix (positional) Allows each digit to carry a sign example This signed digit (SD) is a new definition of the digit complement

Signed-Digit Example for a total of 19 possible digits If n = values, however there are 19 2 = 361 representations possible which implies this is a redundant number system

Signed-Digit Example - Redundancy 19 possible digits 199 values and 19 2 = 361 representations implies redundancy Example redundant representation: For n = 2, range is Redundancy Index,  =  +  + 1 – r for digit set is [- ,  ] Here,  = – 10 = 9, but if  = 0 &  =9, then  = 0.

Restricting Redundancy

Signed-Digit Characteristics Positive radix, ß > 0 X = 0 is unique Easy to convert Constant Delay for Add/Sub Regardless of Word Size

Breaking the Carry Chain Using SD Can make sum only a function of two digit positions Carry-Free Addition Algorithm Step 1: Find interim sum w i and transfer digit t i+1 where and Step 2: Find final sum s i positional sum p i

Signed Digit Addition Hardware

SD Addition Example Let a = 6 for r = 10

SD Addition Example (Continued) Let X = 1634, Y = 3366 Using normal addition produces a carry chain But by the carry-free algorithm

Converting Decimal to SD Let r = 10, a = 6 Consider the value as x i + y i and use algorithm Converting from SD to decimal – just sum plus and minus weights 2030 – 204 = 1826

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

Alternate Class of BSD Addition Tables* * see M. Thornton, A Signed Binary Addition Circuit Based on an Alternative Class of Addition Tables x i,y i t i+1 wiwi Motivation: Previous tables based on calculation of where w i and t i require 2-bit encoding Alternative restricts these values to {0,1} or {1,0} Note: In the discussion c i will be used in place of t i and u i for w i

Basic Idea for Alternate SBD Representation Restrict Add 2b i+1 since it is “borrowed” from i+1 column Subtract b i since it is “borrowed” from i-1 column

Basic SD Addition Tables Both have inherent propagation limitations

Alternative 1 BSD Addition Table* b i+1 c i+1 u i b i =1 b i =0 * Table 2 of Thornton paper

Alternative 2 BSD Addition Table* b i+1 c i+1 u i b i =1 b i =0 * Table 4 of Thornton paper

Encoding Scheme For Even Parity* Choose Then each successive pair of signed binary digits can be grouped with even parity Single bit error coverage over digit pairs * see M. Thornton, Signed Binary Addition Circuitry with Inherent Even Parity Outputs