Digital Logic Design Week 1 Lecture 2
Digital Logic Design Week 1 Lecture 2
1
Number System Conversion
2
Decimal to Binary Conversions
3
Decimal to Binary Conversions
For Fractional Part,
Multiply given fraction portion with 2
and store the integer portion of the
resultant.
4
Decimal to Octal and Hexadecimal Conversion
5
Binary to Decimal Conversion
6
Binary to Octal Conversions
7
Binary to Hexadecimal Conversions
8
Octal to Other Conversions
Octal to Decimal
Octal to Hexadecimal
Octal to Binary
9
Hexadecimal to Other Conversions
Hexadecimal to Binary
10
Data Arithmetic Representation
11
Binary Arithmetic
Unsigned representation
+6 = 110
-6 = No representation
Range: 0 to 2n
Signed representation
+6=0 110
-6= 1 110
Range: -(2n-1-1) to +(2n-1-1)
12
Using Complement
• r‘s complement / radix complement
• (r-1)’s complement / diminished radix complement
13
Binary Subtraction using 1’s Complement
Use 1’s complement
1. Take 1’s comp of no you are
subtracting
2. Add it
3. If the final carry is 1, add to
result
4. If the carry is 0, the result is
negative in 1’s
Complement
14
Binary Subtraction using 2’s Complement
Use 2’s complement
1. Take 2’s comp of no you are subtracting
2. Add it
3. If the final carry is 1, the result is positive
4. If the carry is 0, the result is negative
15
THANK YOU!
Reference:
Digital Logic and Computer Design. M. Morris Mano (1979).
16