PCI 9656RDK- LITE Hardware Reference Manual v1.4
12
© 2006 PLX Technology, Inc. All rights reserved.
3. EXAMPLES OF TESTING
THE ONBOARD 32KX32
SRAM WITH PLXMON
1) Single read/write from/to onboard SRAM
a) At the lower command line window of
PLXMon, type in the following
commands to perform single 32bit,
16bit and 8bit memory read/write
transfers from/to the onboard SRAM.
dl
s0 1
<= read one 32-bit long word from
address s0
el
s0 88888888
<= write 32-bit data, 88888888h, to
address s0
dw
s0 1
<= read one 16-bit word from address
s0
ew
s0 8888
<= write 16-bit data, 8888h, to
address s0
db
s0 1
<= read a byte from address s0
eb
s0 88
<= write 8-bit data, 88h, to address s0
2) DMA burst read/write from/to onboard
SRAM:
a) At the lower pane of PLXMon, type
Vars
to obtain the addresses for HBuf,
the 60K-byte DMA scratch buffer
located in the PC’s main memory. For
example, assume HBuf has a physical
address starting at 01F80000h.
b) Enter 8 long words of test data to the
SRAM. For example,
el
s0
11111111
el
s0+4 22222222
el
s0+8
33333333
el
s0+c
44444444
el
s0+10
55555555
el
s0+14
66666666
el
s0+18
77777777
el
s0+1c 88888888
c) Click the DMA button on PLXMon to
open the DMA registers window.
d) Configure DMA CH0 for burst transfer
and the transfer direction from Local-to-
PCI. The settings on DMA channel 0
would be similar to the following
Mode (80h):
143
PCI address (84h):
01F80000
Local address (88h):
00000000
Transfer size (8ch):
100
Descriptor pointer (90h): 8
Check the box for data transfer enable
e) Click on the [Start Transfer] button to
transfer data from the onboard SRAM to
the DMA scratch buffer.
f) Compare the data from step ‘b’ by
typing the
dl HBuf
command.
g) Change the contents of the DMA
scratch buffer
el HBuf
99999999
el HBuf+4
88888888
el HBuf+8
77777777
el HBuf+c
66666666
el HBuf+10
55555555
el HBuf+14
44444444
el HBuf +18
33333333
el HBuf+1c
22222222
h) Change the direction of the DMA
transfer to PCI-to-Local for DMA CH0,
by modifying the Descriptor Pointer
(90h) value from 8 to 0.
i) Click the [Start Transfer] button to
perform a DMA transfer again
j) Type
in
dl s0
to compare the data from
step ‘g’.
Содержание PCI 9656RDK-LITE
Страница 1: ...PCI 9656RDK LITE Hardware Reference Manual...
Страница 2: ......
Страница 6: ......
Страница 28: ...PCI 9656RDK LITE Hardware Reference Manual v1 4 20 2006 PLX Technology Inc All rights reserved...