0% found this document useful (0 votes)
75 views4 pages

ECE 452: Computer Organization and Design Homework 1 Solution

This document provides the solutions to the homework for the course ECE 452: Computer Organization and Design for Spring 2010. It includes solutions to 5 questions (Q1-Q5) related to computer architecture, performance analysis, and power consumption. Students were instructed to submit their solutions as a single PDF or Word file along with any supplementary files like code. Questions were graded based on arguments and reasoning for solutions where a single correct answer did not exist.

Uploaded by

Giannis Goulias
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
75 views4 pages

ECE 452: Computer Organization and Design Homework 1 Solution

This document provides the solutions to the homework for the course ECE 452: Computer Organization and Design for Spring 2010. It includes solutions to 5 questions (Q1-Q5) related to computer architecture, performance analysis, and power consumption. Students were instructed to submit their solutions as a single PDF or Word file along with any supplementary files like code. Questions were graded based on arguments and reasoning for solutions where a single correct answer did not exist.

Uploaded by

Giannis Goulias
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 4

ECE 452: Computer Organization and Design

Spring 2010

Homework 1 Solution
Assigned: 2 Feb 2010
Due: 9 Feb 2010
Instructions:

Please submit your solutions via RamCT. Submissions should include a SINGLE PDF or Word file with
the solutions/write-up and an archive for any supplementary files (e.g. program code).
Some questions might not have a clearly correct or wrong answer. In such cases, grading is based on your
arguments and reasoning for arriving at a solution.

Q1 (25 points) Exercise 1.2


1.2.1 8 bits 3 colors = 24 bits/pixel = 4 bytes/pixel. 1280 800 pixels = 1,024,000 pixels. 1,024,000 pixels 4
bytes/pixel = 4,096,000 bytes (approx 4 Mbytes).
1.2.2 2 GB = 2000 Mbytes. No. frames = 2000 Mbytes/4 Mbytes = 500 frames.
1.2.3 Network speed: 1 gigabit network ==> 1 gigabit/per second = 125 Mbytes/second. File size: 256 Kbytes =
0.256 Mbytes. Time for 0.256 Mbytes = 0.256/125 = 2.048 ms.
1.2.4 2 microseconds from cache ==> 20 microseconds from DRAM. 20 microseconds from DRAM ==> 2 seconds
from magnetic disk. 20 microseconds from DRAM ==> 2 ms from flash memory.

Q2 (40 points) Exercise 1.4


1.4.1 P2
Class A: 105 instr.
Class B: 2 105 instr.
Class C: 5 105 instr.
Class D: 2 105 instr.
Time = No. instr. CPI/clock rate
P1: Time class A = 0.66 104
Time class B = 2.66 104
Time class C = 10 104
Time class D = 5.33 104
Total time P1 = 18.65 104
P2: Time class A = 104
Time class B = 2 104
Time class C = 5 104
Time class D = 2 104
Total time P2 = 10 104 or 1ms

1.4.2 CPI = time clock rate/No. instr.


CPI(P1) = 18.65 104 1.5 109/106 = 2.79
CPI(P2) = 10 104 2 109/106 = 2
1.4.3
clock cycles(P1) = 105 1 + 2 105 2 + 5 105 3 + 2 105 4 = 28 105
clock cycles(P2) = 105 2 + 2 105 2 + 5 105 2 + 2 105 3 = 22 105
1.4.4
(500 1 + 50 5 + 100 5 + 50 2) 0.5 109 = 675 ns
1.4.5 CPI = time clock rate/No. instr.
CPI = 675 109 2 109/700 = 1.92
1.4.6
Time = (500 1 + 50 5 + 50 5 + 50 2) 0.5 109 = 550 ns
Speed-up = 675 ns/550 ns = 1.22
CPI = 550 109 2 109/650 = 1.69

Q3 (35 points) Exercise 1.9


1.9.1
a. 1/49 100 = 2%
b. 45/120 100 = 37.5%
1.9.2
a. Ileak = 1/3.3 = 0.3
b. Ileak = 45/1.1 = 40.9
1.9.3
a. Powerst/Powerdyn = 1/49 = 0.02
b. Powerst/Powerdyn = 45/75 = 0.6
1.9.4 Powerst/Powerdyn = 0.6 => Powerst = 0.6 Powerdyn
a. Powerst = 0.6 40 W = 24 W
b. Powerst = 0.6 30 W = 18 W
1.9.5
a. Ilk = 24/0.8 = 30 A
b. Ilk = 18/0.8 = 22.5 A
1.9.6

Q4 (35 points) Exercise 1.11 (all except 1.11.5)

Q5 (55 points) Exercise 1.14

3.125 x 10-3 s

1.25

You might also like