retagged by
1,451 views
2 votes
2 votes
For all following questions we assume that:
- Pipeline contains 5 stages: IF, ID, EX, M and W;
- Each stage requires one clock cycle;
- All memory references hit in cache;
- Following program segment should be processed:

LD R1, 0(R2)
DADDI R1, R1, #1
SD 0(R2), R1
DADDI R2, R2, #4
DSUB R4, R3, R2
BNEZ R4, Loop
Calculate how many clock cycles will take execution of this segment on the simple pipeline without forwarding or bypassing ?
retagged by

1 Answer

1 votes
1 votes

please check the pipeline

Related questions

0 votes
0 votes
0 answers
2
2 votes
2 votes
1 answer
4
vaishali jhalani asked Nov 25, 2016
2,332 views
Consider the following sequence of instructions executed on the five-stage pipelined processor:Assuming there is no forwarding, calculate the number of clock cycles neede...