MIPS assembly code to be executed using the pipelined datapath

The document needs to be 100% typed (no hand written answers) If it is not typed, it will be zero on the assignment. (this is to check any academic integrity violation)

It has 4 questions. I will attach the images down below, please check it out.

Assignment Description:

  1. (6 pts)
    a).For the following MIPS assembly code to be executed using the pipelined datapath, identify all of the data dependencies (which register in which instruction needs to read the result register value from which another instruction that is writing it?) and enumerate them (give data dependencies numbers as 1,2, …).
    b).Which dependencies are data hazards that will be resolved via forwarding and without a stall (you can specify the number(s) from the part a)?
    c).Which dependencies are data hazards that will cause a stall (you can specify the number(s) from the part a)?

add $t7, $t2, $t5
lw $t6, 16($t7)
sub $t4, $t6, $t5
add $t3, $t1, $t7
lw $t9, 8($t3)
add $t3, $t9, $t8
sub $t5, $t8, $t9

  1. (6 pts) Consider executing the following code on the pipelined datapath that we discussed in class.
    a). During the 5th cycle, which registers are being read and which register(s) will be written (using the register file)?

add $t1, $t3, $t2
sub $t6, $t7, $t3
sub $t9, $t8, $t7
add $t8, $t5, $t9
add $t5, $t6, $t5

b). Explain what the forwarding unit is doing during the 5th cycle of execution. Which registers are being compared? List all pairs of registers that are compared during the 5th cycle for the forwarding unit. (First, you need to determine which instruction’s values are in the EX/MEM, which instruction’s values are in the MEM/WB register, and which instruction’s values are read from the ID/EX register during the 5th cycle. Then check the conditions for forwarding.)

c). Explain what the hazard detection unit is doing during the 5th cycle of execution. Which registers are being compared? List all pairs of registers that are compared during the 5th cycle for the hazard detection unit. (You need to determine which instruction’s values are in the IF/ID and which instruction’s values are in the ID/EX register during the 5th cycle. Then check the conditions for the hazard detection.)

  1. (4 pts) Assume that you have a direct-mapped cache with 16 one-word blocks that is initially empty, and that you will be given a series of word address references in the following order. Label each reference as a hit or a miss and show the content of the cache in each step.

a). word address 70

Hit or Miss?

What is the cache content at this point?

Block number 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
Address

b). word address 42 (continuing from the previous step)

Hit or Miss?

What is the cache content at this point?

Block number 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
Address

c). word address 86 (continuing from the previous step)

Hit or Miss?

What is the cache content at this point?

Block number 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
Address

d). word address 70 (continuing from the previous step)

Hit or Miss?

What is the cache content at this point?

Block number 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
Address

e). word address 42 (continuing from the previous step)

Hit or Miss?

What is the cache content at this point?

Block number 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
Address

f). word address 28 (continuing from the previous step)

Hit or Miss?

What is the cache content at this point?

Block number 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
Address

g). word address 42 (continuing from the previous step)

Hit or Miss?

What is the cache content at this point?

Block number 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
Address

h). word address 87 (continuing from the previous step)

Hit or Miss?

What is the cache content at this point?

Block number 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
Address
  1. (4pts) Assume that you have a direct-mapped cache with four-word blocks and a total size of 16 words that is initially empty, and that you will be given a series of word address references in the following order. Label each reference as a hit or a miss and show the content of the cache in each step.

a). word address 61

Hit or Miss?

What is the cache content at this point?

Block number 0 (00) 1 (01) 2 (10) 3 (11)
Address | | | | | | | | | | | |

b). word address 39 (continuing from the previous step)

Hit or Miss?

What is the cache content at this point?

Block number 0 (00) 1 (01) 2 (10) 3 (11)
Address | | | | | | | | | | | |

c). word address 63 (continuing from the previous step)

Hit or Miss?

What is the cache content at this point?

Block number 0 (00) 1 (01) 2 (10) 3 (11)
Address | | | | | | | | | | | |

d). word address 14 (continuing from the previous step)

Hit or Miss?

What is the cache content at this point?

Block number 0 (00) 1 (01) 2 (10) 3 (11)
Address | | | | | | | | | | | |

e). word address 38 (continuing from the previous step)

Hit or Miss?

What is the cache content at this point?

Block number 0 (00) 1 (01) 2 (10) 3 (11)
Address | | | | | | | | | | | |

f). word address 60 (continuing from the previous step)

Hit or Miss?

What is the cache content at this point?

Block number 0 (00) 1 (01) 2 (10) 3 (11)
Address | | | | | | | | | | | |

g). word address 48 (continuing from the previous step)

Hit or Miss?

What is the cache content at this point?

Block number 0 (00) 1 (01) 2 (10) 3 (11)
Address | | | | | | | | | | | |

h). word address 15 (continuing from the previous step)

Hit or Miss?

What is the cache content at this point?

Block number 0 (00) 1 (01) 2 (10) 3 (11)
Address | | | | | | | | | | | |

Requirements: Medium | C++

Order any type of Service We Provide

