Electrical, Computer, and Systems Engineering

ECSE-4730 Computer Systems Architecture

Fall 1998

 

Problem Set 2-- Due Friday, September 25, 1998

 

Your Name

Circle Your Section

8-9:50 am 10-11:50 am noon-1:50pm

 

Notes:

    1. Be brief.
    2. The answers you submit should be the result of your own individual work. This should not be a collaborative activity.
    3. Refer to the course syllabus under "General Policies Regarding Graded Material" for important notes regarding problem sets. Reminder, as stated in syllabus: SUBMISSIONS NOT HANDED TO COURSE STAFF (E.G. SLIPPED UNDER DOOR, PLACED IN MAILBOX) WILL AUTOMATICALLY BE MARKED LATE.
    4. If after working on the problems, you feel you may need some help, please don’t hesitate to see the instructor or TA. Instructor office hours are 10-11:30 MW, and TAs will conduct the problem sessions on Friday, Sept 25th in JEC 4304 where you can seek their help
    5. Make sure the pages are stapled together before handing it in.

 

----------------------------------Do not write below this line-----------------------------------------

 

1

2

3

Total

30

35

35

100

 

 

TA Signature :___________________________________

 

1. (30 points) [Reading assignments]

  1. (15 points) Read Sec 3.10 which gives a complete example of MIPS code. Summarize your views on how the common constructs in this piece of C code are converted into MIPS.

 

 

 

B) (15 points) Read Sec 4.7 (pg 265-273, Integer Division) and pg 280-290 (Floating point addition and multiplication) , and the summary (sec 4.11) in the textbook (P&H). Summarize the key points and details.

 

 

 

 

 

 

  1. (35 points) [MIPS Instruction Set] Do Exercise 3.2 of chapter 3 (on page 197, P&H).
  2. HINTS: As suggested in Ex 3.1, add comments to each line. Observe that $t0 and $t1 contain array indices (call them i and j to help you understand the code). Call the array A. Write your comments in terms of these "high level variables."

     

     

     

     

     

     

  3. (35 points)

A) (15 points) [ALU and carry lookahead design] Explain the functionality and logic design aspects of Fig 4.19 (pg 240, Final 32-bit ALU) and Fig 4.24 (Pg 246, carry lookahead 16-bit adder)

 

 

 

B) (20 points) [2’s complement and IEEE 754] Do Exercise 4.2 (pg 322) and Exercise 4.28 (pg 327) of chapter 4 (P&H).

NOTE: In Ex 4.28, you don’t need to find the IEEE 754 double precision format representation, just do the conversion into single precision format.