Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

CPls for each instruction: mul -> 4 clock cycles in EXE stage. add/sub -> 1 clock cycle in EXE stage sw/lw -> 2 clock cycles

image text in transcribed

CPls for each instruction: mul -> 4 clock cycles in EXE stage. add/sub -> 1 clock cycle in EXE stage sw/lw -> 2 clock cycles in MEM stage Part 1 Use "non-forwarding" 5-stage pipeline to calculate total CPls for the following MIPS code lw $s1, 0($t0) add $s2, $s1, $t0 mul $t1, $s3, $s4 sub $t2, $t1, $s1 Part 2: Use forwarding" 5-stage pipeline to calculate total CPIs for the following MIPS code. lw $s1, 0($t0) add $s2, $s1, $t0 lw $S3, 4($t0) sub $t2, $s2, $s3 sw $t2, 8($t0) add $s4, $t2, $zero mul $t3, $s4, $s1 sw $t3, 12($t0)

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

Data And Databases

Authors: Jeff Mapua

1st Edition

1978502257, 978-1978502253

More Books

Students also viewed these Databases questions

Question

How do Data Types perform data validation?

Answered: 1 week ago

Question

How does Referential Integrity work?

Answered: 1 week ago