Presentation is loading. Please wait.

Presentation is loading. Please wait.

Digital Logic Design (CSNB163)

Similar presentations


Presentation on theme: "Digital Logic Design (CSNB163)"— Presentation transcript:

1 Digital Logic Design (CSNB163)
Module 1

2 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}

3 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 1x x x x x10-2

4 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

5 Arithmetic Operation (Addition)
Decimal 123410 580110 Binary Octal 23228 132518 Hexadecimal 4D216 +11D716 16A916

6 Arithmetic Operation (Subtraction)
Decimal 456710 333310 Binary Octal 107278 64058 Hexadecimal 11D716 - 4D216 D0516

7 Arithmetic Operation (Multiplication)
Decimal 456710 × 913410 Binary ×______ Octal 107278 × 216568 Hexadecimal 11D716 × 23AE16

8 Arithmetic Operation (Division)
Decimal 123410 ÷ 61710 Binary ÷ ___ Octal 23228 ÷ 11518 Hexadecimal 4D2 16 ÷ 26916

9 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

10 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

11 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

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

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

14 Radix Based Conversion (Example4)
Convert 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

15 Radix Based Conversion (Example5)
Convert 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

16 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

17 Digital Logic Design (CSNB163)
End of Module 1


Download ppt "Digital Logic Design (CSNB163)"

Similar presentations


Ads by Google