Question

Given the following sequential list of VEX operations: A. add $r3 = $r1, $r2 B. sub...

Given the following sequential list of VEX operations:

A. add $r3 = $r1, $r2

B. sub $r8 = $r1, $r3

C. sub $r7 = $r1, 2

D. add $r1 = $r1, 1

E. mpy $r6 = $r3, $r2

Which VEX operations can be scheduled simultaneously to make up the second VLIW instruction? The constructed schedule should satisfy the following conditions: Assume infinite resources and no limit to the number of operations scheduled to a single instruction. Operations that are scheduled in the same instruction should never have a case where an operation writes to a register that a different operation is reading from. You are allowed to re-order operations as long as dependencies are obeyed. An operation cannot be scheduled unless all of its dependencies are satisfied. Output results of an instruction are available only after it commits (for the purposes of part 1 assume each operation has 1 cycle latency). Assume that no register renaming or pipeline support exists on the target processor. You should construct the optimal schedule under the above constraints. An optimal schedule is the one that exhibits the fastest completion time (fewest cycles) and also schedules all operations as early as possible. Note: You will need to construct the entire schedule, but we are only asking for the second VLIW instruction for grading purposes.

1. Assume each VLIW instruction consumes 2 cycles.

Calculate the average IPC, which is a ratio of the total number of operations executed to that of the total number of cycles taken.

Homework Answers

Know the answer?
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for?
Ask your own homework help question
Similar Questions
Consider a program having following sequence of instructions, where the syntax consists of an opcode followed...
Consider a program having following sequence of instructions, where the syntax consists of an opcode followed by the destination register followed by one or two source registers: Instruction no Instructions 1 ADD R3, R1, R2 2 LOAD R6, [R3] 3 AND R7, R5, 3 4 ADD R1, R6, R0 5 SUB R2, R1, R6 6 AND R3, R7, 15 7 SUB R5, R3, R4 8 ADD R0, R1, R10 9 LOAD R6, [R5] 10 SRL R7, R0, 8 Assume the...
Consider the simple five-stage pipeline (Fetch, Decode, Execute, Memory, Write-back) ADD R1, R2, R3 SUB R4,...
Consider the simple five-stage pipeline (Fetch, Decode, Execute, Memory, Write-back) ADD R1, R2, R3 SUB R4, R1, R5 For the above pairs of instructions, determine how many cycles it would take to complete execution. (1) Without forwarding. (2) With forwarding.
1. Read the following set of instructions, and answer questions. add r5, r2, r1 lw r3,...
1. Read the following set of instructions, and answer questions. add r5, r2, r1 lw r3, 4(r5) or r3 , r5, r3 sw r3 , 0(r5) add r2, r5, r1 b. Assume there are no forwarding, show the result in multiple-cycle diagram.
Consider the following MIPS code and a 5 stages processor as discussed in class, and assume...
Consider the following MIPS code and a 5 stages processor as discussed in class, and assume the loop executes 3 times: loop: lw r1,4(r7) lw r2,8(r7) lw r3,12(r7) add r1,r1, r3 sw r1,4(r7) bne r1,r2,loop addi r1,r1,42 c. Draw the execution diagram. (10 points) d. The CPI (cycles per instruction) is obtained by computing the ratio of total cycles to number of instructions. Compute the CPI for the for the pipeline on this code. (5 points)
(20pts each) Read the following set of instructions, and answer questions. add     r5, r2, r1 lw...
(20pts each) Read the following set of instructions, and answer questions. add     r5, r2, r1 lw      r3, 4(r5) or      r3, r5, r3 sw      r3, 0(r5) add     r2, r5, r1 Assume there are no forwarding, try reorganize the order of these instructions such that these 5 instructions can be finished sooner. Insert stall cycles only when reordering does not help. Note that reordering instructions should not cause any incorrect value being write into registers. Show the reordered 5...
ADVERTISEMENT
Need Online Homework Help?

Get Answers For Free
Most questions answered within 1 hours.

Ask a Question
ADVERTISEMENT