This preview shows pages 1–6. Sign up to view the full content.
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 blurred sections. Sign up to view the full version.
View Full Document 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
8bit Sign/Magnitude
72
__________
__________
8bit 2’s Complement
__________
11001001
__________
8bit Unsigned
__________
__________
0xCD
_bit_____________
11
11011
__________
b) (6 pts) Perform the following calculation in 8bit 2’s complement.
First convert the
numbers from decimal to binary representation, and then perform the computation.
Report your answer in both binary 8bit 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:
8bit 2’s complement:
(3 pts)
Decimal:
(4 pts)
This preview has intentionally blurred sections. Sign up to view the full version.
View Full Document NETID______________________________
Page 4 of 11
c)
(6 pts)
Convert the following decimal number into IEEE Floating Point Standard
format:
1.5
Write your answer in the space below.
3
1
3
0
2
9
2
8
NETID______________________________
Page 5 of 11
Q2. Endian Representation (20 pts)
(20 pts)
The following assembly code sequence is executed on two different machines, one
of which is bigendian and the other littleendian.
The initial register values are the same
on both machines, as shown in
Table 1
.
a)
This preview has intentionally blurred sections. Sign up to view the full version.
View Full Document
This is the end of the preview. Sign up
to
access the rest of the document.
This note was uploaded on 04/28/2008 for the course ECE 3140 taught by Professor Mckee/long during the Spring '07 term at Cornell University (Engineering School).
 Spring '07
 MCKEE/LONG

Click to edit the document details