Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

This is MIPS assembly code. I need help with the 3 following questions please. There are Data and Control hazards, but I am having trouble

This is MIPS assembly code. I need help with the 3 following questions please. There are Data and Control hazards, but I am having trouble identifying them.

image text in transcribed

apple: slt $to, $s1, $s2 beq ?t0, $0, end add $tO, ?s3, $S4 lw $to, 0 (StO) beq ?t0, ?o, orange sw, $s0, 0 (?t0) addi $s0, $s0, 1 orange: addi $s1, ?s1, 1 addi $s4, $s4, 4 j apple end: add $vO, ?s0, $0 1. 2. 3. Please identify all the data hazards and control hazards Please design the pipeline using forwarding only Please design the pipeline using bypassing and forwarding (if needed) apple: slt $to, $s1, $s2 beq ?t0, $0, end add $tO, ?s3, $S4 lw $to, 0 (StO) beq ?t0, ?o, orange sw, $s0, 0 (?t0) addi $s0, $s0, 1 orange: addi $s1, ?s1, 1 addi $s4, $s4, 4 j apple end: add $vO, ?s0, $0 1. 2. 3. Please identify all the data hazards and control hazards Please design the pipeline using forwarding only Please design the pipeline using bypassing and forwarding (if needed)

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

Graph Database Modeling With Neo4j

Authors: Ajit Singh

2nd Edition

B0BDWT2XLR, 979-8351798783

More Books

Students also viewed these Databases questions