Answered step by step
Verified Expert Solution
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
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: haltStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started