263 views
1 votes
1 votes
In questions where we are asked to find number of cycles taken for a set of instructions, if an IF overlaps with MEM (which generally is a structural hazard) we still let it overlap in the solution. So does IF and MEM execute in split phase? If so I have read somewhere (a comment by someone) that it takes one whole cycle for MEM to function and cannot be in a split phase?

Please help me out.

1 Answer

0 votes
0 votes
Actually, it all depends on the architecture. If there are SEPARATE data and instruction cache, then it is okay - there is no conflict. However, if there is a single cache, there will be structural hazard.

By default, we assume that there are separate data and instruction cache.

Refer to IISC lectures on computer architecture.

Related questions