0% found this document useful (0 votes)
3 views

Assignment 1

Uploaded by

i230098
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
3 views

Assignment 1

Uploaded by

i230098
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 7

DIGITAL LOGIC & DESIGN (EE-1005)

ASSIGNMENT #1
ID: __________ NAME: __________________ SECTION: ____

Read the Instructions Carefully

❖ Base 3, base 4, base 5, base 6 means the one you used in QUESTION 1
❖ Your assigned number is given in csv file along with this assignment.
FOR EXAMPLE: Assigned Number if your assigned number is 7821
Assign Digit 0 Assign Digit 1 Assign Digit 2 Assign Digit 3
Short for Assigned Digit A0 A1 A2 A3
Write Assigned Number
Digit By Digit 7 8 2 1

FOR EXAMPLE: Name is HAMAZADAUD

❖ Use your name instead of HAMZA


❖ If your name starts with MUHAMMAD kindly use your second name
❖ Convert repeated character to small letter or to other symbols to make them unique (see example for A,
a & @)
SIXTH FIFTH FOURTH THIRD SECOND FIRST ZERO
CHARACTER CHARACTER CHARACTER CHARACTER CHARACTER CHARACTER CHARACTER
OF YOUR OF YOUR OF YOUR OF YOUR OF YOUR OF YOUR OF YOUR
NAME NAME NAME NAME NAME NAME NAME
Short for
C0 C1 C2 C3 C4 C5 C6
CHARACTER
YOUR
NAME
CHARACTER
BY
@ D a Z M A H
CHARACTER
ID:__________ ASSIGNMENT # 1 [EE-1005] Assigned Number:
1. Fill the table given below and Count in given base
NOTE: Use Assigned number & Your Name

• Base 3 (Zero Digit is Assign0 (A0), First Digit is Assign1 (A1), Second Digit is Assign2 (A2))
• Base 4 (Zero Digit is Assign0 (A0), First Digit is Assign1 (A1), Second Digit is Assign2 (A2), and Third Digit is
Assign3 (A3))
• Base 5 (Zero Digit is Character0 (C0) of your name, First Digit is Character1 (C1) of your name, Second
Digit is Character2 (C2) of your name, Third Digit is Character3 (C3) of your name, Four Digit is
Character04 (C4) of your name)
• Base 6 (Zero Digit is Character0 (C0) of your name, First Digit is Character1 (C1) of your name, Second
Digit is Character2 (C2) of your name, Third Digit is Character3 (C3) of your name, Four Digit is
Character04 (C4) of your name and Fifth Digit is Character05 (C5) of your name)

TABLE
BASE 10 BASE 2 BASE 8 BASE
DECIMAL BASE 3 BASE 4 BASE 5 BASE 6 16
BINARY OCTAL HEXA
0 0

1 1

10

11

12

13

14

15

16

2
ID:__________ ASSIGNMENT # 1 [EE-1005] Assigned Number:
BASE 2 BASE 8 BASE
BASE 10 BINARY BASE 3 BASE 4 BASE 5 BASE 6 OCTAL 16
HEXA
17

18

19

20

21

22

23

24

25

26

27

28

29

30

31

32

33

34

35

36

37

38

39

40

41

3
ID:__________ ASSIGNMENT # 1 [EE-1005] Assigned Number:
42

43

44

45 -

46

47

48

49

50

2. Perform the following conversion to check your counting in question 1

• (34) 10 = ( ? )3 Base 3 used in Question # 1

• (52) 10 = ( ? )4 Base 4 used in Question # 1

4
ID:__________ ASSIGNMENT # 1 [EE-1005] Assigned Number:
• (49) 10 = ( ? )5 Base 5 used in Question # 1

• (53) 10 = ( ? )6 Base 6 used in Question # 1

5
ID:__________ ASSIGNMENT # 1 [EE-1005] Assigned Number:

3. Convert Decimal (Assigned Number )10 to ( ? )3, ( ? )4, ( ? )5 and ( ? )6 check results by recovering

them to decimal

4. Convert Decimal fraction (0. Last two digits of the Assigned Number )10 to ( ? )3, ( ? )4, ( ? )5 and

( ? )6 check results by reconverting them to decimal

5. Perform addition to result of Question 3 to base in Question 1 as follow

• (Assigned number)3 + ( question 1 number 43)3


• (Assigned number)4 + ( question 1 number 45)4
• (Assigned number)5 + ( question 1 number 38)5
• (Assigned number)6 + ( question 1 number 29)6
6. Perform subtraction to result of Question 3 from base in Question 1 as follow :
• (Assigned number)3 - ( question 1 number 50)3
• (Assigned number)4 - ( question 1 number 42)4
• (Assigned number)5 - ( question 1 number 37)5
• (Assigned number)6 - ( question 1 number 48)6
7. Perform R ’s and (R-1)’s complement to the results of question 3 to generate negative number

• R ’s and (R-1)’s of (Assigned number)3 of results from Q3

• R ’s and (R-1)’s of (Assigned number)4 of results from Q3

• R ’s and (R-1)’s of (Assigned number)5 of result from Q3

• R ’s and (R-1)’s of (Assigned number)6 of results from Q3

6
ID:__________ ASSIGNMENT # 1 [EE-1005] Assigned Number:

8. Perform R-1 ’s complement subtraction using values from Question 7 and Question 1

• (question 1 number 23)3 - (R-1)’s of (Assigned number)3 results from Q7

• (question 1 number 29)4 - (R-1)’s of (Assigned number)4 results from Q7

• (question 1 number 31)5 - (R-1)’s of (Assigned number)5 results from Q7

• (question 1 number 42)6 - (R-1)’s of (Assigned number)6 results from Q7

9. Perform R ’s complement subtraction using values from Question 7 and Question 1

• (question 1 number 15)3 - (R)’s of (Assigned number)3 results from Q7

• (question 1 number 19)4 - (R)’s of (Assigned number)4 results from Q7

• (question 1 number 25)5 - (R)’s of (Assigned number)5 results from Q7

• (question 1 number 42 )6 - (R)’s of (Assigned number)6 results from Q7


10. Number Multiplication

• Multiply first two digits of your assigned number(A0A1)10 with (21)10

• Multiply (17)3 x (7)3 =(?)3 Result should be in base 3 as well

• Convert assigned Number A2 to binary and multiply with given number (A2.101)2 with
(110.101)2
11. Number Division

• Divide last two digits of your assigned number(A2A3)10 with (5)10

• Convert assigned Number (A2A3)10 to binary and divide in given number (A2A3)2 with (9)2

12. BCD Addition

• Add your assigned number to (3291) using BCD

13. Convert your assigned number to binary (base2) and covert that binary to gray code.

You might also like