om/bbcswebdav/pid-2238076-dt-content-rid-10793426_1/courses/11261.201830/cOSC243
ID: 3705820 • Letter: O
Question
om/bbcswebdav/pid-2238076-dt-content-rid-10793426_1/courses/11261.201830/cOSC243 Assignment Homework Assignment 5 (100 points) Due: April 13, 2018 by 11.59 pm Answer the following questions based on Chapter 4 of your text book. Type your answers/response for each in a report, and submit the report through Black Board. Possible score point for each exercise is also mentioned bellow. Show your work and cite accordingly if/where applicable. Question 1. (5x3-15 points) Explain, in brief, the steps/actions in the datapath for the following a. R-type instruction b. Load/Store instruction c. Branch instruction Question 2. (15+15-30 points) Assume time for datapath stages are o 200 ps for register read or write o 300ps for other stages Compare pipelined datapath with single-cycle datapath in terms of time performance for a. Load instruction b. Branch instruction Question 3. (20+15-35 points) A program contains 10 instructions each going through 5 stages of MIPS pipeline. If the stages are assumed to be balanced (e.g, each stage takes similar time) a. Show the pipeline stages for the program b. Compare the speed-up using pipelining over single-cycle Question 4. (20 points) What is hazards in pipelining? Explain different types of pipeline hazards. Book: Computer Organization and Design: The Hardware/Software Interface, Patterson & Hennessy, Morgan Kaufmann, 5th Edition.Explanation / Answer
Solution:
Note: The first question is done as per Chegg guidelines, please repost others. ?
1
a)
R type instructions:
The instruction which does not require the target address, branch displacement, or immediate value those instructions uses R type instructions.
This format has fields for specifying of up to three registers and a shift amount. and the unused fields in this are coded with 0.
b)
Load/Store instructions are used to load the memory address from the memory, and store the manipulated values.
Basically, these instructions interact with the memory while the program is running.
c)
Branch instructions are used to jump from places to use the conditional statement and jump on the certain place in the instruction set architecture.
I hope this helps if you find any problem. Please comment below. Don't forget to give a thumbs up if you liked it. :)
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.