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

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

Recommended Textbook for

JDBC Database Programming With J2ee

Authors: Art Taylor

1st Edition

0130453234, 978-0130453235

More Books

Students also viewed these Databases questions

Question

4. How can speakers manage speaking anxiety?

Answered: 1 week ago