engineering recuitment ISRO Scientist Computer Science Mock Test Computer Organization and Architecture Instruction Pipelining Instruction Pipeline
In a 4- stage pipeline processor. The number of cycles needed by the five instructions N1, N2, N3, N4 and N5
|
|
IF |
ID |
EX |
WB |
|
N1 |
1 |
1 |
2 |
1 |
|
N2 |
2 |
1 |
3 |
1 |
|
N3 |
1 |
2 |
1 |
1 |
|
N4 |
3 |
2 |
1 |
2 |
|
N5 |
1 |
2 |
2 |
1 |
What is the number of cycles needed to execute the following loop?
for(int j = 0; j < 1; j++)
{
N1;
N2;
N3;
N4;
N5;
}
1
12
2
13
3
14
4
15