Hi,
Now I use the AIF of C6670 ,I found a example project AIF_LTE_FDD which are Created by Brighton Feng,then I debug it on my C6670 EVM board.The next content is in console of CCS:
[C66xx_0] JTAG ID= 0x1b94102f. This is C6670/TCI6618 device, version variant = 1.
DEVSTAT= 0x00000001. little endian, No boot or EMIF16(NOR FLASH) or UART boot, PLL configuration implies the input clock for core is 50MHz.
SmartReflex VID= 63, required core voltage= 1.104V.
Die ID= 0x12010016, 0x0403e766, 0x80000000, 0x64f60022
Device speed grade = 1200MHz.
Enable Exception handling...
Initialize DSP main clock = 122.88MHz/29x236 = 999MHz
Initialize DDR speed = 66.67MHzx/1x20 = 1333.340MTS
=================AIF CPRI mode test for 2000 ms (200 frames, LTE FDD normal cyclic prefix)=================
link 0 runs at 8x rate, internal loopback test, LTE 20 MHz AxC, antenna data in AxC slot only
link 1 runs at 4x rate, internal loopback test, LTE 10 MHz AxC, antenna data in AxC slot only
link 2 runs at 2x rate, internal loopback test, LTE 5 MHz AxC, antenna data on AxC slot, generic data on control slot, generic packet size = 10240
link 3 runs at 4x rate, internal loopback test, generic data in AxC slot only, generic packet size = 10240
link 4 runs at 4x rate, internal loopback test, LTE 20 MHz AxC, antenna data in AxC slot only
link 5 runs at 4x rate, internal loopback test, LTE 20 MHz AxC, antenna data in AxC slot only
----------------runtime error/status interrupt log--------------
0 error/status interrupt EE_LK_STS_A0 happens at frame 0, slot/symbol 0, clock 15209
0 rm_ee_sync_status_change_err: Per Link (Information): Indicates that the RX state machine changed state
1 error/status interrupt EE_LK_STS_A0 happens at frame 1, slot/symbol 0, clock 602
0 rm_ee_sync_status_change_err: Per Link (Information): Indicates that the RX state machine changed state
2 error/status interrupt EE_LK_STS_B0 happens at frame 1, slot/symbol 0, clock 602
20 pe_ee_db_starve_err: Link-by-Link (Error), DB did not have antenna data for a AxC channel. Likely to occur if DMA was late.
3 error/status interrupt EE_LK_STS_A1 happens at frame 1, slot/symbol 0, clock 602
0 rm_ee_sync_status_change_err: Per Link (Information): Indicates that the RX state machine changed state
4 error/status interrupt EE_LK_STS_B1 happens at frame 1, slot/symbol 0, clock 602
20 pe_ee_db_starve_err: Link-by-Link (Error), DB did not have antenna data for a AxC channel. Likely to occur if DMA was late.
5 error/status interrupt EE_LK_STS_A2 happens at frame 1, slot/symbol 0, clock 602
0 rm_ee_sync_status_change_err: Per Link (Information): Indicates that the RX state machine changed state
6 error/status interrupt EE_LK_STS_A3 happens at frame 1, slot/symbol 0, clock 602
0 rm_ee_sync_status_change_err: Per Link (Information): Indicates that the RX state machine changed state
7 error/status interrupt EE_LK_STS_A4 happens at frame 1, slot/symbol 0, clock 602
0 rm_ee_sync_status_change_err: Per Link (Information): Indicates that the RX state machine changed state
8 error/status interrupt EE_LK_STS_A5 happens at frame 1, slot/symbol 0, clock 602
0 rm_ee_sync_status_change_err: Per Link (Information): Indicates that the RX state machine changed state
9 error/status interrupt EE_LK_STS_A0 happens at frame 2, slot/symbol 0, clock 16928
0 rm_ee_sync_status_change_err: Per Link (Information): Indicates that the RX state machine changed state
16 rm_ee_hfnsync_state_err: Per Link, CPRI only (Error): Indicates RX FSM in the hyperframe state that is, state ST3. (as defined by CPRI)
10 error/status interrupt EE_LK_STS_A1 happens at frame 2, slot/symbol 0, clock 16928
0 rm_ee_sync_status_change_err: Per Link (Information): Indicates that the RX state machine changed state
11 error/status interrupt EE_LK_STS_A2 happens at frame 2, slot/symbol 0, clock 16928
0 rm_ee_sync_status_change_err: Per Link (Information): Indicates that the RX state machine changed state
12 error/status interrupt EE_LK_STS_B2 happens at frame 2, slot/symbol 0, clock 16928
20 pe_ee_db_starve_err: Link-by-Link (Error), DB did not have antenna data for a AxC channel. Likely to occur if DMA was late.
13 error/status interrupt EE_LK_STS_A3 happens at frame 2, slot/symbol 0, clock 16928
0 rm_ee_sync_status_change_err: Per Link (Information): Indicates that the RX state machine changed state
14 error/status interrupt EE_LK_STS_A4 happens at frame 2, slot/symbol 0, clock 16928
0 rm_ee_sync_status_change_err: Per Link (Information): Indicates that the RX state machine changed state
15 error/status interrupt EE_LK_STS_B4 happens at frame 2, slot/symbol 0, clock 16928
20 pe_ee_db_starve_err: Link-by-Link (Error), DB did not have antenna data for a AxC channel. Likely to occur if DMA was late.
16 error/status interrupt EE_LK_STS_A5 happens at frame 2, slot/symbol 0, clock 16928
0 rm_ee_sync_status_change_err: Per Link (Information): Indicates that the RX state machine changed state
17 error/status interrupt EE_LK_STS_B5 happens at frame 2, slot/symbol 0, clock 16928
20 pe_ee_db_starve_err: Link-by-Link (Error), DB did not have antenna data for a AxC channel. Likely to occur if DMA was late.
------------------status when test complete---------------------
Ingress End Of Packet count = 336383
Egress End Of Packet count = 341009
AT PHYT Frame= 200, Clock= 1100
AT RADT Frame= 200, Symbol= 0, Clock= 337
----------------link 0 status----------------
captured PI value = 380
RM ST3 State FRAME_SYNC
TM FSM in FRAME_SYNC state
----------------link 1 status----------------
captured PI value = 486
RM ST3 State FRAME_SYNC
TM FSM in FRAME_SYNC state
----------------link 2 status----------------
captured PI value = 641
RM ST3 State FRAME_SYNC
TM FSM in FRAME_SYNC state
----------------link 3 status----------------
captured PI value = 735
RM ST3 State FRAME_SYNC
TM FSM in FRAME_SYNC state
----------------link 4 status----------------
captured PI value = 835
RM ST3 State FRAME_SYNC
TM FSM in FRAME_SYNC state
----------------link 5 status----------------
captured PI value = 935
RM ST3 State FRAME_SYNC
TM FSM in FRAME_SYNC state
AxC Channel 0 transfer 27720 packets, receive 27299 packets (27299 good, 0 bad), 239607232 bytes in CORE1_LL2, achieve 120 MB/s
AxC Channel 1 transfer 27720 packets, receive 27299 packets (27299 good, 0 bad), 239607232 bytes in CORE2_LL2, achieve 120 MB/s
AxC Channel 2 transfer 27720 packets, receive 27299 packets (27299 good, 0 bad), 239607232 bytes in CORE3_LL2, achieve 120 MB/s
Throughput of link 0 = 360 MB/s (81897 good packets, 0 bad packets)
AxC Channel 3 transfer 27720 packets, receive 27299 packets (27299 good, 0 bad), 119803616 bytes in SL2, achieve 60 MB/s
AxC Channel 4 transfer 27720 packets, receive 27299 packets (27299 good, 0 bad), 119803616 bytes in SL2, achieve 60 MB/s
Throughput of link 1 = 120 MB/s (54598 good packets, 0 bad packets)
AxC Channel 5 transfer 27720 packets, receive 27299 packets (27299 good, 0 bad), 59901808 bytes in SL2, achieve 30 MB/s
AxC Channel 6 transfer 27720 packets, receive 27299 packets (27299 good, 0 bad), 59901808 bytes in SL2, achieve 30 MB/s
generic Channel 7 transfer 1010 packets, receive 1005 packets (1005 good, 0 bad), 10291200 bytes in SL2, achieve 5 MB/s
Throughput of link 2 = 65 MB/s (55603 good packets, 0 bad packets)
generic Channel 8 transfer 17546 packets, receive 17541 packets (17541 good, 0 bad), 179619840 bytes in CORE1_LL2, achieve 90 MB/s
generic Channel 9 transfer 17546 packets, receive 17541 packets (17541 good, 0 bad), 179619840 bytes in CORE2_LL2, achieve 90 MB/s
Throughput of link 3 = 180 MB/s (35082 good packets, 0 bad packets)
AxC Channel 10 transfer 27720 packets, receive 27299 packets (27299 good, 0 bad), 239607232 bytes in CORE3_LL2, achieve 120 MB/s
AxC Channel 11 transfer 27720 packets, receive 27298 packets (27298 good, 0 bad), 239598464 bytes in SL2, achieve 120 MB/s
Throughput of link 4 = 240 MB/s (54597 good packets, 0 bad packets)
AxC Channel 12 transfer 27720 packets, receive 27298 packets (27298 good, 0 bad), 239598464 bytes in SL2, achieve 120 MB/s
AxC Channel 13 transfer 27720 packets, receive 27298 packets (27298 good, 0 bad), 239598464 bytes in SL2, achieve 120 MB/s
Throughput of link 5 = 240 MB/s (54596 good packets, 0 bad packets)
Total throughput of AIF = 1205 MB/s (336373 good packets, 0 bad packets)
At the back of the text, I find a problem which is the transferred packets not equal to the received packets.Such as channel0 of Link0 ,transfer 27720 packets
but just receive 27299 packets . From the text above ,there are no erors, But we are sure to lost 421 (27720-27299=421)packets,why?