Answer the following questions. Consider the following program and assume that the Initial content of all the registers are zero START: MOV R1, #2 MOV R2, #1 MOV R3, #2 ADD R1,R2 SUB R1,R3 CMP R1, R2 JNZ Next (Jump if Not Zero) MOV R3, #10 Next: print "EQUAL" HLT i. Write the timing of instruction pipeline with 5 stage (Neglect all types of hazard) H. What is the content of various registers after the execution of the program? iii. Identify the type of Hazards with above program. and also step's to avoid the hazard.

Systems Architecture
7th Edition
ISBN:9781305080195
Author:Stephen D. Burd
Publisher:Stephen D. Burd
Chapter4: Processor Technology And Architecture
Section: Chapter Questions
Problem 15VE: A(n) ________________ instruction always alters the instruction execution sequence. A(n)...
icon
Related questions
Question
Answer the following questions.
Consider the following program and assume that the Initial content of all the registers are zero
START: MOV R1, #2
MOV R2, #1
MOV R3, #2
ADD R1,R2
SUB R1,R3
CMP R1, R2
JNZ Next (Jump if Not Zero)
MOV R3, #10
Next: print "EQUAL"
HLT
i. Write the timing of instruction pipeline with 5 stage (Neglect all types of hazard)
ii. What is the content of various registers after the execution of the program?
iii. Identify the type of Hazards with above program. and also step's to avoid the hazard.
iv. What is the minimum time taken to execute the program in pipelined and Non Pipelined Manner.
v. What is speedup, Efficiency and Throughput for the above program and also mention the ways to improve all three parameters.
Transcribed Image Text:Answer the following questions. Consider the following program and assume that the Initial content of all the registers are zero START: MOV R1, #2 MOV R2, #1 MOV R3, #2 ADD R1,R2 SUB R1,R3 CMP R1, R2 JNZ Next (Jump if Not Zero) MOV R3, #10 Next: print "EQUAL" HLT i. Write the timing of instruction pipeline with 5 stage (Neglect all types of hazard) ii. What is the content of various registers after the execution of the program? iii. Identify the type of Hazards with above program. and also step's to avoid the hazard. iv. What is the minimum time taken to execute the program in pipelined and Non Pipelined Manner. v. What is speedup, Efficiency and Throughput for the above program and also mention the ways to improve all three parameters.
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 2 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
Principles of Information Systems (MindTap Course…
Principles of Information Systems (MindTap Course…
Computer Science
ISBN:
9781285867168
Author:
Ralph Stair, George Reynolds
Publisher:
Cengage Learning