





Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!






Problem 1 (20 pts):
a. (8 pts) Convert the following numbers (all binary numbers are in 2’s complement form):
01101.101 binary =⇒ 13.625 decimal
-13 decimal =⇒ 1111 0011 binary (8 bit)
11010011 binary =⇒ -45 decimal
1010.0101 binary =⇒ -5.6875 decimal
01010101 binary =⇒ 85 decimal
17 decimal =⇒ 0001 0001 binary (8 bit)
-2 decimal =⇒ 1111 1110 binary (8 bit)
b. (4 pts) Add the following unsigned, 5 bit, binary numbers; indicate if there has been an overflow error:
1010
10000
overflow? N overflow? Y overflow? N overflow? N
c. (8 pts) Add the following 5 bit, 2’s complement binary numbers, indicate if there has been an overflow error:
1010
10000
overflow? Y overflow? N overflow? Y
overflow? N overflow? Y overflow? N
Problem 3 (20 pts):
a. (10 pts) Often, in digital communications, a code is sent to mark the beginning of a mes- sage. The state diagram shown below detects the sequence 11010 with overlapping codes not permitted. For this state machine there is one input, the digital signal x, and one output, the detect signal D. Fill in the state table below based on the state diagram.
000/
001/0 010/
011/
101/1 100/
0
0
1
0
1
1
0
1
0
1