What is the total execution time of the instruction sequence

Assignment Help Computer Engineering
Reference no: EM132324599

Assignment

Question 1:

Problems in this exercise refer to the following sequence of instructions:

LW $5, -16($5)

SW $5, -16($5) ADD $5, $5, $5

A) Indicate dependences and their type.

B) Assume there is not forwarding in this pipeline processor, indicate hazards and add NOP instructions to eliminate them.

C) Assume there is full forwarding, indicate hazards and add NOP instructions to eliminate unresolved cases.

The remaining problem in this exercise assumes the following clock cycle times:

Without forwarding With full forwarding With ALU-ALU forwarding only 200 ps 250 ps 220 ps

D) What is the total execution time of this instruction sequence without forwarding and with full forwarding? What is the speed-up achieved by adding full forwarding to a pipeline that had no forwarding?

E) What is the total execution time of this instruction sequence with only ALU-ALU forwarding? What is the speed-up over a no-forwarding pipeline?

Question 2:

For this problem, assume that all branches are resolved in ID stage and are perfectly predicted (this eliminates all control hazards). For the following fragment of MIPS code:

LW $5, -16($5)

SW $4, -16($4)

LW $3, -20($4)

BEQ $2, $0, Label ;Assume $2 ≠ $0 ADD $1, $5, $4

Label: SUB $2, $1, $3

If we only have one memory (for both instruction and data), there is a structural hazard every time we need to fetch an instruction in the same cycle in which another instruction accesses data. To guarantee forward progress, this hazard must always be resolved in favor of the instruction that accesses data.

A) What is the total execution time of this instruction sequence in the 5-stage pipeline that only has one memory?

B) How can the structural hazard be eliminated by adding NOP to the code? (Please show a modified version of the program with the added NOP instructions)

Question 3:

For following code, assume that the loop index ($10) is a multiple of 8:

Loop: LW $2, 0($10)

SUB $4, $2, $3

SW $4, 0($10)

LW $5, 4($10)

SUB $6, $5, $3

SW $6, 4($10)

ADDI $10, $10, 8

BNE $10, $30, Loop

Schedule this code (reorder the instructions and make any necessary changes) for fast execution on the 5- stage MIPS pipeline. Assume data forwarding and not-taken prediction of conditional branching.

Reference no: EM132324599

Questions Cloud

Achieve a set of goals for a given process capability : In the context of the CMMI, a "collection of related activities performed together to achieve a set of goals for a given process capability"
Describe four specific psychosocial factors : Describe four specific psychosocial factors that should be taken into account in order to understand the psychosocial context when working with the group you.
System for rapidly developing software : Extreme Programming is a system for rapidly developing software. One of the tenets of XP is that all code is written
Identify presenting problem for the case study you selected : Your presentation should address the following: Identify the presenting problem for the case study you selected. (Remember the presenting problem has to be.
What is the total execution time of the instruction sequence : CMSC411 Computer Architecture-University of Maryland Baltimore County-US-What is the total execution time of this instruction sequence without forwarding.
Identify exploits of common vulnerabilities : M7A1: Vulnerability Exploitation Assignment - Use industry tools to explore password guessing and/or cracking. Identify exploits of common vulnerabilities
Reimbursed for hcpcs code g0102 : Based on the NCCI policies, determine if the physician will be reimbursed for HCPCS code G0102
What are the three judicial powers of the president : According to the text, what are the three judicial powers of the president. Provide one example (form the text) of how a president have used one of these judici
Ethical and moral dilemmas in using peer-to-peer networks : What are the ethical and moral dilemmas in using peer-to-peer networks? Are they fundamentally right or wrong?

Reviews

Write a Review

Computer Engineering Questions & Answers

  Mathematics in computing

Binary search tree, and postorder and preorder traversal Determine the shortest path in Graph

  Ict governance

ICT is defined as the term of Information and communication technologies, it is diverse set of technical tools and resources used by the government agencies to communicate and produce, circulate, store, and manage all information.

  Implementation of memory management

Assignment covers the following eight topics and explore the implementation of memory management, processes and threads.

  Realize business and organizational data storage

Realize business and organizational data storage and fast access times are much more important than they have ever been. Compare and contrast magnetic tapes, magnetic disks, optical discs

  What is the protocol overhead

What are the advantages of using a compiled language over an interpreted one? Under what circumstances would you select to use an interpreted language?

  Implementation of memory management

Paper describes about memory management. How memory is used in executing programs and its critical support for applications.

  Define open and closed loop control systems

Define open and closed loop cotrol systems.Explain difference between time varying and time invariant control system wth suitable example.

  Prepare a proposal to deploy windows server

Prepare a proposal to deploy Windows Server onto an existing network based on the provided scenario.

  Security policy document project

Analyze security requirements and develop a security policy

  Write a procedure that produces independent stack objects

Write a procedure (make-stack) that produces independent stack objects, using a message-passing style, e.g.

  Define a suitable functional unit

Define a suitable functional unit for a comparative study between two different types of paint.

  Calculate yield to maturity and bond prices

Calculate yield to maturity (YTM) and bond prices

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd