Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

1 2 3 4 5 6 7 8 An ARM assembly code consists of following instructions: MOV R5, #10 MOV R4,0x500 L1: LDR R1,

1 2 3 4 5 6 7 8 An ARM assembly code consists of following instructions: MOV R5, #10 MOV R4,0x500 L1: LDR R1,

1 2 3 4 5 6 7 8 An ARM assembly code consists of following instructions: MOV R5, #10 MOV R4,0x500 L1: LDR R1, [R4] ADD R5, R5, #4 CMP R5, #18 BLT L1 ADD R2, R3, #10 CMP R2, #30 Assume that LDR instruction requires two clock cycles to execute. The rest of the instructions takes one clock cycle each to execute. Assume that fetching and decoding can be performed in one clock cycle each. a) Please draw the diagram to illustrate the execution and the corresponding data/control stalls of the program on an ARMv7 3-stage pipeline. You can use F for Instruction Eetch, D for Instruction Decode and X for Execution units in your diagram. b) How many clock cycles would it take to complete the program?

Step by Step Solution

3.38 Rating (154 Votes )

There are 3 Steps involved in it

Step: 1

a Heres the diagram illustrating the execution and corresponding ... blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Computer organization and architecture designing for performance

Authors: william stallings

8th edition

136073735, 978-0136073734

More Books

Students also viewed these Programming questions

Question

37: = 1tat 31sin

Answered: 1 week ago

Question

Establish identity. cos( + k) = (-1)k cos , k any integer

Answered: 1 week ago