Consider the following RISC-V code. addi x9, x8, 0 addi x10, x0, 0 addi x11, x0, 0 L: lw x12, 0(x9) add x10,x10,x12 addi x9,x9,4 addi x11,x11,1 addi x13,x0,20 blt x11,x13,L s w x17, 16(x9) Answer the following questions: a) How many instructions will be executed in hardware? b) How many sequential instructions are there? c) How many control (branch) instructions are there? d) What is the total number of cycles needed to execute these instructions and the CPI, if no branch prediction is implemented? e) What is the total number of cycles needed to execute these instructions and the CPI, if I implement a “Always Taken” predictor. f) Repeat Q5 with “Always Not Taken” Predi

Systems Architecture
7th Edition
ISBN:9781305080195
Author:Stephen D. Burd
Publisher:Stephen D. Burd
Chapter3: Data Representation
Section: Chapter Questions
Problem 27VE: Data represented in ________ is transmitted accurately between computer equipment from different...
icon
Related questions
Question

Computer Science

Consider the following RISC-V code.

addi x9, x8, 0

addi x10, x0, 0

addi x11, x0, 0

L: lw x12, 0(x9)

add x10,x10,x12

addi x9,x9,4

addi x11,x11,1

addi x13,x0,20

blt x11,x13,L s

w x17, 16(x9)

Answer the following questions: a) How many instructions will be executed in hardware? b) How many sequential instructions are there? c) How many control (branch) instructions are there? d) What is the total number of cycles needed to execute these instructions and the CPI, if no branch prediction is implemented? e) What is the total number of cycles needed to execute these instructions and the CPI, if I implement a “Always Taken” predictor. f) Repeat Q5 with “Always Not Taken” Predictor.

Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 8 steps

Blurred answer
Knowledge Booster
Fundamentals of Computer System
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Systems Architecture
Systems Architecture
Computer Science
ISBN:
9781305080195
Author:
Stephen D. Burd
Publisher:
Cengage Learning
CompTIA Linux+ Guide to Linux Certification (Mind…
CompTIA Linux+ Guide to Linux Certification (Mind…
Computer Science
ISBN:
9781305107168
Author:
Jason Eckert
Publisher:
Cengage Learning