-2
add $s1, $s2, $s3
add $s5, $s2, $s3
sub $s3, $s3, $s2
lw $s2, 100 ($s3)

How many cycles will it take to execute above mips code in single cycle datapath..?

1 Answers1

2

In single cycle data path, each instruction will run in one cycle; so your code need four cycles to execute.

Majid
  • 13,853
  • 15
  • 77
  • 113
Ahmad
  • 906
  • 11
  • 27