ADM_TEST : Output from out_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 out_dio.cfg
Map BAR0: 0xfe800000 -> 0x7fcbed24b000
Map BAR1: 0xfe600000 -> 0x7fcbed04b000
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: out_dio.cfg

Parameters:

CntBuffer  8
CntBlockInBuffer  1
SizeBlockOfWords  262144
isCycle  1
isSystem  1
isAgreeMode  0
trdNo  7
strmNo  1
isSdram  0
isTest  2
DataType  6
DataFix  1

Total stream buffer size: 8 МБ

Prepare tetrade

Tetrade 7  ID: 0x12 MOD: 1  VER: 1.3 

Allocation memory: 
 Type of block:    system memory
 Block size: 8 MB
0: 0x7f200000 -> 0x7fcbeed81000
1: 0x7f300000 -> 0x7fcbecf4b000
2: 0x7f800000 -> 0x7fcbece4b000
3: 0x7f900000 -> 0x7fcbecd4b000
4: 0x7fa00000 -> 0x7fcbecc4b000
5: 0x7fb00000 -> 0x7fcbecb4b000
6: 0x7f400000 -> 0x7fcbeca4b000
7: 0x7f500000 -> 0x7fcbec94b000
Stub: 0xa56bf000 -> 0x7fcbeee9e000
Allocate stream memory - Ok
core_set_local_addr(): DmaChan=1 addr=0x00000007 
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

 TRD :   7      44082      44074      44074          0      548.4      548.3     0x0077       1:20  

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 :   7      44219      44211      44211          0      548.4      548.3     0x0073       1:20  

Result of transmitted data via trd 7 

 Recieved blocks :   44211 
 Correct blocks  :   44211 
 Incorrect blocks:   0 
 Total errors    :   0 

 Speed           :   548.3 [Mbytes/s] 
 Time of test    :   1 min 21 sec

Exit program

548.3 - PCI Express v1.1 x4 - project AMBPEX5_v20_SX50T_CORE