NETID______________________________
Page 1 of 11
NAME:_____________________________
SIGNATURE:________________________
ECE 314 Prelim Exam
March 16, 2006
Normal academic integrity rules apply.
No calculators.
Show your work (e.g., on the back of the page)
in order to receive partial credit.

This
** preview**
has intentionally

**sections.**

*blurred***to view the full version.**

*Sign up*
NETID______________________________
Page 2 of 11
Question
Possible Points
Points Earned
Number
Representation
20
Endian
Representation
20
Digital Logic
20
Performance
20
C and MIPS
20
Total
100

NETID______________________________
Page 3 of 11
Q.1. Number Representation (15 pts)
a)
(8 pts) Fill in the blanks:
Encoding
Decimal Value
Binary Pattern
Hex Pattern
8-bit Sign/Magnitude
-72
__________
__________
8-bit 2’s Complement
__________
11001001
__________
8-bit Unsigned
__________
__________
0xCD
_-bit_____________
-11
11011
__________
b)
(6 pts) Perform the following calculation in 8-bit 2’s complement.
First convert the
numbers from decimal to binary representation, and then perform the computation.
Report your answer in both binary 8-bit 2’s complement and decimal representations.
There will be no partial credit for this problem.
(Hint: doing the addition in decimal
will NOT work correctly.)
(-44)
─
(87)
Answer:
8-bit 2’s complement:
(3 pts)
Decimal:
(4 pts)

This
** preview**
has intentionally

**sections.**

*blurred***to view the full version.**

*Sign up*