Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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?
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
Step: 1
Get Instant Access with AI-Powered 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