ComputerScienceExpert

(11)

$18/per page/

About ComputerScienceExpert

Levels Tought:
Elementary,Middle School,High School,College,University,PHD

Expertise:
Applied Sciences,Calculus See all
Applied Sciences,Calculus,Chemistry,Computer Science,Environmental science,Information Systems,Science Hide all
Teaching Since: Apr 2017
Last Sign in: 8 Weeks Ago, 5 Days Ago
Questions Answered: 4870
Tutorials Posted: 4863

Education

  • MBA IT, Mater in Science and Technology
    Devry
    Jul-1996 - Jul-2000

Experience

  • Professor
    Devry University
    Mar-2010 - Oct-2016

Category > Programming Posted 27 Apr 2017 My Price 9.00

•write the operands as 2's complement binary

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)

Answers

(11)
Status NEW Posted 27 Apr 2017 02:04 AM My Price 9.00

-----------

Attachments

file 1493259037-Solutions file 2.docx preview (51 words )
H-----------ell-----------o S-----------ir/-----------Mad-----------am ----------- Th-----------ank----------- yo-----------u f-----------or -----------you-----------r i-----------nte-----------res-----------t a-----------nd -----------buy-----------ing----------- my----------- po-----------ste-----------d s-----------olu-----------tio-----------n. -----------Ple-----------ase----------- pi-----------ng -----------me -----------on -----------cha-----------t I----------- am----------- on-----------lin-----------e o-----------r i-----------nbo-----------x m-----------e a----------- me-----------ssa-----------ge -----------I w-----------ill----------- be----------- qu-----------ick-----------ly -----------onl-----------ine----------- an-----------d g-----------ive----------- yo-----------u e-----------xac-----------t f-----------ile----------- an-----------d t-----------he -----------sam-----------e f-----------ile----------- is----------- al-----------so -----------sen-----------t t-----------o y-----------our----------- em-----------ail----------- th-----------at -----------is -----------reg-----------ist-----------ere-----------d o-----------n -----------THI-----------S W-----------EBS-----------ITE-----------. ----------- Th-----------ank----------- yo-----------u -----------
Not Rated(0)