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

Slides:



Advertisements
Similar presentations
UNIVERSITY OF MASSACHUSETTS Dept
Advertisements

Integers. Integer Storage Since Binary consists only of 0s and 1s, we can’t use a negative sign ( - ) for integers. Instead, the Most Significant Bit.
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.
CS 151 Digital Systems Design Lecture 3 More Number Systems.
2-1 Computer Organization Part Fixed Point Numbers Using only two digits of precision for signed base 10 numbers, the range (interval between lowest.
1 Binary Arithmetic, Subtraction The rules for binary arithmetic are: = 0, carry = = 1, carry = = 1, carry = = 0, carry =
ENGIN112 L3: More Number Systems September 8, 2003 ENGIN 112 Intro to Electrical and Computer Engineering Lecture 3 More Number Systems.
CSE20 Lecture 3 Number Systems: Negative Numbers 1.Sign and Magnitude Representation 2.1’s Complement Representation 3.2’s Complement Representation 1.
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.
Introduction to Number Systems
Bell Work: ½ is a member of what subsets of real numbers?
COE 202: Digital Logic Design Number Systems Part 1
Binary Number Systems.
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.
Binary numbers and arithmetic. ADDITION Addition (decimal)
The Binary Number System
Data Representation Number Systems.
© Janice Regan, CMPT 128, Jan CMPT 128: Introduction to Computing Science for Engineering Students Integer Data representation Addition and Multiplication.
Selecting a to Eliminate Carry Chain in SD For no carry, require.
Computer Architecture I: Digital Design Dr. Robert D. Kent Lecture 1 – Part B Data, Representation & Numeracy.
ECE 8053 Introduction to Computer Arithmetic (Website: Course & Text Content: Part 1: Number Representation.
Binary Real Numbers. Introduction Computers must be able to represent real numbers (numbers w/ fractions) Two different ways:  Fixed-point  Floating-point.
General Fixed Radix Number Systems Nonredundant Positive radix, ß n digits in digit set Vector:
Computer Arithmetic Nizamettin AYDIN
1 Digital Technology and Computer Fundamentals Chapter 1 Data Representation and Numbering Systems.
Computer Architecture
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,
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,
Digital Logic Design Lecture 3 Complements, Number Codes and Registers.
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.
CPS120: Introduction to Computer Science Computer Math: Signed Numbers.
Information Representation. Digital Hardware Systems Digital Systems Digital vs. Analog Waveforms Analog: values vary over a broad range continuously.
Chapter 3 Limits and the Derivative Section 3 Continuity.
When we add or subtract integers we can use a number line to help us see what is happening with the numbers.
Computer Arithmetic and the Arithmetic Unit Lesson 2 - Ioan Despi.
Cosc 2150: Computer Organization Chapter 2 Part 1 Integers addition and subtraction.
Fixed and Floating Point Numbers Lesson 3 Ioan Despi.
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.
CSC 221 Computer Organization and Assembly Language
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.
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.
DATA REPRESENTATION Data Types Complements Fixed Point Representations
Binary Numbers The arithmetic used by computers differs in some ways from that used by people. Computers perform operations on numbers with finite and.
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.
Floating Point Representations
Fundamentals of Computer Science
Cosc 2150: Computer Organization
Addition and Subtraction
Binary Numbers The arithmetic used by computers differs in some ways from that used by people. Computers perform operations on numbers with finite and.
Digital Systems and Number Systems
Computer Science 210 Computer Organization
TAO1221 COMPUTER ARCHITECTURE AND ORGANIZATION LAB 6
Computer Science 210 Computer Organization
CSCI206 - Computer Organization & Programming
King Fahd University of Petroleum and Minerals
Unconventional Fixed-Radix Number Systems
Data Representation in Computer Systems
Subtraction The arithmetic we did so far was limited to unsigned (positive) integers. Today we’ll consider negative numbers and subtraction. The main problem.
UNIVERSITY OF MASSACHUSETTS Dept
Data Representation – Chapter 3
Do not use a calculator for the following!!.
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 For n = 2, range is 199 values and 19 2 = 361 representations implies redundancy Example redundant representation:

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