digital logic
ECE 204 Introduction to Digital Logic Bill Nelson Homework #2
1/18/17 1 Winter, 2017
NAME: ______________________________________ Due: 1/23/2017 Show your work. Answers without supporting work will not earn full credit. You may NOT use a calculator. If an answer overflows the available bits, give the computed answer and mark the answer as “overflow”. Watch the radices in problems 1 and 3. 1. Solve the following using 8 bit, one’s complement arithmetic:
a. (47 − 73)10: b. (01 1101.01 − 01 0111.10)2: c. (−36 − 53)8:
ECE 204 Introduction to Digital Logic Bill Nelson Homework #2
1/18/17 2 Winter, 2017
Problem #1 continued: d. (153 − 131)10: e. (−197 − 78)10:
2. Solve the following using 8 digit, nine’s complement arithmetic:
a. (71303.2 − 84153.8)10:
ECE 204 Introduction to Digital Logic Bill Nelson Homework #2
1/18/17 3 Winter, 2017
Problem #2 continued:
b. (4931.85 − 8506.13)10: c. (−809663− 559042)10: d. (38043 − 42582)10:
ECE 204 Introduction to Digital Logic Bill Nelson Homework #2
1/18/17 4 Winter, 2017
Problem #2 continued:
e. (−914.2856 − 673.6987)10:
3. Solve the following using 8 bit, two’s complement arithmetic:
a. (121 − 107)10: b. (26.75 − 25.25)10:
ECE 204 Introduction to Digital Logic Bill Nelson Homework #2
1/18/17 5 Winter, 2017
Problem #3 continued:
c. (57 − 72)8: d. (81 − 65)10: e. (37 − 58)10:
ECE 204 Introduction to Digital Logic Bill Nelson Homework #2
1/18/17 6 Winter, 2017
4. Complete the table below with the appropriate portion of a 5-bit Gray code and give the equivalent hexadecimal value:
A B C D E HEX 0 1 0 0 1 09 0 1 0 0 0 08 1 1 0 0 0 18
5. Compute the even parity for the following:
a. (7BD3 8465)16 : b. (D68A A7B4)16 : c. (0587 FF39)16 :