Answered step by step
Verified Expert Solution
Link Copied!

Question

00
1 Approved Answer

Computer Organization and Design In the pipelined datapath shown in Figure 1, branch target calculation is done in the ID stage and there is full

Computer Organization and Design

image text in transcribed

In the pipelined datapath shown in Figure 1, branch target calculation is done in the ID stage and there is full forwarding support. Answer the questions for the following MIPS code executed by this processor. Assume there is a branch delay slot and registers initially contain the following: ($t1) = 1000000016, ($t9) = 416, ($t0) = 1000000C16. Loop: lw $t2, 0($t1) add $t3, $t2, $s1 add $t1, $t1, $t9 bne $t1, $t0, Loop sw $t3, 0($t1) and $s2, $s4, $s5

image text in transcribed

(b) In the diagram, identify the cycles that have all five pipeline stages do useful work (i.e. produce results essential for the completion of an instruction)? (c) In Cycle 9, what are the values sent to the register file's port of "Read Register 1", "Read Register 2" and "Write Register" respectively? (d) With the ALU Control specified by Figures 2 and 3, fill in the table below to show the value of control signals in all the pipeline registers at the end of the third cycle. Leave blank any control signals that are not stored in pipeline registers for the given inter- stage buffers.

image text in transcribed

image text in transcribed

(e) State the cycles of the diagram in which either ForwardA or ForwardB (as shown in Figure 3) is not 00, and also state the value of ForwardA or ForwardB in those cycles.

Branch PCSrc Hazard Unit ID/EX EX/MEM lyID| Controls, blo MEM/WB Shift aft 2 Rdod Addr 1 Instruction Data egFile dr 2 Memory Read Address Memory AwRead Data Address Write Data rite Dat sig Extond ALU cntrl Forward' Unit Forward Figure I, Pipelined Processor with branch in decode stage Branch PCSrc Hazard Unit ID/EX EX/MEM lyID| Controls, blo MEM/WB Shift aft 2 Rdod Addr 1 Instruction Data egFile dr 2 Memory Read Address Memory AwRead Data Address Write Data rite Dat sig Extond ALU cntrl Forward' Unit Forward Figure I, Pipelined Processor with branch in decode stage

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access with AI-Powered Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions