Docsity

Practice Homework 2 - Computer Architecture | EEL 5764, Assignments of Computer Architecture and Organization

Toggle sidebar
bg1
Homework #2
EEL5764 Computer Architecture
Fall Semester, 2001
Assigned: 09/05/01
Due Date: 09/12/01 in class
NOTE: This homework is an assignment for individuals, not teams, and thus each student
should submit their own separate work.
(a) Hennessy & Patterson (H&P) 2.1
(b) H&P 2.2
(c) H&P 2.6
(d) H&P 2.7
(e) H&P 2.8
(f) H&P 2.9
(g) H&P 2.10
(h) H&P 2.11
(i) Use the overall average instruction mix of Figure 2.26 as a basis for evaluating the following. You are to
consider adding a new addressing mode to the DLX. This new addressing mode adds two registers and an 11-
bit signed offset to compute the effective address. Hence, instruction sequences that use an ALU instruction to
first compute the offset, such as:
ADD R1, R1, R2
LW Rx, 0(R1) (or similar store instruction)
will be replaced with a single load (or store) that uses the new addressing mode to compute the effective
address. From analyzing the instruction mix of the programs, you find that this new addressing mode can be
used for 10% of the displacement loads and stores (accounting for both the frequency of this type of address
calculation and the shorter offset). It is found, however, that the clock cycle must be lengthened by 5% to
accommodate this new addressing mode.
i. Find the resulting speedup and make a recommendation as to whether the new addressing mode should
or should not be used.
ii. Would you make the same recommendation if the addressing mode could be used for 20% of the
displacement loads and stores? Why?

Partial preview of the text

Download Practice Homework 2 - Computer Architecture | EEL 5764 and more Assignments Computer Architecture and Organization in PDF only on Docsity!

Homework

EEL5764 Computer Architecture Fall Semester, 2001 Assigned: 09/05/ Due Date: 09/12/01 in class NOTE: This homework is an assignment for individuals, not teams, and thus each student should submit their own separate work. (a) Hennessy & Patterson (H&P) 2. (b) H&P 2. (c) H&P 2. (d) H&P 2. (e) H&P 2. (f) H&P 2. (g) H&P 2. (h) H&P 2. (i) Use the overall average instruction mix of Figure 2.26 as a basis for evaluating the following. You are to consider adding a new addressing mode to the DLX. This new addressing mode adds two registers and an 11- bit signed offset to compute the effective address. Hence, instruction sequences that use an ALU instruction to first compute the offset, such as: ADD R1, R1, R LW Rx, 0(R1) (or similar store instruction) will be replaced with a single load (or store) that uses the new addressing mode to compute the effective address. From analyzing the instruction mix of the programs, you find that this new addressing mode can be used for 10% of the displacement loads and stores (accounting for both the frequency of this type of address calculation and the shorter offset). It is found, however, that the clock cycle must be lengthened by 5% to accommodate this new addressing mode. i. Find the resulting speedup and make a recommendation as to whether the new addressing mode should or should not be used. ii. Would you make the same recommendation if the addressing mode could be used for 20% of the displacement loads and stores? Why?