CameraIcon
CameraIcon
SearchIcon
MyQuestionIcon
MyQuestionIcon
2
You visited us 2 times! Enjoying our articles? Unlock Full Access!
Question

Let the clock cycles required for various operations be as follows:

Register to/from memory transfer:
3 clock cycles

ADD with both operands in register:
1 clock cycle

Instruction fetch and decode:
2 clock cycles per word

The total number of clock cycles required to execute the program is

A
20
No worries! We‘ve got your back. Try BYJU‘S free classes today!
B
23
No worries! We‘ve got your back. Try BYJU‘S free classes today!
C
29
No worries! We‘ve got your back. Try BYJU‘S free classes today!
D
24
Right on! Give the BNAT exam to get a 100% scholarship for BYJUS courses
Open in App
Solution

The correct option is D 24
Operation Instruction Size (IF + ID) (OF + PD + WB)
R0, Memory [5000] 2 2 × 2 C 3C
R2 Memory [(R1)] 1 1 × 2 C 3 C
R2 (R2 + R3)] 1 1 × 2 C 1 C
Memory [6000] R2 2 2 × 2 C 3 C
Machine Halt 1 1 × 2 C 0 C
14 C 10 C

So total (14 C + 10 C) = 24 cycles are required.

flag
Suggest Corrections
thumbs-up
0
similar_icon
Similar questions
View More
Join BYJU'S Learning Program
similar_icon
Related Videos
thumbnail
lock
Indian Hero - Birsa Munda
HISTORY
Watch in App
Join BYJU'S Learning Program
CrossIcon