Answered step by step
Verified Expert Solution
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, [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 ...Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started