Overview Introduction Data representation Fixed Point Representation

Slides:



Advertisements
Similar presentations
Appendix 1 Number Systems Objectives: Review of number systems and radix conversion methods Review of binary, octal, hexadecimal and BCD unsigned codes.
Advertisements

CS 151 Digital Systems Design Lecture 3 More Number Systems.
MOHD. YAMANI IDRIS/ NOORZAILY MOHAMED NOOR 1 Lecture 3 Number System.
2-1 Computer Organization Part Fixed Point Numbers Using only two digits of precision for signed base 10 numbers, the range (interval between lowest.
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.
ENGIN112 L3: More Number Systems September 8, 2003 ENGIN 112 Intro to Electrical and Computer Engineering Lecture 3 More Number Systems.
BASICS OF COMPUTER APPLICATIONS ASB 102. UNIT 1 Introducing computer system  Number system  What is number system?  Types of number system  Their.
ITEC 352 Lecture 6 Back to binary. Binary Review Decoders 7 segment display Complexity of wiring Questions?
Number Systems Computer Science 210 Computer Organization.
Binary Number Systems.
Binary Real Numbers. Introduction Computers must be able to represent real numbers (numbers w/ fractions) Two different ways:  Fixed-point  Floating-point.
Eng. Mohammed Timraz Electronics & Communication Engineer University of Palestine Faculty of Engineering and Urban planning Software Engineering Department.
Lecture 4: Number Systems (Chapter 3) (1) Data TypesSection3-1 (2) ComplementsSection3-2 (3) Fixed Point RepresentationsSection3-3 (4) Floating Point RepresentationsSection3-4.
Representation of data types. Introduction We are going to look at representing cardinal numbers, integers and real numbers in decimal, binary, octal.
Computer Number Systems. d n-1 d n-2 d n d 2-m d 1-m d -m Conventional Radix Number r is the radixd i is a digit d i Є {0, 1, ….., r – 1 } -m ≤
ECE 331 – Digital System Design
Introduction to Computing Dr. Nadeem A Khan. Lecture 10.
Lecture 2 Binary Values and Number Systems. The number 943 is an example of a number written in positional notation. The relative positions of the digits.
The Teacher CP4 Binary and all that… CP4 Revision.
Number Systems Binary to Decimal Octal to Decimal Hexadecimal to Decimal Binary to Octal Binary to Hexadecimal Two’s Complement.
Introduction to Number System
Chapter 1  Number Systems Decimal System Binary System Octal System Hexadecimal System  Binary weighted cods Signed number binary order  1’s and 2’s.
Binary01.ppt Decimal Decimal: Base 10 means 10 Unique numerical digits ,00010,000 Weight Positions 3,
ELEN 033 Lecture #5 Tokunbo Ogunfunmi Santa Clara University.
NUMBER SYSTEM. Number System Number Base B => B symbols – Base 16(Hexa):0, 1,……9, A,…, E, F – Base 10 (Decimal): 0, 1, 2,……, 7, 8, 9 – Base 8(Octal):
Number Representation Lecture Topics How are numeric data items actually stored in computer memory? How much space (memory locations) is.
Computer Studies Today Chapter 19 1 Chapter 19. Computer Studies Today Chapter 19 2 »Information stored in a computer is in two states: –ON –OFF.
Cis303a_chapt03_exam1_answer.ppt CIS303A: System Architecture Exam 1: Chapter 3 Answer List the characters (digits) for the following bases. 1) Decimal:
DATA REPRESENTATION Data Types Complements Fixed Point Representations
Welcome to CSE 370 Introduction to Digital Design Jan 10, 2002.
1 CE 454 Computer Architecture Lecture 4 Ahmed Ezzat The Digital Logic, Ch-3.1.
Department of Computer Science Georgia State University
Fundamentals of Computer Science
Computer Science 210 Computer Organization
Introduction to Computing
Number Representation
Introduction To Computer Science
Overview Introduction Data representation Fixed Point Representation
DATA REPRESENTATION Data Types Complements Fixed Point Representations
Integer Real Numbers Character Boolean Memory Address CPU Data Types
Computer Science 210 Computer Organization
ITE102 – Computer Programming (C++)
CSE 102 Introduction to Computer Engineering
Number Systems Lab session 1 Xuan Guo.
Number Systems.
Overview Introduction Logic Gates Flip Flops Registers Counters
ECE 2110: Introduction to Digital Systems
TAO1221 COMPUTER ARCHITECTURE AND ORGANIZATION LAB 6
Computer Science 210 Computer Organization
Data Representation Data Types Complements Fixed Point Representation
Topic 3 Number Representations and Computer Arithmetics
Data Representation in Computer Systems
Computer Science 210 Computer Organization
DATA REPRESENTATION Data Types Complements Fixed Point Representations
ECE 3110: Introduction to Digital Systems
Unit 18: Computational Thinking
Topic 3 Number Representations and Computer Arithmetics
Digital Logic Design (CSNB163)
Data Representation and Organization
Numbers representations
Storing Integers and Fractions
Prof. Giancarlo Succi, Ph.D., P.Eng.
DATA REPRESENTATION Data Types Complements Fixed Point Representations
COMS 161 Introduction to Computing
DATA REPRESENTATION Data Types Complements Fixed Point Representations
Lecture No.5.
Chapter3 Fixed Point Representation
Chapter 1 Introduction.
Presentation transcript:

