Instruction-Level Parallelism (ILP), Since The
Instruction-Level Parallelism (ILP), Since The
The value of the CPI (cycles per instruction) for a pipelined processor
is as follows:
Name Dependences:
A name dependence occurs when two instructions use the same
register or memory location, called a name.
Data Hazards:
Three types of data hazards exist
1. RAW
2. WAR
3. WAW
Control Dependence
A control dependence determines the ordering of an instruction, i,
with respect to a branch instruction so that instruction i is executed in
correct program order and only when it should be.
if p1 {
S1;
};
if p2 {
S2;
}
Data Dependences and Hazards
Control Dependence
Consider this code sequence:
DADDU R2,R3,R4
BEQZ R2,L1
LW R1,0(R2)
L1:
Creates a new exception :memory protection exception
Control Dependence
Consider this code sequence:
DADDU R1,R2,R3
BEQZ R4,L
DSUBU R1,R5,R6
L: ...
OR R7,R1,R8