CSE 102 Introduction to Computer Engineering

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

DATA REPRESENTATION CONVERSION.
Number SystemsNumber Systems Modified By: AM. Sihan (Hardware Engineering)
Decimal Addition What is going on? (carry) (subtract the base)
Number System Conversions Lecture L2.2 Section 2.3.
Number Systems and Arithmetic
Number Systems Computer Science 210 Computer Organization.
+ CS 325: CS Hardware and Software Organization and Architecture Integers and Arithmetic.
1 Number SystemsLecture 8. 2 BINARY (BASE 2) numbers.
CHAPTER 1 INTRODUCTION NUMBER SYSTEMS AND CONVERSION.
Tanenbaum, Structured Computer Organization, Fifth Edition, (c) 2006 Pearson Education, Inc. All rights reserved Binary Numbers Appendix.
Conversion of Number System Conversion Among Bases The possibilities: Hexadecimal DecimalOctal Binary
46 Number Systems Problem: Implement simple pocket calculator Need: Display, adders & subtractors, inputs Display: Seven segment displays Inputs: Switches.
CHAPTER 1 INTRODUCTION NUMBER SYSTEMS AND CONVERSION
NUMBER SYSTEM.
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 Prepared By K.Anitha Associate Professor Dept of ECE PVPSIT.
Introduction to Computing Dr. Nadeem A Khan. Lecture 10.
CPS120: Introduction to Computer Science Computer Math: Converting to Decimal.
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.
Number System sneha.
Octal to Decimal Hexadecimal DecimalOctal Binary.
Positional Number Systems Decimal, Binary, Octal and Hexadecimal Numbers Wakerly Section
Chapter 1  Number Systems Decimal System Binary System Octal System Hexadecimal System  Binary weighted cods Signed number binary order  1’s and 2’s.
DECIMALBINARY a) b) c) d) e) f) Revision Exercise DECIMALBINARY a) b) c)
69 Decimal (Base 10) Numbers n Positional system - each digit position has a value n 2534 = 2*1, * *10 + 4*1 n Alternate view: Digit position.
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):
Bits, Data types, and Operations: Chapter 2 COMP 2610 Dr. James Money COMP
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.
Number Systems. There are 10 kinds of people in the world, those who understand binary and those who don’t.
Binary Values. Numbers Natural Numbers Zero and any number obtained by repeatedly adding one to it. Examples: 100, 0, 45645, 32 Negative Numbers.
Welcome to CSE 370 Introduction to Digital Design Jan 10, 2002.
ECE 2110: Introduction to Digital Systems Signed Number Conversions.
Computer Science 210 Computer Organization
Positional Number Systems Decimal, Binary, Octal and Hexadecimal Numbers Wakerly Section
Negative Binary Numbers
Introduction to Computing
Octal to Decimal Decimal Octal Binary Hexadecimal.
COMPUTER ORGANIZATION
Number Systems and Binary Arithmetic
Integer Real Numbers Character Boolean Memory Address CPU Data Types
CHAPTER 1 INTRODUCTION NUMBER SYSTEMS AND CONVERSION
CHAPTER 1 : INTRODUCTION
Computer Science 210 Computer Organization
Data Representation Integers
Negative Binary Numbers
Base ‘b’ number for i = 0 to n – 1 for an n digit quantity
Location in course textbook
Number Systems.
Overview Introduction Data representation Fixed Point Representation
Computer Science 210 Computer Organization
Data Representation in Computer Systems
Computer Science 210 Computer Organization
Chapter 2: Number Systems
Digital Logic Design (CSNB163)
Chapter 1 Number System RGGP, Narwana.
Number Systems.
1-8 Multiplying and Dividing Integers
Chapter 6: Computer Arithmetic
Multiplying Integers SAME SIGNS??? Answer will be POSITIVE. ex)
Chapter 2 Number Systems.
Chapter 2 Number Systems.
Chapter 2 Number Systems.
GCSE COMPUTER SCIENCE Topic 3 - Data 3.3 Logical and Arithmetic Shifts.
Chapter 2 Number Systems.
1. Number Systems Chapt. 2.
Presentation transcript:

CSE 102 Introduction to Computer Engineering Number System

Number Systems Binary numbers (Base 2): 0,1 Octal numbers (Base 8): 0,1,2,3,4,5,6,7 Decimal numbers (Base 10): 0,1,2,3,4,5,6,7,8,9 Hexadecimal numbers (Base 16): 0,1,2,3,4,5,6,7,8, 9,A,B,C,D,E,F

Decimal to Binary Conversion (102)10 = (?)2 = (1100110)2 Divide by 2 Remainder 102 2 51 25 1 12 6 3

Decimal to Binary Conversion (0.125)10 = (?)2 = (0.001)2 Multiply by 2 Integer part 0.125 2 0.25 0.5 1.0 1

Decimal to Binary Conversion Multiply by 2 Integer part 0.4 2 0.8 1.6 1 1.2 (0.4)10 = (?)2 = (0.01100110)2 = (0.0110)2

Binary to Octal and Hexadecimal Conversion (001100110)2 = (146)8 1 4 6 Hexadecimal (1100110)2 = (?)16 (01100110)2 = (66)16 6 6

Binary to Octal and Hexadecimal Conversion (0.011001100)2 = (0.314)8 3 1 4 Hexadecimal (0.01100110)2 = (?)16 (0.01100110)2 = (66)16 6 6

Representation of Integers Signed-magnitude representation 2’s complement representation

Signed-magnitude Representation sign bit 0-positive 1-negative integer Ex: +10210 - 10210 0 0 0 0 1 1 0 0 1 1 0 1 0 0 0 1 1 0 0 1 1 0

2’s complement Representation To find 1’s complement of a binary number change 1s to 0s and 0s to 1s To find 2’s complement of a number add 1 to its 1’s complement Ex: (102)10 = (0001100110)2 1’s complement: 1110011001 2’s complement: 1110011010

2’s complement Representation Ex: +10210 -10210 0 0 0 1 1 0 0 1 1 0 1 1 1 0 0 1 1 0 1 0