Answer the following questions in your own words. This assignment covers Chapter 1, and Appendices A, B and C.

1. Consider the following sequence of instructions (the first register is the destination, except in the sw instruction, where the first register is the source):

S1: lw R6, 0(R2)

S2: lw R7, 0(R1)

S3: add R4, R6, R7

S4: mul R6, R7, 2

S5: sw R4, 0(R3)

Identify the dependencies in this set of instructions. Specify the instructions involved and the register.

2. Write the DLX code that performs the following arithmetic:

B * C + C / D + A

3. Suppose that a pipeline processor has 8 stages. The stage latencies (completion times) are: 30,40, 50, 10, 10, 30, 20, 50. These times are nanoseconds. The interstage register overhead is5ns.

i. What should the pipeline cycle time be, included the overhead?

ii. Suppose a non-pipelined processor used the stage logic to execute instructions serially (one at a time, with no register overhead). How long would it take the non-pipeline processor to complete 1000 instructions?

iii. How long would it take the pipelined processor to complete 1000 instructions?

iv. What is the speedup of the pipelined processor over the non-pipelined processor?

4. Suppose that a system executes 1,000,000 instructions. The program has the following distribution: 30% load/store instructions, 50% ALU (integer) instructions, 15% branch instructions, and 5% floating point instructions. The CPI for each category of instruction is: load/store-3, ALU-1, branch-4, floating point-8.

i. What is the execution time of the program?

ii. Suppose that the CPI of the floating point program is reduced by half. What is the speed up on the new system over the old?

5. Suppose that a program spends 80% of its time doing I/O through the system hard drive and 20% executing instructions. Using Amdahl's Law, calculate the speedup if you replaced the current hard drive with one that is 1.25 times faster. Calculate the speedup if you replaced the CPU (which executes the instructions) with one twice as fast. Which gives you that better speedup?

6. Write three short assembly language programs in the DLX code. These assembly language programs will do the following:

• compute the average of 10 numbers in memory and store the result to memory

• compute the greatest common divisor of two numbers in memory and store the result to memory

• compute the inner product of two five element vectors

1. Consider the following sequence of instructions (the first register is the destination, except in the sw instruction, where the first register is the source):

S1: lw R6, 0(R2)

S2: lw R7, 0(R1)

S3: add R4, R6, R7

S4: mul R6, R7, 2

S5: sw R4, 0(R3)

Identify the dependencies in this set of instructions. Specify the instructions involved and the register.

2. Write the DLX code that performs the following arithmetic:

B * C + C / D + A

3. Suppose that a pipeline processor has 8 stages. The stage latencies (completion times) are: 30,40, 50, 10, 10, 30, 20, 50. These times are nanoseconds. The interstage register overhead is5ns.

i. What should the pipeline cycle time be, included the overhead?

ii. Suppose a non-pipelined processor used the stage logic to execute instructions serially (one at a time, with no register overhead). How long would it take the non-pipeline processor to complete 1000 instructions?

iii. How long would it take the pipelined processor to complete 1000 instructions?

iv. What is the speedup of the pipelined processor over the non-pipelined processor?

4. Suppose that a system executes 1,000,000 instructions. The program has the following distribution: 30% load/store instructions, 50% ALU (integer) instructions, 15% branch instructions, and 5% floating point instructions. The CPI for each category of instruction is: load/store-3, ALU-1, branch-4, floating point-8.

i. What is the execution time of the program?

ii. Suppose that the CPI of the floating point program is reduced by half. What is the speed up on the new system over the old?

5. Suppose that a program spends 80% of its time doing I/O through the system hard drive and 20% executing instructions. Using Amdahl's Law, calculate the speedup if you replaced the current hard drive with one that is 1.25 times faster. Calculate the speedup if you replaced the CPU (which executes the instructions) with one twice as fast. Which gives you that better speedup?

6. Write three short assembly language programs in the DLX code. These assembly language programs will do the following:

• compute the average of 10 numbers in memory and store the result to memory

• compute the greatest common divisor of two numbers in memory and store the result to memory

• compute the inner product of two five element vectors

Recommendation Report (RR)A Green City for Rogers BiometricsScenario{“Scenario” is an example of first- level APA 7 heading}It is centered, bold, upper & lower caseThe following scenario is what we...ActivitiesActivity 1AObjective To provide you with an opportunity to identify quality objectives and standards with input from relevant stakeholders.Equipment needed ? Access to peers? Suitable space for...This assignment is heavily epidemiology (Science/Math). It is due at 5:00pm EST. I have attached slides and notes relevant to the assignment to make this process easier.Introduction to International RelationsSecond Assessment: A 2,000/2500-word essay that provides a critical analysis of one of the main IR theories. Choose one IR theory (e.g. realism, liberalism, marxism,...I want complete my assignmentMy assignment is to create a very basic e-commerce website. I have already created the database and most of the client side content, but I am struggling with the sever side content. Primarily I am looking...Prepare a 5 minute presentation on business environment. Attached is the requirement**Show All Questions**