Computer Organization
Solutions for Exam 1
February 5, 2003
Examination Time: 55 minutes
Closed Book and Notes
No Calculators
Name:
Problem 1 points earned:
Problem 2 points earned:
Problem 3 points earned:
Problem 4 points earned:
Problem 5 points earned

Solutions for Homework Chapter 3 Computer Organization Spring
2003
Problem 1
Comments have been added to the code to indicate what each instructions does relative to the following C
code that it implements.
for (i=0; i < n ; i+)
z[i] = z[i+1];
#
#
#
#
#
W

Solutions Homework Chapter 2 Computer Organization Spring 2003
Problem 1
Throughput is work over time.
tasks
300tasks
= 50
6secs
sec
Problem 2
We are given the ratio of performances which is unitless. We can therefore write
it in terms of execution time t

Computer Organization
Exam 2
Spring 2003
Examination Time: 55 minutes
Closed Book and Notes
No Calculators
Name:
Problem 1 points earned:
Problem 2 points earned:
Problem 3 points earned:
Problem 4 points earned:
Total:
1
Problem 1: Basic Facts ( 25 point

Solutions Homework Chapter 4 Part 2 and 3
Computer Organization Spring 2003
Problem 1 ( 25 points)
(a) (5 points) Draw a gate network that implements the switching function
f (v, w, x, y, z ) = (v + w)(xy + z )
Solution: There are, of course, several netw

Solutions for Homework Chapter 5 part 1
Computer Organization Spring 2003
Problem 1 ( 40 points)
Consider the single-cycle implementation given in Figure 5.29. You are to add an addi instruction, i.e., an
add with immediate data. Indicate any changes to t

Solutions for Homework Chapter 7 Virtual Memory
Computer Organization Spring 2003
Assumptions
The page size in the virtual memory system is 4KB.
The instruction TLB is direct-mapped with 2 sets and each block contains one virtual-to-physical
translation

Solutions for Homework Chapter 6 Parts 2 and 3
Computer Organization Spring 2003
Problem 1 ( 40 points)
Recall that forwarding can be done from a load to a store that follows immediately and stores the same data
that was loaded. This is MEM to MEM stage f