Docsity

CDA5155 Spring 2002 Homework Assignment, Assignments of Electrical and Electronics Engineering

Toggle sidebar
bg1
CDA5155 Spring 2002
HW #1
Total 100 points
Date Assigned : January 17, 2002
Due Date : January 28, 2002 , 11:59pm
Please save your document as a word document (.doc) or a text file (.txt).
HW should be submitted through CourseWorX only. No other form of submission is
allowed.
If you are not sure of the submission method, meet the TA during his office hours. Make
sure you jar your HW before submission.
This is a group HW. The instructor has assigned the groups. Please check the
announcement page for your group number and your teammate. Discussing HW with
anyone besides your group member will be considered as Academic Dishonesty.
Mention your group number and the group members on the first page of your HW.
Only one person from each group should submit the HW. If more than one HW/group are
submitted, then that group will get a negative 5% of their score.
Q1) (15 points) Do Exercise 1.1 from the text book, but instead of doing the 4 (a,b,c,d)
parts of the textbook, answer the following questions
a) Assume you can design a vector unit, which is infinitely fast. Then solve part (a)
of the question in the textbook.
b) What percentage of vectorization is needed to achieve a speed up of 5?
Q2) (15 points) Do Exercise 1.3 from the textbook.
Q3) (30 points) Do Exercise 1.13 ( a,b,c,d,e)from the textbook with the following
changes.
Change the statement “This older-model workstation is rated at 120 MIPS on this
benchmark” to “This older-model workstation is rated at 200 MIPS on this benchmark”.
Change the statement “The workstation/attached processor rates 80 MIPS on the same
benchmark” to “The workstation/attached processor rates 150 MIPS on the same
benchmark”
Q4) (10 points) Do Exercise 2.1 (a), (b) from the textbook.
pf2

Partial preview of the text

Download CDA5155 Spring 2002 Homework Assignment and more Assignments Electrical and Electronics Engineering in PDF only on Docsity!

CDA5155 Spring 2002

HW

Total 100 points Date Assigned : January 17, 2002 Due Date : January 28, 2002 , 11:59pm Please save your document as a word document (.doc) or a text file (.txt). HW should be submitted through CourseWorX only. No other form of submission is allowed. If you are not sure of the submission method, meet the TA during his office hours. Make sure you jar your HW before submission. This is a group HW. The instructor has assigned the groups. Please check the announcement page for your group number and your teammate. Discussing HW with anyone besides your group member will be considered as Academic Dishonesty. Mention your group number and the group members on the first page of your HW. Only one person from each group should submit the HW. If more than one HW/group are submitted, then that group will get a negative 5% of their score. Q1) (15 points) Do Exercise 1.1 from the text book, but instead of doing the 4 (a,b,c,d) parts of the textbook, answer the following questions a) Assume you can design a vector unit, which is infinitely fast. Then solve part (a) of the question in the textbook. b) What percentage of vectorization is needed to achieve a speed up of 5? Q2) (15 points) Do Exercise 1.3 from the textbook. Q3) (30 points) Do Exercise 1.13 ( a,b,c,d,e)from the textbook with the following changes. Change the statement “This older-model workstation is rated at 120 MIPS on this benchmark” to “This older-model workstation is rated at 200 MIPS on this benchmark”. Change the statement “The workstation/attached processor rates 80 MIPS on the same benchmark” to “The workstation/attached processor rates 150 MIPS on the same benchmark” Q4) (10 points) Do Exercise 2.1 (a), (b) from the textbook.

Q5) (30 points) Consider the following fragment of C code. I = 100; // I is stored at memory address 400000 N = 1; // N is stored at memory address 1000 While(I > 1) { N= N*I; // Store N back to memory every iteration I--; // Store I back to memory every iteration } Assume I and N are 32-bit integers. Assume that the values in the memory are lost between iterations of the loop. a) Write the code in DLX b) How many instructions are required dynamically c) How many total memory-data references will be executed d) What is the code size in bytes e) Using the table given below computer the average CPI. Instruction Clock cycles All ALU instructions 1. Load-stores 1. Conditional branches Taken Not Taken

Jumps 1.