Overview Introduction Data representation Fixed Point Representation Data Representation 1 Lecture 4 Overview Introduction Data representation Fixed Point Representation Integer Representation Floating Point Representation Normalization CSE 211, Computer Organization and Architecture Harjeet Kaur, CSE/IT

Introduction Data Number System Base (or radix) R number Data Representation 2 Lecture 4 Introduction Data Numeric data - numbers(integer, real) Non-numeric data - symbols, letters Number System Non-positional number system - Roman number system Positional number system - Each digit position has a value called a weight associated with it - Decimal, Octal, Hexadecimal, Binary Base (or radix) R number Uses R distinct symbols for each digit Example AR = an-1 an-2 ... a1 a0 . a-1…a-m V(AR ) = Radix point(.) separates the integer portion and the fractional portion R = 10 Decimal number system R = 2 Binary R = 8 Octal, R = 16 Hexadecimal CSE 211, Computer Organization and Architecture Harjeet Kaur, CSE/IT

Representation of Positional Numbers Data Representation 3 Lecture 4 Representation of Positional Numbers Decimal Binary Octal Hexadecimal 00 0000 00 0 01 0001 01 1 02 0010 02 2 03 0011 03 3 04 0100 04 4 05 0101 05 5 06 0110 06 6 07 0111 07 7 08 1000 10 8 09 1001 11 9 10 1010 12 A 11 1011 13 B 12 1100 14 C 13 1101 15 D 14 1110 16 E 15 1111 17 F CSE 211, Computer Organization and Architecture Harjeet Kaur, CSE/IT

COMPLEMENT OF NUMBERS The (R-1)'s Complement The R's Complement Data Representation 4 Lecture 4 COMPLEMENT OF NUMBERS Two types of complements for base R number system: R's complement and (R-1)'s complement The (R-1)'s Complement Subtract each digit of a number from (R-1) Example - 9's complement of 83510 is 16410 - 1's complement of 10102 is 01012(bit by bit complement operation) The R's Complement Add 1 to the low-order digit of its (R-1)'s complement Example - 10's complement of 83510 is 16410 + 1 = 16510 - 2's complement of 10102 is 01012 + 1 = 01102 CSE 211, Computer Organization and Architecture Harjeet Kaur, CSE/IT

Fixed Point Representation Data Representation 5 Lecture 4 Fixed Point Representation Binary Fixed-Point Representation X = xnxn-1xn-2 ... x1x0. x-1x-2 ... x-m Sign Bit(xn): 0 for positive - 1 for negative Remaining Bits(xn-1xn-2 ... x1x0. x-1x-2 ... x-m) Numbers: Fixed Point Numbers and Floating Point Numbers CSE 211, Computer Organization and Architecture Harjeet Kaur, CSE/IT

Fixed Point Representation Data Representation 6 Lecture 4 Fixed Point Representation Example: Represent +9 and -9 in 7 bit-binary number Only one way to represent + 9 ==> 0 001001 Three different ways to represent - 9: In signed-magnitude: 1 001001 In signed-1's complement: 1 110110 In signed-2's complement: 1 110111 Fixed point numbers are represented either integer part only or fractional part only. Representation of both positive and negative numbers - Following 3 representations Signed magnitude representation Signed 1's complement representation Signed 2's complement representation CSE 211, Computer Organization and Architecture Harjeet Kaur, CSE/IT