Question

A. Ch. 3.4 - Tomasulos Algorithm We are given the following MIPS code with the following latencies: Latency L.D MULT.D L.D F

0 0
Add a comment Improve this question Transcribed image text
Answer #1

L.D F2, 0(R2) - 2 cycle latency

MULT.D F8, F6, F2   - 3 cycle latency

L.D F4,4(R4) - 2 cycle latency

ADD.D F12, F0, F4   - 1 cycle latency

ADD.D F10, F8, F2   - 1 cycle latency

At cycle 1

First load instruction is issued

Instruction status

Instruction Issue Execute Write back
L.D F2, 0(R2) 1

Reservation status

Name Busy Op Vj Vk Qj Qk A
load1 yes load 0+R2
load2
add1
add2
mult1
mult2

Register status

F0 F2 F4 F6 F8 F10 F12 ---- F30
load1

At cycle 2

Multiplication instruction is issued

Instruction status

Instruction Issue Execute Write back
L.D F2, 0(R2) 1
MULT.D F8, F6, F2 2

Reservation status

Name Busy Op Vj Vk Qj Qk A
load1 yes load 0+R2
load2
add1
add2
mult1 yes mult F6 load1
mult2

Register status

F0 F2 F4 F6 F8 F10 F12 ---- F30
load1 mult1

At cycle 3

Second load instruction is issued

First load instruction completes its execution

Instruction status

Instruction Issue Execute Write back
L.D F2, 0(R2) 1 3
MULT.D F8, F6, F2 2
L.D F4,4(R4) 3

Reservation status

Na​​​​​​​me Busy Op Vj Vk Qj Qk A
load1
load2 yes load 4+R4
add1
add2
mult1 yes mult F6 load1
mult2

Register status

F0 F2 F4 F6 F8 F10 F12 ---- F30
load1 load2 mult1

At cycle 4

First add instruction is issued

First load instruction writes result and broadcast it

Multiply instruction will start its execution

Instruction status

Instruction Issue Execute Write back
L.D F2, 0(R2) 1 3 4
MULT.D F8, F6, F2 2
L.D F4,4(R4) 3
ADD.D F12, F0, F4 4

Reservation status

Na​​​​​​​me Busy Op Vj Vk Qj Qk A
load1
load2 yes load 4+R4
add1 yes add F0 load2
add2
mult1 yes mult F6 F2
mult2

Register status

F0 F2 F4 F6 F8 F10 F12 ---- F30
load2 mult1 add1
Add a comment
Know the answer?
Add Answer to:
A. Ch. 3.4 - Tomasulo's Algorithm We are given the following MIPS code with the following...
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. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • Question 12) Consider the following MIPS code. DADDIU Loop: L.D L.D MUL.D S.D DADDIU DADDIU DSUBU...

    Question 12) Consider the following MIPS code. DADDIU Loop: L.D L.D MUL.D S.D DADDIU DADDIU DSUBU BNEZ R4, Rx, #512 F2, (Rx) F4, 0(Ry) F4, F4, F2 F4, (Ry) Rx, Rx, #8 Rx, Rx, #8 R20, R4, Rx R20, Loop last address :load vector1 load vector2 multiply vectors store result increment address increment address ;limit calculation ;Loop a) What will be total number of dynamic instructions in this program? b) The code now runs on a MIPS processor with one...

  • The latencies of individual stages in five-stage MIPS (Microprocessor without Interlocked Pipeline Stages) Architecture are given...

    The latencies of individual stages in five-stage MIPS (Microprocessor without Interlocked Pipeline Stages) Architecture are given below. Instruction Instruction Fetch Register Read Arithmetic Logic Unit (ALU) Memory Access Register Write Latency 200ps 100ps 200ps 300ps 100ps a. (10 pts) What is the clock cycle time in a pipelined and non-pipelined processor? Pipelined version : ______________ Non-pipelined version : ______________ b. The classic five-stage pipeline MIPS architecture is used to execute the code fragments. Assume the followings: Register write is done...

  • 4.10 In this exercise, we examine how resource hazards, control hazards, and Instruction Set Arch...

    4.10 In this exercise, we examine how resource hazards, control hazards, and Instruction Set Architecture (ISA) design can affect pipelined execution. Problems in this exercise refer to the following fragment of MIPS code: sw r16,12(r6) lw r16,8(r6) beq r5,r4,Label # Assume r5!=r4 add r5,r1,r4 slt r5,r15,r4 Assume that individual pipeline stages have the following latencies: (NOTE THESE ARE DIFFERENT VALUES THAN THE ONES IN OTHER SIMILAR QUESTIONS) IF ID EX MEM WB 250ps 100ps 175ps 150ps 200ps 4.10.4 [10] <§4.5>...

  • c. The classic five-stage pipeline MIPS architecture is used to execute the code fragments. Assume the...

    c. The classic five-stage pipeline MIPS architecture is used to execute the code fragments. Assume the followings: Register write is done in the first half of the clock cycle; register read is performed in the second half of the clock cycle, Branches are resolved in the second stage of the pipeline and the architecture does not utilize any branch prediction mechanism Forwarding is fully supported Clock Cycle à 1 2 3 4 5 6 7 8 9 10 11 12...

  • Consider a VEX-executing VLIW machine with the following characteristics: The machine supports 4 slots (4-wide machine)...

    Consider a VEX-executing VLIW machine with the following characteristics: The machine supports 4 slots (4-wide machine) with the following resources: 2 memory units each with a load latency of 3 cycles 2 integer-add/sub functional units with a latency of 2 cycle 1 integer-multiply functional unit with a latency of 4 cycles Each functional unit in the machine is pipelined and can be issued a new operation at each cycle. However, the results of an operation are only available after the...

  • Ch04.2. [3 points] Consider the following assembly language code: I0: ADD R4 R1RO I1: SUB R9R3 R4...

    Ch04.2. [3 points] Consider the following assembly language code: I0: ADD R4 R1RO I1: SUB R9R3 R4; I2: ADD R4 - R5+R6 I3: LDW R2MEMIR3100]; 14: LDW R2 = MEM [R2 + 0]; 15: STW MEM [R4 + 100] = R3 ; I6: AND R2R2 & R1; 17: BEQ R9R1, Target; I8: AND R9 R9&R1 Consider a pipeline with forwarding, hazard detection, and 1 delay slot for branches. The pipeline is the typical 5-stage IF, ID, EX, MEM, WB MIPS...

  • Required information [The following information applies to the questions displayed below Major League Apparel has two...

    Required information [The following information applies to the questions displayed below Major League Apparel has two classes of stock authorized: 4 % , $10 par preferred, and $1 par value common. The following transactions affect stockholders' equity during 2021, its first year of operations: 2 Issue 120, 000 shares of common stock for $50 per share. January February 14 Issue 40,000 shares of preferred stock for $13 per share. May May December 8 Purchase 12,000 shares of its own common...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT