Question

Page 4 3. Pipeline is an instruction-level parallel processing techni microprocessor systems. The instruction throughput can
0 0
Add a comment Improve this question Transcribed image text
Answer #1

(A)
When branch instruction is executed on DLX machine , it sometimes don't change the PC to some other target address than it's current value plus 4 as the next PC address in branch is not fetched until the instruction is executed completely; causing problems in pipeline stage. One of the suggestion solutions is stalling until the branch instruction is executed

(B)

(i) Pipeline data hazards are those type of data hazards that are caused when the pipeline
changes the order of read/write accesses to operands so that the order differs from the order seen by sequentially executed instructions performed on the unpipelined machine

(ii)
Instruction :-
(0)AND R2,R2,R3
(1)LW R1,20(R2)
(2)ADDI R1,R1,#2
(3)SW 20(R3),R1
(4)ADDI R2,R2,#1
(5)OR R4,R3,R5

Hazards :-
RAW: Instructions 0 and 1. Register R2.
RAW: Instructions 1 and 2. Register R1.
RAW: Instructions 1 and 3. Register R1.
RAW: Instructions 2 and 3. Register R1.

CPU Cycles 16 15 14 13 12 10 +1- 0) ID MEM ID MEM ID MEM +1- 0) ID MEM ID

(C)

Data forwarding will eliminate some hazards yet the one prevails
RAW: Instructions 1 and 2. Register R1.

12 10 ID MEM MEM ID EX WB ID MEM WB ID EX MEM WB ID MEM ID MEM WB

Add a comment
Know the answer?
Add Answer to:
Page 4 3. Pipeline is an instruction-level parallel processing techni microprocessor systems. The instruction throughput can be dramaticallu increased by this key technique. However, there are so...
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
  • (60 points) The following instructions are executed on the 5-stage MIPS pipelined datapath. add r...

    Computer architecture help: (60 points) The following instructions are executed on the 5-stage MIPS pipelined datapath. add r5,r2, r1 lw r3, 4(r5) lw r2, 0(r2) or r3, r5, r3 sw r3, 0(r5) (a) (20 points) List the data hazards in the above code. For each data hazard identified, clearly mark the source and the destination. For example you can say, there is a data hazard from instruction X to instruction Y on register Z. (b) (20 points) Assume there is...

  • 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...

  • Draw the pipeline diagram with data dependency considered Appendix A Pipelining: Basic and Intermediate Concepts Data...

    Draw the pipeline diagram with data dependency considered Appendix A Pipelining: Basic and Intermediate Concepts Data hazards occur when the pipeline changes the order of read/write accesses to operands so that the order differs from the order seen by sequentially executing instructions on an unpipelined processor. Consider the pipelined execution of these instructions: DADD DSUB AND OR XOR R1,R2,R3 R4, R1,R5 R6, R1,R7 R8, R1,R9 R10,R1,R11 All the instructions after the DADD use the result of the DADD instruction. As...

  • Hi can you please help me with the question?..thank you.. QUESTION 2 The pipeline in the...

    Hi can you please help me with the question?..thank you.. QUESTION 2 The pipeline in the ARMI1 CPU is shown in Figure Q2(a). There are three possible (a) paths through the pipeline. The path of the execution depends on what type of instruction is executing (b) Instruction Fetoh Write Decode Execute Back Address DCI Dcz WBIS FE1 FE2 Decode Issue Shif ALU Saturate WBes MAC2 МАСI МАСУ Figure Q2(a) (i) Identify the number of stages for the ARMI1 CPU pipelines....

  • hi..can you please help me with this question?..thank you.. QUESTION 2 The pipeline in the ARMI1...

    hi..can you please help me with this question?..thank you.. QUESTION 2 The pipeline in the ARMI1 CPU is shown in Figure Q2(a). There are three possible (a) paths through the pipeline. The path of the execution depends on what type of instruction is executing (b) Instruction Fetoh Write Decode Execute Back Address DCI Dcz WBIS FE1 FE2 Decode Issue Shif ALU Saturate WBes MAC2 МАСI МАСУ Figure Q2(a) (i) Identify the number of stages for the ARMI1 CPU pipelines. [1...

  • Consider a standard 5-stage MIPS pipeline of the type discussed during the class sessions: IF- ID-EX-M-WB....

    Consider a standard 5-stage MIPS pipeline of the type discussed during the class sessions: IF- ID-EX-M-WB. Assume that forwarding is not implemented and only the hazard detection and stall logic is implemented so that all data dependencies are handled by having the pipeline stall until the register fetch will result in the correct data being fetched. Furthermore, assume that the memory is written/updated in the first half of the clock cycle (i.e. on the rising edge of the clock) and...

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