MOHD. YAMANI IDRIS/ NOORZAILY MOHAMED NOOR 1 Lecture 3 Number System.

Slides:



Advertisements
Similar presentations
MOHD. YAMANI IDRIS/ NOORZAILY MOHAMED NOOR 1 Combinational Circuit – Arithmetic Circuit Parallel Adder Example: 4-bit adder.
Advertisements

ECE 331 – Digital System Design
DATA REPRESENTATION CONVERSION.
Chapter 2 : Number System
MOHD. YAMANI IDRIS/ NOORZAILY MOHAMED NOOR 1 Negative Number (Sign & Magnitude) Negative number always written with sign at the front: –Example: -(20)
CS 151 Digital Systems Design Lecture 3 More Number Systems.
Agenda Shortcuts converting among numbering systems –Binary to Hex / Hex to Binary –Binary to Octal / Octal to Binary Signed and unsigned binary numbers.
Number Systems. 2 The total number of allowable symbols in a number system is called the radix or base of the system. Decimal Numbers: radix = 10 (symbols:
Chapter Chapter Goals Know the different types of numbers Describe positional notation.
ECE 301 – Digital Electronics Course Introduction, Number Systems, Conversion between Bases, and Basic Binary Arithmetic (Lecture #1)
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.
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)
MOHD. YAMANI IDRIS/ NOORZAILY MOHAMED NOOR 1 Overflow Signed binary is in fixed range -2 n-1  2 n-1 If the answer for addition/subtraction more than the.
BASICS OF COMPUTER APPLICATIONS ASB 102. UNIT 1 Introducing computer system  Number system  What is number system?  Types of number system  Their.
Number Systems Computer Science 210 Computer Organization.
Number Systems - Part II
CS105 INTRODUCTION TO COMPUTER CONCEPTS BINARY VALUES & NUMBER SYSTEMS Instructor: Cuong (Charlie) Pham.
Based on slides by:Charles Kime & Thomas Kaminski © 2004 Pearson Education, Inc. ECE/CS 352: Digital System Fundamentals Lecture 1 – Number Systems and.
#1 Lec # 2 Winter EECC341 - Shaaban Positional Number Systems A number system consists of an order set of symbols (digits) with relations.
Eng. Mohammed Timraz Electronics & Communication Engineer University of Palestine Faculty of Engineering and Urban planning Software Engineering Department.
NUMBER SYSTEM.
Lecture 4 Last Lecture –Positional Numbering Systems –Converting Between Bases Today’s Topics –Signed Integer Representation Signed magnitude One’s complement.
Engineering 1040: Mechanisms & Electric Circuits Spring 2014 Number Systems.
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 ≤
Number Systems and Codes. CS2100 Number Systems and Codes 2 NUMBER SYSTEMS & CODES Information Representations Number Systems Base Conversion Negative.
Chapter 2 Binary Values and Number Systems. 2 2 Natural Numbers Zero and any number obtained by repeatedly adding one to it. Examples: 100, 0, 45645,
Computer Arithmetic and the Arithmetic Unit Lesson 2 - Ioan Despi.
ECE 331 – Digital System Design
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.
CMPE12c Fall 03Cyrus BazeghiCMPE12c Fall 03Cyrus Bazeghi 1 Number Systems.
Dr. Ahmed Telba EE208: Logic Design Lecture# 1 Introduction & Number Systems.
Number systems, Operations, and Codes
Introduction to Computing Dr. Nadeem A Khan. Lecture 10.
Number Base Conversions
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.
Dale & Lewis Chapter 2 Binary Numbers and Number Systems.
CDP ECE Spring 2000 ECE 291 Spring 2000 Lecture 2: Number Systems & x86 Instructions Constantine D. Polychronopoulos Professor, ECE Office: 463.
SAK Chapter 21 Chapter 2 : Number System 2.1 Decimal, Binary, Octal and Hexadecimal Numbers 2.2 Relation between binary number system with other.
WEEK #2 NUMBER SYSTEMS, OPERATION & CODES (PART 1)
Lecture 2 Number Systems
School of Computer and Communication Engineering, UniMAP Mohd ridzuan mohd nor DKT 122/3 - DIGITAL SYSTEM I Chapter.
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):
DIGITAL SYSTEMS Number systems & Arithmetic Rudolf Tracht and A.J. Han Vinck.
Chapter 2 Binary Values and Number Systems Chapter Goals Distinguish among categories of numbers Describe positional notation Convert numbers in.
Chapter 1 Number Systems Digital Electronics. Topics discussed in last lecture Digital systems Advantages of using digital signals over analog. Disadvantages.
1 EGR 277 – Digital Logic Syllabus Office Hours No food or drinks in the classrooms Web page (demonstration) Lecture #1 EGR 277 – Digital Logic Reading.
Lecture No. 4 Computer Logic Design. Negative Number Representation 3 Options –Sign-magnitude –One’s Complement –Two’s Complement  used in computers.
The Hexadecimal System is base 16. It is a shorthand method for representing the 8-bit bytes that are stored in the computer system. This system was chosen.
Binary Values. Numbers Natural Numbers Zero and any number obtained by repeatedly adding one to it. Examples: 100, 0, 45645, 32 Negative Numbers.
Week 1(Number System) Muhammad Ammad uddin Logic Design Lab I (CEN211)
CPE 201 Digital Design Lecture 2: Digital Systems & Binary Numbers (2)
CS2100 Computer Organisation
Lecturer: Santokh Singh
Introduction to Computing
Digital Systems and Number Systems
Integer Real Numbers Character Boolean Memory Address CPU Data Types
CSE 102 Introduction to Computer Engineering
Number Systems.
CS1010 Programming Methodology
Data Representation in Computer Systems
Digital Logic & Design Lecture 02.
Digital Logic Design (ECEg3141) 2. Number systems, operations & codes 1.
Chapter 2: Number Systems
Digital Logic Design (CSNB163)
ECE 301 – Digital Electronics
Chapter 2 Number Systems.
Prof. Giancarlo Succi, Ph.D., P.Eng.
Chapter 2 Number Systems.
Presentation transcript:

MOHD. YAMANI IDRIS/ NOORZAILY MOHAMED NOOR 1 Lecture 3 Number System

MOHD. YAMANI IDRIS/ NOORZAILY MOHAMED NOOR 2 Topics Information Representation Position sign Decimal number system (base 10) Number system and conversion of base R number to decimal Decimal to binary conversion Base conversion Binary – octal/hexadecimal conversion Base 2 arithmetic operation Negative number Comparison between sign & magnitude and complement Complement

MOHD. YAMANI IDRIS/ NOORZAILY MOHAMED NOOR 3 Information Representation Number is important in computer: –Represent information accurately –Can be processed For Example: –To represent yes or no, use 0 for yes and 1 for no –To represent four seasons, fall(0), winter(1), spring(2), summer(3) –IC number –Matrics number

MOHD. YAMANI IDRIS/ NOORZAILY MOHAMED NOOR 4 Position Number Sign free from position –Every symbol free free from position – Egypt number system Number relative to position –Roman number system I(1), V(5), X(10), C(50), M(100) –Relative is important – IV(4), VI(6) Calculation is hard for both number system

MOHD. YAMANI IDRIS/ NOORZAILY MOHAMED NOOR 5 Position Number Weighted positional notation –Decimal number system –Position is important –E.g. –Value depends on its position Generally

MOHD. YAMANI IDRIS/ NOORZAILY MOHAMED NOOR 6 Position Number Fraction Generally Other bases

MOHD. YAMANI IDRIS/ NOORZAILY MOHAMED NOOR 7 Decimal Number System (Base 10) Weight power of 10 Example

MOHD. YAMANI IDRIS/ NOORZAILY MOHAMED NOOR 8 Number system and conversion of base R number to decimal Binary (base 2) numbers weighted power of 2 –Binary digit (bit): 0, 1 Octal (base 8) numbers weighted power of 8 –Octal digital: 0,1,2,3,4,5,6,7 Hexadecimal (base 16) numbers weighted power of 16 –Hexadecimal digit: 0,1,2,3,4,5,6,7,8,9,A,B,C,D,E,F Therefore, base R number weighted power of R

MOHD. YAMANI IDRIS/ NOORZAILY MOHAMED NOOR 9 Number system and conversion of base R number to decimal

MOHD. YAMANI IDRIS/ NOORZAILY MOHAMED NOOR 10 Number system and conversion of base R number to decimal Count in binary If there’s n-bit => largest value 2 n -1 Range for m =>log 2 m bit Decimal Binary

MOHD. YAMANI IDRIS/ NOORZAILY MOHAMED NOOR 11 Decimal to Binary Conversion Weight summation method Repeating Division with 2 (for integer) Repeating Multiplication with 2 (for fraction)

MOHD. YAMANI IDRIS/ NOORZAILY MOHAMED NOOR 12 Weight summation method Convert all number set to decimal number

MOHD. YAMANI IDRIS/ NOORZAILY MOHAMED NOOR 13 Repeating Division with 2 Remainder Example:

MOHD. YAMANI IDRIS/ NOORZAILY MOHAMED NOOR 14 Repeating Multiplication with 2 Multiply until 0 (or given decimal notation) Example:

MOHD. YAMANI IDRIS/ NOORZAILY MOHAMED NOOR 15 Conversion Between Bases Base R to decimal: digit multiplication with appropriate weight Decimal to binary (base 2) –Integer: repeating division with 2 –Fraction: repeating multiplication with 2 Decimal to R –Integer: repeating division with R –Fraction: repeating multiplication with R

MOHD. YAMANI IDRIS/ NOORZAILY MOHAMED NOOR 16 Conversion Between Bases Generally, conversion between bases can be done using decimal numbers Base 2 Base 3 Base 4 Decimal Base 4 …… Base R There are shortcuts for 2,4,8,16

MOHD. YAMANI IDRIS/ NOORZAILY MOHAMED NOOR 17 Conversion Binary-Octal/Hexadecimal Binary=>Octal:Grouped 3-bit from radix point Octal=>Binary: Invert Binary=>Hexadecimal:Grouped 4-bit from radix point Hexadecimal=>Binary:

MOHD. YAMANI IDRIS/ NOORZAILY MOHAMED NOOR 18 Binary Arithmetic Operation Addition Subtraction Multiplication

MOHD. YAMANI IDRIS/ NOORZAILY MOHAMED NOOR 19 Binary Arithmetic Operation ADDITION Similar to decimal Example:

MOHD. YAMANI IDRIS/ NOORZAILY MOHAMED NOOR 20 Binary Arithmetic Operation Addition Digital Table:

MOHD. YAMANI IDRIS/ NOORZAILY MOHAMED NOOR 21 Binary Arithmetic Operation SUBTRACTION Example

MOHD. YAMANI IDRIS/ NOORZAILY MOHAMED NOOR 22 Binary Arithmetic Operation Subtraction Digital Table:

MOHD. YAMANI IDRIS/ NOORZAILY MOHAMED NOOR 23 Binary Arithmetic Operation MULTIPLICATION Example:

MOHD. YAMANI IDRIS/ NOORZAILY MOHAMED NOOR 24 Binary Arithmetic Operation Multiplication Digital Table: Binary Decimal