Digital Logic Design (CSNB163)

Slides:



Advertisements
Similar presentations
ECE 331 – Digital System Design
Advertisements

DATA REPRESENTATION CONVERSION.
MOHD. YAMANI IDRIS/ NOORZAILY MOHAMED NOOR 1 Lecture 3 Number System.
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.
Number System Conversions Lecture L2.2 Section 2.3.
1 Number Systems. 2 Numbers Each number system is associated with a base or radix – The decimal number system is said to be of base or radix 10 A number.
Number Systems and Arithmetic
BASICS OF COMPUTER APPLICATIONS ASB 102. UNIT 1 Introducing computer system  Number system  What is number system?  Types of number system  Their.
Number Systems - Part II
Based on slides by:Charles Kime & Thomas Kaminski © 2004 Pearson Education, Inc. ECE/CS 352: Digital System Fundamentals Lecture 1 – Number Systems and.
1 Number SystemsLecture 8. 2 BINARY (BASE 2) numbers.
Chapter 3 Data Representation
Supplemental Chapter Number Bases
Conversion of Number System Conversion Among Bases The possibilities: Hexadecimal DecimalOctal Binary
NUMBER SYSTEM.
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,
– Digital Circuit 1 Choopan Rattanapoka
ECE 331 – Digital System Design
Number Systems Ron Christensen CIS 121.
Number systems, Operations, and Codes
Introduction to Computing Dr. Nadeem A Khan. Lecture 10.
CPS120: Introduction to Computer Science Computer Math: Converting to Decimal.
Positional Notation 642 in base 10 positional notation is:
Number Base Conversions
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.
Chapter 2 Number Systems Consists of a set of symbols called digits and a set of relations such as +, -, x, /.
Module 2.  In Module 1, we have learned basic number representation which include binary, octal, hexadecimal and decimal.  In digital systems, numbers.
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 SYSTEMS AND CODES. CS Digital LogicNumber Systems and Codes2 Outline Number systems –Number notations –Arithmetic –Base conversions –Signed.
Arithmetic Chapter 4 Subject: Digital System Year: 2009.
Chapter 5 NUMBER REPRESENTATION AND ARITHMETIC CIRCUITS.
Binary Values. Numbers Natural Numbers Zero and any number obtained by repeatedly adding one to it. Examples: 100, 0, 45645, 32 Negative Numbers.
CPE 201 Digital Design Lecture 2: Digital Systems & Binary Numbers (2)
Lecturer: Santokh Singh
Chapter 2 Binary Number Systems.
Positional Number Systems Decimal, Binary, Octal and Hexadecimal Numbers Wakerly Section
Octal to Decimal Decimal Octal Binary Hexadecimal.
Positional Notation A positional or place-value notation is a numeral system in which each position is related to the next by a constant multiplier, called.
Integer Real Numbers Character Boolean Memory Address CPU Data Types
Number System Submitted by: Submitted to: Devashish Bhardwaj Miss.Hina
Number Systems.
ITE102 – Computer Programming (C++)
CSE 102 Introduction to Computer Engineering
Location in course textbook
Chapter 3 Data Representation
Number System conversions
Number Systems Base 2, 10, 16.
EGRE 254 Number Systems and Codes 1/12/09
Modular Arithmetic and Change of Base
Numbering Systems and Arithmetic operations on Hex, binary, and octal
Chapter 2: Number Systems
ECE 301 – Digital Electronics
Number systems and codes
Chapter 2 Number Systems.
Number Systems Rayat Shikshan Sanstha’s
Numeral systems (radix)
Storing Integers and Fractions
Number Systems Rayat Shikshan Sanstha’s
Number Systems By: Asst Lec. Besma Nazar Nadhem
Information Representation
COE 202: Digital Logic Design Number Systems Part 2
Chapter 2 Number Systems.
Presentation transcript:

Digital Logic Design (CSNB163) Module 1

Number Systems Number system consists of an ordered set of symbols called digit. The radix (r) or base is the total number of digits allowed in the system. Common number systems includes decimal (r = 10) binary (r = 2) octal (r =8 ) hexadecimal (r = 16) {0,1,2,3,4,5,6,7,8,9} {0,1} {0,1,2,3,4,5,6,7} {0,1,2,3,4,5,6,7,8,9,A,B,C,D,E,F}

Number Representations A number may appear in 2 parts: integer part fractional part which are separated by radix point (.). Numbers can be represented in 2 notations: Position notation Polynomial notation 123.45 123.45 1x102 + 2x101 + 3x100 + 4x10-1 + 5x10-2

Arithmetic Operation Arithmetic operations can be performed on numbers regardless of their radixes. Common arithmetic operation includes: Addition (+) Subtraction (-) Multiplication (×) Division (÷) Decimal Binary Octal Hexadecimal

Arithmetic Operation (Addition) Decimal 123410 + 456710 580110 Binary 100110100102 + 10001110101112 10110101010012 Octal 23228 +107278 132518 Hexadecimal 4D216 +11D716 16A916

Arithmetic Operation (Subtraction) Decimal 456710 - 123410 333310 Binary 10001110101112 - 100110100102 1101000001012 Octal 107278 - 23228 64058 Hexadecimal 11D716 - 4D216 D0516

Arithmetic Operation (Multiplication) Decimal 456710 × 210 913410 Binary 10001110101112 ×______ 102 100011101011102 Octal 107278 × 28 216568 Hexadecimal 11D716 × 216 23AE16

Arithmetic Operation (Division) Decimal 123410 ÷ 210 61710 Binary 10011010010 2 ÷ ___ 102 10011010012 Octal 23228 ÷ 28 11518 Hexadecimal 4D2 16 ÷ 216 26916

Number Base Conversion To convert a number in one base to another. May involve conversion of fractional parts. There are many conversion techniques, however we shall concentrate on: Radix based conversion Grouping based conversion Decimal Binary Octal Hexadecimal Decimal Binary Octal Hexadecimal

Radix Based Conversion Recaps: A number may appear in 2 parts: integer part fractional part which are separated by radix point (.). For radix based conversion: integer part – divide by radix fractional part – multiply by radix 123.45

Radix Based Conversion (Example1) Convert 1234 decimal into binary 2 1234   617 308 1 154 77 38 19 9 4 Radix 2 Answer Divide by radix 2 100110100102

Radix Based Conversion (Example2) Convert 1234 decimal into octal Radix 8 Answer 8 1234   154 2 19 3 Divide by radix 8 23228

Radix Based Conversion (Example3) Convert 1234 decimal into hexadecimal Radix 16 Answer 16 1234   77 2 4 D Divide by radix 16 4D216

Radix Based Conversion (Example4) Convert 0.6875 decimal into binary Radix 2 Multiply by radix 2 Fraction Radix Total (Fraction x Radix) Integer 0.6875 2 1.375 1 0.375 0.75 1.5 0.5 Answer 0.10112

Radix Based Conversion (Example5) Convert 0.51310 to base 16 (up to 4 fractional point) Radix 16 Multiply by radix 16 Fraction Radix Total (Fraction x Radix) Integer 0.513 16 8.208 8 0.208 3.328 3 0.328 5.248 5 0.248 3.968 0.968 Answer 0.835316

Grouping Based Conversion Recaps: A number may appear in 2 parts: integer part fractional part which are separated by radix point (.). For radix based conversion: integer part – divide by radix fractional part – multiply by radix 123.45

Digital Logic Design (CSNB163) End of Module 1