Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

Drawing Pipeline Diagram

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 mrmovq $10, %rdx 8(%rdx), %rbx Cycle1 Instruction 2 4 irmovqF $10, %rdx mrmovq 8 (%rdx) (f 1) f 1 (Cycle 3): Forwarding occurs at Decode stage of cycle 3 Source operand of instruction mrmovq 8(Xrdx), %rbx in decode stage (dsrcB-%rdx) is stored by previous instruction irmovq $10, %rdx (e-destE %rdx), therefore execute stage of previous instruction forwards result (e_valE10) main: irmovq $256, %rsp irmovq $2, %rdx pushq %rdx irmovq $10, %rbx popq %rax addq %rbx, %rax andq %rax,Arax 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 mrmovq $10, %rdx 8(%rdx), %rbx Cycle1 Instruction 2 4 irmovqF $10, %rdx mrmovq 8 (%rdx) (f 1) f 1 (Cycle 3): Forwarding occurs at Decode stage of cycle 3 Source operand of instruction mrmovq 8(Xrdx), %rbx in decode stage (dsrcB-%rdx) is stored by previous instruction irmovq $10, %rdx (e-destE %rdx), therefore execute stage of previous instruction forwards result (e_valE10) main: irmovq $256, %rsp irmovq $2, %rdx pushq %rdx irmovq $10, %rbx popq %rax addq %rbx, %rax andq %rax,Arax 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

DB2 11 The Database For Big Data And Analytics

Authors: Cristian Molaro, Surekha Parekh, Terry Purcell, Julian Stuhler

1st Edition

ISBN: 1583473858, 978-1583473856

More Books

Students also viewed these Databases questions

Question

List the characteristics of an effective HR strategy.

Answered: 1 week ago

Question

Question Who can establish a Keogh retirement plan?

Answered: 1 week ago