Question: Mnemonic MOV r 1 , # 0 x 0 0 0 4 A 0 0 0 MOV r 2 , # 0 x 0 0
Mnemonic
MOV r #xA
MOV r #xBC
MOV ro r LSL #
SUB
ADDr
RSB r r ro
MOV r #xE
MOV r #xE
ADD
Comment
; move xA into r
; move xBC into r
; left shift by bits
; subtract from
; add and sum in
; subtract r from r
; move xE into r
; move xE into r
; add and sum in
c i Draw a pipeline diagram for the program given above in part b
assuming that it is executed using the ARM microprocessor.
ii What is the performance, as measured in 'clocks per instruction'
CPIcounting clock cycles from the execute stage of the first
instruction to the execute stage of the last instruction
iii How can the instructions be reordered so that 'readafterwrite' hazard
do not occur without changing the function of the programme?
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
