Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Q2) Draw pipeline diagram for given sequence of code. Assume we are using Y86-64 pipelined processor that handles data and control pipeline hazards by using

image text in transcribed

Q2) Draw pipeline diagram for given sequence of code. Assume we are using Y86-64 pipelined processor that handles data and control pipeline hazards by using forwarding and stalling. Also identify when forwarding takes place on "Decode" stage. Show how you identified forwarding and what value/values are being forwarded. (50 points) Example irmovq $10, %rdx mrmovq 8(%rdx), %rbx Cycle/ Instruction 4 irmovq F $10, mrmovq 8 (%rdx), (f 1) f 1 (Cycle 3): Forwarding occurs at Decode stage of cycle 3 Source operand of instruction mrmovq 8 (%rdx), %rbx in decode stage (d srcB-%rdx) is stored by previous instruction irmovq $10, %rdx (e-destE-%rdx), therefore execute stage of previous instruction forwards result (e valE 10) main: irmovq $256, %rsp irmovq $2, %rdx pushq %rax irmovq $10, %rbx popq %rax addq %rbx, %rax andq %rax,%rax je end call proc halt proc: ret # do nothing end: halt Q2) Draw pipeline diagram for given sequence of code. Assume we are using Y86-64 pipelined processor that handles data and control pipeline hazards by using forwarding and stalling. Also identify when forwarding takes place on "Decode" stage. Show how you identified forwarding and what value/values are being forwarded. (50 points) Example irmovq $10, %rdx mrmovq 8(%rdx), %rbx Cycle/ Instruction 4 irmovq F $10, mrmovq 8 (%rdx), (f 1) f 1 (Cycle 3): Forwarding occurs at Decode stage of cycle 3 Source operand of instruction mrmovq 8 (%rdx), %rbx in decode stage (d srcB-%rdx) is stored by previous instruction irmovq $10, %rdx (e-destE-%rdx), therefore execute stage of previous instruction forwards result (e valE 10) main: irmovq $256, %rsp irmovq $2, %rdx pushq %rax irmovq $10, %rbx popq %rax addq %rbx, %rax andq %rax,%rax je end call proc halt proc: ret # do nothing end: halt

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

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

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

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

Get Started

Recommended Textbook for

1 2 3 Data Base Techniques

Authors: Dick Andersen

1st Edition

0880223464, 978-0880223461

More Books

Students also viewed these Databases questions