This computer Architecture assignment. Please do it right . I want to get all my point please.
Please read the book (Chapter 4.5 and 5). Please show and explain your work. Please do not try to copy answers from Internet or your classmate. (I will be very harsh for cheating) Due: 4/15 (Wed) 11:59pm 1. (15 points) List types of pipeline hazards and explain them. What problems, if any, do true and anti-dependences cause in the MIPS 5-stage pipeline that we have analyzed in class? Explain. 2. (10 points) Explain how Branch Target Buffer (BTB) and Return Stack Buffer (RSB) work. 3. (40 points) Consider following instruction sequence 1MULR3, R7, R1 2LWR8, 4(R3) 3ADDR3, R3, R10 4LWR9, 0(R3) 5ADDR8, R9, R10 6SWR6, 0(R3) 3.1 (10 points) List WAW, RAW, and WAR dependencies. Also find, if any, dead code. 3.2. (10 points) How can a complier avoid WAW and WAR hazards? What is the condition that a WAR hazard occurs (and why)? 3.3. (10 points) Draw pipeline diagrams with 5 stages (Fetch - Decode - Read - Execute - Write). Show and specify hazards (if any). Machine assumption: - All instructions require 1 cycle - No forwarding - 1 memory unit and 1 integer ALU unit 3.4. (10 points) Draw pipeline diagrams with 5 stages (Fetch - Decode - Read - Execute - Write). Show and specify hazards (if any). Machine assumption: - 4 cycles for MUL, 2 cycles for LW and SW, and 1 cycle for other instruction - Forwarding - 1 memory unit and 1 integer ALU unit for all arithmetic 4. (10 points) Consider following instruction sequence 1BEQR1, R2, GOTO 2MULR3, R1, R2 3SWA 0 (R3) 4 GOTO:SUBR5, R1, R4 What is a possible issue if a machine runs this program with pipeline (in parallel) and how can you resolve the issue in general? Note, please take care instructions. 5. (15 points) Consider the following branches. - T (taken) and NT (not taken). T NT T NT T NT T NT T NT Get prediction accuracy with 1-bit and 2-bit predictors for each init value. 1-bit (init = 0) 1-bit (init = 1) 2-bit (init = 00) 2-bit (init = 01) 2-bit (init = 10) 2-bit (init = 11) 6. (10 points) Based on your answers (prediction accuracies) from the problem 5, explain how the 2-bit predictor can improve prediction accuracy.