Levels Tought:
Elementary,Middle School,High School,College,University,PHD
Teaching Since: | Apr 2017 |
Last Sign in: | 8 Weeks Ago, 5 Days Ago |
Questions Answered: | 4870 |
Tutorials Posted: | 4863 |
MBA IT, Mater in Science and Technology
Devry
Jul-1996 - Jul-2000
Professor
Devry University
Mar-2010 - Oct-2016
Please show work so I can understand how to apply the book (Computer Organization and Design) knowledge:
Â
1) Computer C1 has an overall CPI of 2.0 and can be run at a clock rate of 2 GHz. Computer C2 has a CPI of 2.5 and can be run at a clock rate of 3 Ghz. A particular program when compiled for Computer C1 has exactly one million instructions. How many instructions would the program need to have when compiled for Computer C2, in order for the two computers to have exactly the same execution time for this program?
Â
2) The CPU design team is choosing between two implementations of the same instruction set each with three classes of instructions. Parameters for the two possibilities are given in the following table.
Â
CPU-1CPU-2
Clock Rate3GHz2GHz
CPI for ALU Inst.12
CPI for Memory Inst.22
CPI for Control Inst.42
Â
Â
a)Consider a program with 50% ALU instructions, 40% memory instructions, and 10% control instructions. What is the average CPI for CPU-1? What is the average CPI for CPU-2? Which is faster in terms of overall execution time?
b)Consider a program with 70% ALU instructions, 20% memory instructions and 10% control instructions. What is the average CPI for CPU-1? What is the average CPI for CPU-2? Which is faster in terms of overall execution time?
Â
3) Write the following sequence of code into MIPS assembler:
Â
x = x - y + z - 4;
Â
Assume that x, y, and z are stored in registers $s1, $s2, and $s3 respectively.
Â
4) This problem covers floating-point IEEE format.
Â
Assuming single precision IEEE 754 format, what decimal number is represent by this word:
Â
1 00111100 01010100000000000000000
Â
5) For the following operations:
•write the operands as 2's complement binary numbers,
•then perform the addition or subtraction operation shown.
Show all work in binary, operating on 8-bit numbers.
•4 + 2
•2 – 4
•4 – 2
•– 4 – (– 4)
-----------