ADM_TEST : Output from test_dio.cfg¶
Starting the program¶
Command: ./adm_test test_dio.cfg
Output:
dsmv@dsmv-linux:~/pcie_ds_dma/trunk/soft/linux/application/adm_test/bin$ ./adm_test test_dio.cfg
Map BAR0: 0xfe800000 -> 0x7f2ae6111000
Map BAR1: 0xfe600000 -> 0x7f2ae5f11000
core_init()
core_init(): BlockID = 0x1013, BlockVER = 0x101.
core_init(): DeviceID = 0x5504, DeviceRev = 0x210.
core_init(): PldVER = 0x104.
core_init(): Block count = 8.
core_init(): Channel(ID) = 0(0x18), FIFO size = 4096 Bytes, DMA Dir = 3, Max DMA size = 1024 MBytes, resource = 0x2.
core_init(): Channel(ID) = 1(0x18), FIFO size = 4096 Bytes, DMA Dir = 3, Max DMA size = 1024 MBytes, resource = 0x2.
core_init(): Prepare ADM PLD.
Firmware PLD ADM
SIG = 0x4953 - Ok
ADM interface version: 2.0
Base module: 0x5507 v2.0
Submodule: 0x0000 v0.0
Firmware modificaton: 0
Firmware version: 1.1
Firmware build number: 0x0100
Information about the tetrads:
0 0x0001 TRD_MAIN MOD: 8 VER: 1.4 FIFO IN 256x64
1 0x004F TEST_CTRL MOD: 1 VER: 1.3
2 0x0000 -
3 0x0000 -
4 0x0000 -
5 0x0000 -
6 0x0013 DIO64_IN MOD: 6 VER: 1.2 FIFO IN 1024x64
7 0x0012 DIO64_OUT MOD: 1 VER: 1.3 FIFO OUT 1024x64
Module /dev/pexdrv0 successfuly opened
Read parameters from file: test_dio.cfg
Parameters:
CntBuffer 8
CntBlockInBuffer 1
SizeBlockOfWords 262144
isCycle 1
isSystem 1
isAgreeMode 0
isRestart 0
trdNo 6
strmNo 1
isTest 2
isMainTest 0
AdmReg (null)
isAdmReg 0
AdmReg2 (null)
isAdmReg2 0
ISVI_FILE (null)
ISVI_HEADER 0
FifoRdy 1
Cnt1 0
Cnt2 0
DataType 6
DataFix 1
isTestCtrl 1
TestSeq 0
Total stream buffer size: 8 MB
Preparing tetrade
Tetrade 6 ID: 0x13 MOD: 6 VER: 1.2
Prepare trd TEST_CTRL
Use a short test sequence
Set max speed of data transfer: 1907 Mbytes/s
Set mode with wait of FIFO ready
Allocation memory:
Type of block: system memory
Block size: 8 MB
0: 0x7f200000 -> 0x7f2ae7c47000
1: 0x7f300000 -> 0x7f2ae5e11000
2: 0x7f400000 -> 0x7f2ae5d11000
3: 0x7f500000 -> 0x7f2ae5c11000
4: 0x7f600000 -> 0x7f2ae5b11000
5: 0x7f700000 -> 0x7f2ae5a11000
6: 0x7f800000 -> 0x7f2ae5911000
7: 0x7f900000 -> 0x7f2ae5811000
Stub: 0x8dace000 -> 0x7f2ae7d64000
Allocate stream memory - Ok
core_set_local_addr(): DmaChan=1 addr=0x00000006
Stream working in regular mode
core_start_dma(): DmaChan=1 IsCycling=1
core_start_dma(): IOCTL_AMB_START_MEMIO core_start_dma - OK
BLOCK_WR BLOCK_RD BLOCK_OK BLOCK_ERR SPD_CURR SPD_AVR STATUS TIME
^CRD : 6 0 195386 195386 0 799.8 799.8 0x004F 4:04
There is parameters in the last line.
- number of trd - without name in the title
- BLOCK_WR - number of the transmitten blocks
- BLOCK_RD - number of the received blocks
- BLOCK_OK - number of the blocks with correct data
- BLOCK_ERR - number of the blocks with errors
- SPD_CURR - speed of data transfer during of last 4 second [Mbytes per second]
- SPD_AVR - speed of data transfer with program start [Mbytes per second]
- STATUS - content of STATUS register in the TRD
- TIME - current time of test
Press Ctrl-C for exit;
Result of test:
Cancel TRD : 6 0 195574 195574 0 799.8 799.8 0x0071 4:04 Result of receiving data from trd 6 Recieved blocks : 195574 Correct blocks : 195574 Incorrect blocks: 0 Total errors : 0 Speed : 799.8 [Mbytes/s] Time of test : 4 min 04 sec All data is correct. No error Exit program
799.8 - PCI Express v1.1 x4 - project AMBPEX5_v20_SX50T_CORE