Examlex

Solved

You Are Given a 4-Stage Pipelined Processor as Described Below \bullet

question 11

Essay

You are given a 4-stage pipelined processor as described below.
\bullet IF: Instruction Fetch
\bullet IDE: Instruction Decode, Register Fetch, ALU evaluation, branch instructions change PC, address calculation for memory access.
\bullet MEM: memory access for load and store instructions.
\bullet WB: Write the execution result back to the register file. The writeback occurs at the 2nd half of the cycle.
Assume the delayed branching method discussed in Section 4.3. For the following program, assume that the loop will iterate 15 times. Assume that the pipeline finishes one instruction every cycle except when a branch is taken or when an interlock takes place. An interlock prevents instructions from being executed in the wrong sequence to preserve original data dependencies. Assume register bypass from both the IDE output and the MEM output. Also assume that r2 will not be needed after the execution returns.
 You are given a 4-stage pipelined processor as described below.  \bullet IF: Instruction Fetch  \bullet IDE: Instruction Decode, Register Fetch, ALU evaluation, branch instructions change PC, address calculation for memory access.  \bullet MEM: memory access for load and store instructions.  \bullet WB: Write the execution result back to the register file. The writeback occurs at the 2nd half of the cycle. Assume the delayed branching method discussed in Section 4.3. For the following program, assume that the loop will iterate 15 times. Assume that the pipeline finishes one instruction every cycle except when a branch is taken or when an interlock takes place. An interlock prevents instructions from being executed in the wrong sequence to preserve original data dependencies. Assume register bypass from both the IDE output and the MEM output. Also assume that r2 will not be needed after the execution returns.    (a) Is there any interlock cycle in the program? If so, perform code reordering on the program and show the new program without interlock cycle. (b) Derive the total number of cycles required to execute all instructions before and after you eliminated the interlock cycle. (c) Fill the delay slots. Describe the code reordering and/or duplication performed. Show the same program after delay slot filling. Recall that RETURN is also a branch instruction. Use a ' to mark the new copy of a duplicated instruction. For example, if you duplicated D, name the new copy D'. (d)Derive the total number of cycles required to execute all instructions after you filled the delay slots. (a) Is there any interlock cycle in the program? If so, perform code reordering on the program and show the new program without interlock cycle.
(b) Derive the total number of cycles required to execute all instructions before and after you eliminated the interlock cycle.
(c) Fill the delay slots. Describe the code reordering and/or duplication performed. Show the same program after delay slot filling. Recall that RETURN is also a branch instruction. Use a ' to mark the new copy of a duplicated instruction. For example, if you duplicated D, name the new copy D'.
(d)Derive the total number of cycles required to execute all instructions after you filled the delay slots.


Definitions:

Patient Protection and Affordable Care Act (PPACA)

A federal law enacted in 2010 aimed at reducing healthcare costs and increasing health insurance coverage among Americans.

Personal Mandate

The requirement under the Patient Protection and Affordable Care Act (PPACA) of 2010 that all U.S. citizens and legal residents purchase health insurance unless they are already covered by employer-sponsored health insurance or government-sponsored health insurance (Medicaid or Medicare).

Government-provided Health Insurance

Health insurance schemes funded and managed by the government to offer medical coverage to its citizens.

Insurance Exchanges

Government-regulated markets for health insurance in which individuals seeking to purchase health insurance to comply with the personal mandate of the Patient Protection and Affordable Care Act (PPACA) of 2010 will be able to comparison shop among insurance policies approved by regulators. Each state will have its own exchange.

Related Questions