Homework #2
1. Working with CPI for a specific program.
A Program Consists of the following Instruction Mix for a specific program:
Type Specific Instructions Distribution Clock Cycles Per Instruction
R-Format  All (Add, etc)  37% 
I-Format 
LW 
All Others (SW, etc.) 
22% 
20% 
J-Format  All (Jmp, etc.)  21% 
A) How many clock cycles will the program take if it consists of 150,900,000 instructions?
 

B) How long will it take with a 1500MHz clock?
 

C) Assuming that the CPU's clock speed can be changed, what's the minimum speed the clock would need to be to complete the program in 0.3s?
 

2. Performance vs. Cost Shopping & Purchasing Evaluation
Go to your favorite Internet Hardware shopping site (I chose www.pricewatch.com), and get the prices of nine different size EIDE Hard Drives. Try to get a price on a drive that's close to each of the following sizes:
20Gig, 25Gig, 30Gig, 40 Gig, 45 Gig, 60Gig, 75Gig, 80Gig, 100Gig, 120G, 160G, and 180G
(Find the cheapest price - ignore factors like rpms, cache, etc.)
  1. Find the Dollars/Gigabyte for each.
  2. Graph the Cost vs. Capacity. (Capacity on Horizontal Axis, Cost on Vertical Axis)
  3. Graph the Capacity vs. the Dollars/Gigabyte for each. (Again, Capacity on Horizontal Axis)
  4. Why do you think the graph is shaped the way it is?
    (Does marketing have anything to do with it? What about Brand Name? What about Production/Material Costs?)
  5. What is your recommendation if I need 200Gb of space and I currently have room for 2 drives? Why?
  6. What is your recommendation if I have a budget of about $400 and whish to spend it all on Drive Capacity? Why?
  7. List your sources

3. Consumer Exercise: Examining Overclocking

  1. Look-up and, in your own words, explain the idea of "Overclocking".

  2. (Provide a reference to your information)
  3. Is overclocking beneficial?

4. Download and run "PerformanceTest" on at least two different computers (try to find computers with different processors).
a) Is this a synthetic or non-synthetic benchmark?
b) How did the computers choosen compare? Was one clearly better than the other? Are these the results you expected?
c) What components (types of performance) does this benchmark measure?
d) Write a breif summary of your findings
e) Do you think this is  a useful benchmark? Why or Why Not?

5. Perform the following data-type conversions:

a) Hex Integers:
32-bit signed numbers:  0x000005C3, 0xFFFFE826
32-bit UNsigned numbers:  0x001005C3, 0xFFFFE826

Convert Each Decimal
b)  Convert the following to 32-bit 2's compliment and write in HEX:    
201545
-1
c)  Convert the following decimal numbers into IEEE-754 and express in hexadecimal:
1,638.291015625
-1244.65625
d) Convert the following from IEEE-754 single precision floating point into deciamal:
0x400A22FA
0xC23BA45F
e) The following sequence of hexadecimal numbers is also ASCII text, find it's meaning:
0x42696720
0x456e6469
0x616e204c
0x6f6f6b73
0x206c696b
0x65207468
0x69730000  
f) The following sequence of hexadecimal numbers is ASCII text, find it's meaning:
0x7474694c
0x4520656c
0x6169646e
0x7942206e
0x4f206574
0x72656472