PEX 8311RDK Hardware Reference Manual, Version 0.90
© 2005 PLX Technology, Inc. All rights reserved.
33
6.
Examples of Testing the OnBoard 32Kx32 SBSRAM with
PLXMon
1) Single read/write from/to on board SBSRAM
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 on board SBSRAM.
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 on board SBSRAM:
a) At the lower pane of the PLXMon, type
Vars
to obtain the addresses for HBuf, 60K-byte DMA
scratch buffer located in the PC’s main memory. For example, assume the HBuf has physical
address starting at 01F80000h.
b) Enter 8 long words of test data to the SBSRAM. 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 is 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 on Board SBSRAM to DMA scratch
buffer.
f) Compare the data from step ‘b’ by typing the
dl HBuf
commend.
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
Summary of Contents for PEX 8311RDK
Page 1: ...PEX 8311RDK Hardware Reference Manual...
Page 2: ......
Page 8: ......
Page 40: ......
Page 48: ......