Professional Documents
Culture Documents
• For Example :
Binary Decimal Octa Hex
Binary System:
Truth Table
Base : 2 Decimal A B
0 0 0
Digits : 0 , 1 1 0 1
2 1 0
Example : (0100)2 , (1010)2 , (01)2 3 1 1
Truth Table
Octal System: Decimal A B C
0 0 0 0
Base : 8 1 0 0 1
2 0 1 0
Digits : 0 , 1 , 2 , 3 , 4 , 5 , 6 , 7 3 0 1 1
4 1 0 0
Example : (6)8 , (55)8 , (109)8 5 1 0 1
6 1 1 0
7 1 1 1
Hexadecimal System: 1 0 0 0 1
2 0 0 1 0
3 0 0 1 1
Base : 16
4 0 1 0 0
5 0 1 0 1
Digits : 0 , 1 , 2 , 3 , 4 , 5 , 6 , 7 , 8 , 9, A , B , C, 6 0 1 1 0
7 0 1 1 1
D,E,F 8 1 0 0 0
9 1 0 0 1
Example : (3AB)16 , (500C)16 , (ABCD)16 A = 10 1 0 1 0
B = 11 1 0 1 1
C = 12 1 1 0 0
D = 13 1 1 0 1
E = 14 1 1 1 0
Eng. Norhan Ahmed F = 15 1 1 1 1
CSC201: Digital Logic Design
Level 2 – 1st Semester
Decimal Hexadecimal
Binary Octal
Arithmetic
Operations in
Binary System
CSC201: Digital Logic Design
Level 2 – 1st Semester
Binary Addition:
• A numbering system used by computers and digital circuits.
• Uses 2 values: 0 or 1.
0+0=0 1
0 00 11001
0+1=1 1 01 +
10101
1+0=1 2 10
1+1=2 1 01 110
3 11
1+1+1=3
Binary Subtraction:
• A numbering system used by computers and digital circuits.
• Uses 2 values: 0 or 1.
0 10
0-0=0
11001
0 - 1 = 1 (Borrow 1) -
10101
1-0=1
1-1=0 00 100
Binary Multiplication:
• A numbering system used by computers and digital circuits.
• Uses 2 values: 0 or 1.
1010
0*0=0 *
101
0*1=0
+ 1010
1*0=0 00000
1*1=1 + 1010 00
110010
Binary Division: 0 1 10
• A numbering system used by 10 - 1100
computers and digital circuits. 0
• Uses 2 values: 0 or 1. - 11
10
- 010
10
0000
Arithmetic
Operations in
(Octa & Hex)
Systems
CSC201: Digital Logic Design
Level 2 – 1st Semester
9
-
11
1 8
456 1
+
123
601 8
-
1 8
0
Hexadecimal Addition:
4A6
+
1B3
621
59
Hexadecimal Addition:
Draft
1
4A6 21
+ -
1B3 1 16
6 59 5
+ 3 6 74 12
1 4 30 0 -
8
1
4
Draft
Octal MULTIPLICATION: (Final Result)
9
-
1 8
614
x 1
25
11
+ 3 6 74 8
143 0 0 -
8
1
2 0 17 4 0
40 88
- -
16 16
24 72
Draft
A101
x
1 DC -
21
1 16
+ 78C 0 C
82D0 D0 5
8A5CDC
Signed Numbers
CSC201: Digital Logic Design
Level 2 – 1st Semester
2. 1’s Complement:
11010 00101
110111 001000
1011011 0100100
3. 2’s Complement:
Practical Part
CSC201: Digital Logic Design
Level 2 – 1st Semester
Multiplexer (MUX):
Multiplexer: a circuit consisting of 2 or more inputs and 1 output used to
choose 1 input and connect it to the output.
2 to 1 multiplexer:
Output = Selector Output0 + Selector Output1
Selector Output
0 Input 0
1 Input 1
Any Questions
Eng. Norhan Ahmed
CSC201: Digital Logic Design
Level 2 – 1st Semester
Thank You
Eng. Norhan Ahmed