We are the best assignment service that can satisfy student’s demands in different scientific fields. We perform tasks of any kind. Our specialists provide diverse custom assignment writing services to students from all over the world every day. You can contact us for assistance with:

  • Essays of any type (application, scholarship, argumentative, personal, informative, persuasive, compare and contrast, narrative, analytical, cause and effect, critical, process, descriptive, expository essays);
  • Homework,
  • Assignments,
  • Reviews of all types (for a book, an article, or a film),
  • Reports,
  • Annotated bibliography,
  • Projects,
  • Thesis,
  • Term papers,
  • Presentations,
  • Lab works,
  • Research papers,
  • Speeches,
  • Critical thinking,
  • Capstone projects;
  • plan;
  • Coursework’s;
  • Dissertations.

The list is far from complete!

Representatives of our student assignment service are connoisseurs of the peculiarities of presentation in regards to academics. Your college assignment will never turn out an untoward surprise! Whether you need research for high school, an undergraduate program, or a Master’s or Doctoral degree, you will get exactly what you are looking for to sound smart and well-informed.

If you are pressed for time, request our experts!

We are your academic saver. It is a perfect solution for people who need academic help but has no professionals nearby to provide it. Just redirect your home tasks to us and forget about any educational issues. With us, you will get 100% plagiarism-free content delivered on time by an experienced specialist in a particular field.

Main Advantages of Collaboration with Us

When you order professional assignments here, you will get:

Original custom papers. We value your academic reputation. Just as well, we value the years of thorough work on our reputation for reliability and never compromise the originality of delivered papers. We will never endanger both. Every custom assignment is written from zero – the only possible first stage of work on the order is research. We apply the latest plagiary checking tools on the final stage, so plagiarism has no chance to emerge in your college assignment writing.

Control over the order completion. To make the process of collaboration comfortable and efficient, we offer our clients to choose the writer themselves taking into account all the requirements and the budget. For you to save nerves, having entrusted your fateful task to some qualified “stranger”, we enable communication with the assigned writer in the process of order completion.

Affordable assistance. . help with college assignments. We are eager to help you start investing in your career growth today. That is why our service is so affordable. We don’t charge to pay for the latest marketing tricks or advertisements – we choose the best experts in the labor market who write great custom papers in any area, level of complexity, and time frame. Our client’s grateful feedback is a top advertising trick.

On-time delivery. The quality of a paper is only valued when it is delivered within the determined time frame – you will get your custom assignment writing service in time and have a couple of days to revise it and ask for changes in case they are needed. And you will still have time to learn the material.

Protection. We value your trust and take all measures needed to keep your private and banking details safe. We offer only well-tested payment methods. Due to the system of encryption and protected servers, no third party can have access to your data.

Custom support 24/7. We do our best to make the process of collaboration comfortable for the customer. Our “write my assignment” help is always here for you to provide a solution to your problems, give you a prompt answer to any question, and offer clarification as to any issue related to the services. Feel free to contact us anytime!

If you feel that your dissatisfaction with student life is growing every day and you just feel exhausted, don’t hesitate to change the situation for the better today. Order your first assignment from reliable custom assignment services today to evaluate the advantages.

Having seen the difference once, you won’t want to go back to your previous lifestyle. You deserve to find fulfilment in other spheres of your life, have hobbies, spend time with close people but continue making progress. It is possible when you have a professional helper. Don’t put off your life for someday after graduation!

Order your paper now! 

 

 

 

Place your order
(550 words)

Approximate price: $22

Calculate the price of your order

550 words
We'll send you the first draft for approval by September 11, 2018 at 10:52 AM
Total price:
$26
The price is based on these factors:
Academic level
Number of pages
Urgency
Basic features
  • Free title page and bibliography
  • Unlimited revisions
  • Plagiarism-free guarantee
  • Money-back guarantee
  • 24/7 support
On-demand options
  • Writer’s samples
  • Part-by-part delivery
  • Overnight delivery
  • Copies of used sources
  • Expert Proofreading
Paper format
  • 275 words per page
  • 12 pt Arial/Times New Roman
  • Double line spacing
  • Any citation style (APA, MLA, Chicago/Turabian, Harvard)

Our guarantees

Delivering a high-quality product at a reasonable price is not enough anymore.
That’s why we have developed 5 beneficial guarantees that will make your experience with our service enjoyable, easy, and safe.

Money-back guarantee

You have to be 100% sure of the quality of your product to give a money-back guarantee. This describes us perfectly. Make sure that this guarantee is totally transparent.

Read more

Zero-plagiarism guarantee

Each paper is composed from scratch, according to your instructions. It is then checked by our plagiarism-detection software. There is no gap where plagiarism could squeeze in.

Read more

Free-revision policy

Thanks to our free revisions, there is no way for you to be unsatisfied. We will work on your paper until you are completely happy with the result.

Read more

Privacy policy

Your email is safe, as we store it according to international data protection rules. Your bank details are secure, as we use only reliable payment systems.

Read more

Fair-cooperation guarantee

By sending us your money, you buy the service we provide. Check out our terms and conditions if you prefer business talks to be laid out in official language.

Read more
Open chat
1
You can contact our live agent via WhatsApp! Via + 1 929 473-0077

Feel free to ask questions, clarifications, or discounts available when placing an order.

Order your essay today and save 20% with the discount code GURUH