Motorola DSP56305 User Manual Page 68

  • Download
  • Add to my manuals
  • Print
  • Page
    / 112
  • Table of contents
  • BOOKMARKS
  • Rated. / 5. Based on customer reviews
Page view 67
Instruction Cache and Memory Features
The Instruction Cache
MOTOROLA Optimizing DSP56300/DSP56600 Applications 5-7
controlled by the user. In a program segment that advances
consecutively (no change of flow), the fetches will be done in groups
of four, initiated by instructions with addresses ending with “00”.
The following example is of a program that uses the same DRAM
for the program and the data. The DRAM has 2 wait states for
in-page access and 8 wait states for out-of-page access. The data
pointers R0,R4,R1 all point to addresses in the same DRAM page,
but a different page than the one where the program instructions
are stored.
The code is a benchmark of [1x3][3x3] matrix multiplication, from
the
DSP56300 Family Manual
, Appendix C. Below are the general
initialization instructions:
move #MAT_A,r0 ;[1x3] matrix
move #MAT_B,r4 ;[3x3] matrix
move #MAT_X,r1 ;[1x3] output matrix
move #2,m0 ;Modulo 3
move #8,m4 ;Modulo 9
move m0,m1 ;Modulo 3
Table 5-2 shows the example program and the relevant cycle count.
In the external access columns, “po” and “pi” designate out-of-page
or in-page program fetches, while “do” and “di” designate
out-of-page or in-page data accesses, respectively.
Table 5-2 Cycle Count Example With and Without Burst Mode
No Instruction
Burst Mode
Disabled
Burst Mode
Enabled
External
Accesses
Cyc
External
Accesses
Cyc
i0 nop 1po 9 1po,3pi 15
i1 move x:(r0)+,x0 y:(r4)+,y0 1pi 3 -
i2 mpy x0,y0,a x:(r0)+,x0 y:(r4)+,y0 1pi 3 -
i3 mac x0,y0,a x:(r0)+,x0 y:(r4)+,y0 1pi 3 1do,1di 12
i4 macr x0,y0,a x:(r0)+,x0 y:(r4)+,y0 1do,1di,1po 21 2di,1po,3pi 24
i5 mpy x0,y0,b x:(r0)+,x0 y:(r4)+,y0 1do,1di,1po 21 1do,1di 12
i6 move a,y:(r1)+ 1do,1di,1po 21 2di 6
i7 mac x0,y0,b x:(r0)+,x0 y:(r4)+,y0 1do,1di,1po 21 2di 6
i8 macr x0,y0,b x:(r0)+,x0 y:(r4)+,y0 1do,1di,1po 21 2di,1po,3pi 24
i9 mpy x0,y0,a x:(r0)+,x0 y:(r4)+,y0 1do,1po 18 1do 9
i10 move b,y:(r1)+ 1do,1di,1po 21 2di 6
Page view 67
1 2 ... 63 64 65 66 67 68 69 70 71 72 73 ... 111 112

Comments to this Manuals

No comments