Analog Devices SHARC ADSP-214 Series Hardware Reference Manual page 208

Table of Contents

Advertisement

DDR2 DRAM Controller (ADSP-2146x)
Listing 3-4. Maximum Throughput Using Sequential Reads
ustat1=dm(DDR2CTL0);
bit set ustat1 DDR2OPT|DDR2MODIFY1;
dm(DDR2CTL0)=ustat1;
nop;
I0 = DDR2_addr;
M0 = 1;
Lcntr = 1024, do(PC,1) until lce;
R0 = R0 + R1, R0 = dm (I0, M0);
The example shows read optimization can be used efficiently using core
accesses. All reads are on the same page and it takes 1044 cycles to perform
1024 reads.
Without read optimization, 1024 reads use 5125 processor cycles if all of
the reads are on the same page, non-sequential reads takes 9220 cycles.
With read optimization
to the breaking of sequential reads.
Listing 3-5. Interrupted Reads With Read Optimization
ustat1=dm(DDR2CTL0);
bit set ustat1 DDR2OPT|DDR2MODIFY2;
dm(DDR2CTL0)=ustat1;
nop;
I0 = DDR2_addr;
M0 = 2;
Lcntr = 1024, do(PC,2) until lce;
R0 = R0 + R1, R0 = dm (I0, M0);
NOP;
Note the above mentioned cycles may vary based on different latency and
timing parameters programmed.
DMA Access
Listing 3-6
shows an example of external port DMA using read
optimization.
3-78
www.BDTIC.com/ADI
(Listing
3-5), 1024 reads take 10262 cycles, due
ADSP-214xx SHARC Processor Hardware Reference

Advertisement

Table of Contents
loading

Table of Contents