Using Word Access for Short Data and Doubleword Access for Floating-Point Data
6-22
6.4.3
Drawing a Dependency Graph
The dependency graph in Figure 6–5 for the fixed-point dot product shows that
the LDW instructions are parents of the MPY instructions and the MPY instruc-
tions are parents of the ADD instructions. To split the graph between the A and
B register files, place an equal number of LDWs, MPYs, and ADDs on each
side. To keep both sides even, place the remaining two instructions, B and
SUB, on opposite sides.
Figure 6–5. Dependency Graph of Fixed-Point Dot Product With LDW
B side
A side
bi & bi+1
ai & ai+1
pi+1
pi
5
5
5
5
2
2
sum0
sum1
cntr
LOOP
1
1
1
1
LDW
MPY
MPYH
ADD
SUB
B
ADD
LDW
Similarly, the dependency graph in Figure 6–6 for the floating-point dot prod-
uct shows that the LDDW instructions are parents of the MPYSP instructions
and the MPYSP instructions are parents of the ADDSP instructions. To split
the graph between the A and B register files, place an equal number of