Test Example 2: AIE test - 2023.2 English

Vitis Tutorials: Vitis Platform Creation (XD101)

Document ID
XD101
Release Date
2023-12-26
Version
2023.2 English

In this test we will focus on the AI engine side. We will test whether the AI engine is working correctly or not.

  1. Please follow the instructions in Versal platform creation tutorial-Step1 to create a custom hardware platform. You can skip the optional steps.

  2. Go to the ref_files directory.

cd ref_files/aie_validation
make all EXTENSIBLE_XSA=/Vitis-Tutorials/Vitis_Platform_Creation/Design_Tutorials/03_Edge_VCK190/ref_files/step1_vivado/build/vivado/custom_hardware_platform_hw.xsa  TARGET=hw #the XSA is exported from last step

Please refer to Versal platform creation tutorial-Step3 to burn the image and connect your board.

Expected log on board is as following:
[0.119]Platform Version: v2.0 PMC: v2.0, PS: v2.0
[0.160]BOOTMODE: 0x0, MULTIBOOT: 0x0
[0.190]****************************************
[0.404]Non Secure Boot
[3.302]PLM Initialization Time
[3.330]***********Boot PDI Load: Started***********
[3.370]Loading PDI from SBI
[3.396]Monolithic/Master Device
[4.152]0.779 ms: PDI initialization time
[4.188]+++Loading Image#: 0x1, Name: lpd, Id: 0x04210002
[4.234]---Loading Partition#: 0x1, Id: 0xC
[55.542] 51.264 ms for Partition#: 0x1, Size: 2848 Bytes
[60.423]---Loading Partition#: 0x2, Id: 0xB
[106.357] 42.084 ms for Partition#: 0x2, Size: 64112 Bytes
[108.847]+++Loading Image#: 0x2, Name: pl_cfi, Id: 0x18700000
[114.048]---Loading Partition#: 0x3, Id: 0x3
[755.449] 637.465 ms for Partition#: 0x3, Size: 931216 Bytes
[757.931]---Loading Partition#: 0x4, Id: 0x5
[1685.747] 923.879 ms for Partition#: 0x4, Size: 1327872 Bytes
[1688.411]+++Loading Image#: 0x3, Name: aie_subsys, Id: 0x0421C005
[1694.210]---Loading Partition#: 0x5, Id: 0x7
[1701.060] 2.828 ms for Partition#: 0x5, Size: 688 Bytes
[1703.210]+++Loading Image#: 0x4, Name: fpd, Id: 0x0420C003
[1708.413]---Loading Partition#: 0x6, Id: 0x8
[1712.841] 0.409 ms for Partition#: 0x6, Size: 1568 Bytes
[1717.766]+++Loading Image#: 0x5, Name: aie_image, Id: 0x1C000000
[1723.195]---Loading Partition#: 0x7, Id: 0x0
[1750.271] 23.054 ms for Partition#: 0x7, Size: 37088 Bytes
[1752.679]+++Loading Image#: 0x6, Name: default_subsys, Id: 0x1C000000
[1758.821]---Loading Partition#: 0x8, Id: 0x0
[3091.042] 1328.197 ms for Partition#: 0x8, Size: 1917136 Bytes
[3093.835]***********Boot PDI Load: Doze*********i*
[3098.320]7liz6n218 ms:PROM TimA
F3101.N14]Total rLe Boot Time
is created.
XAIEFAL: INFO: Resource group Static is created.
XAIEFAL: INFO: Resource group Generic is created.
-
#Beginning AIE BareMetal Test
-
#Beginning PS2AIE Register Access Test
############################################################################
INFO:: Starting AIE Array's Register Access Test
############################################################################
INFO:: AIE PLL (Clock) Status is Stable and Locked...
INFO:: AIE Data Memory access successful...

-
#Beginning AIE2DDR Memory Access Test
############################################################################
INFO:: Starting AIE Kernel(GMIO) <-> Memory(DDR) access test
############################################################################
INFO:: AIE Graph Run with 1 - iterations
Set iterations for the core(s) of graph gm_graph
Enabling core(s) of graph gm_graph
Updating RTP value to port gm_graph.loop0.in[1]
INFO:: AIE Graph RTP value updated successfully
INFO:: Running AIE-GMIO Test
INFO:: Waiting for GMIO OUT DMA completion...
INFO:: Comparing AIE-GMIO read data
GMIO read sample-1 = 1 matches with Golden data = 1
GMIO read sample-2 = 2 matches with Golden data = 2
GMIO read sample-3 = 3 matches with Golden data = 3
GMIO read sample-4 = 4 matches with Golden data = 4
GMIO read sample-5 = 5 matches with Golden data = 5
GMIO read sample-6 = 6 matches with Golden data = 6
GMIO read sample-7 = 7 matches with Golden data = 7
GMIO read sample-8 = 8 matches with Golden data = 8
GMIO read sample-9 = 9 matches with Golden data = 9
GMIO read sample-10 = 10 matches with Golden data = 10
GMIO read sample-11 = 11 matches with Golden data = 11
GMIO read sample-12 = 12 matches with Golden data = 12
GMIO read sample-13 = 13 matches with Golden data = 13
GMIO read sample-14 = 14 matches with Golden data = 14
GMIO read sample-15 = 15 matches with Golden data = 15
GMIO read sample-16 = 16 matches with Golden data = 16
GMIO read sample-17 = 17 matches with Golden data = 17
GMIO read sample-18 = 18 matches with Golden data = 18
GMIO read sample-19 = 19 matches with Golden data = 19
GMIO read sample-20 = 20 matches with Golden data = 20
GMIO read sample-21 = 21 matches with Golden data = 21
GMIO read sample-22 = 22 matches with Golden data = 22
GMIO read sample-23 = 23 matches with Golden data = 23
GMIO read sample-24 = 24 matches with Golden data = 24
GMIO read sample-25 = 25 matches with Golden data = 25
GMIO read sample-26 = 26 matches with Golden data = 26
GMIO read sample-27 = 27 matches with Golden data = 27
GMIO read sample-28 = 28 matches with Golden data = 28
GMIO read sample-29 = 29 matches with Golden data = 29
GMIO read sample-30 = 30 matches with Golden data = 30
GMIO read sample-31 = 31 matches with Golden data = 31
GMIO read sample-32 = 32 matches with Golden data = 32
INFO:: AIE GMIO Test Passed!
INFO:: Waiting for AIE Graph End...
Waiting for core(s) of graph gm_graph to finish execution ...
core(s) are done executing
INFO:: AIE Graph END complete...

-
#Beginning AIE2PL2DDR Access Test
############################################################################
INFO:: Starting AIE Example (AIE+PL) test
############################################################################
INFO:: AIE Graph Run with 1 - iterations
Set iterations for the core(s) of graph pl_graph
Enabling core(s) of graph pl_graph
Updating RTP value to port pl_graph.loop0.in[1]
INFO:: AIE Graph RTP value updated successfully
INFO:: Running AIE-PLIO Test
INFO::PL kernels are initialized
INFO::S2MM CTRL register is 1
INFO::S2MM CTRL register is 6
INFO::Comparing the data S2MM write memory with the data MM2S read from memory
INFO::the data 1 S2MM write to memory =1 the data 1 MM2s read from memory
INFO::the data 2 S2MM write to memory =2 the data 2 MM2s read from memory
INFO::the data 3 S2MM write to memory =3 the data 3 MM2s read from memory
INFO::the data 4 S2MM write to memory =4 the data 4 MM2s read from memory
INFO::the data 5 S2MM write to memory =5 the data 5 MM2s read from memory
INFO::the data 6 S2MM write to memory =6 the data 6 MM2s read from memory
INFO::the data 7 S2MM write to memory =7 the data 7 MM2s read from memory
INFO::the data 8 S2MM write to memory =8 the data 8 MM2s read from memory
INFO::the data 9 S2MM write to memory =9 the data 9 MM2s read from memory
INFO::the data 10 S2MM write to memory =10 the data 10 MM2s read from memory
INFO::the data 11 S2MM write to memory =11 the data 11 MM2s read from memory
INFO::the data 12 S2MM write to memory =12 the data 12 MM2s read from memory
INFO::the data 13 S2MM write to memory =13 the data 13 MM2s read from memory
INFO::the data 14 S2MM write to memory =14 the data 14 MM2s read from memory
INFO::the data 15 S2MM write to memory =15 the data 15 MM2s read from memory
INFO::the data 16 S2MM write to memory =16 the data 16 MM2s read from memory
INFO::the data 17 S2MM write to memory =17 the data 17 MM2s read from memory
INFO::the data 18 S2MM write to memory =18 the data 18 MM2s read from memory
INFO::the data 19 S2MM write to memory =19 the data 19 MM2s read from memory
INFO::the data 20 S2MM write to memory =20 the data 20 MM2s read from memory
INFO::the data 21 S2MM write to memory =21 the data 21 MM2s read from memory
INFO::the data 22 S2MM write to memory =22 the data 22 MM2s read from memory
INFO::the data 23 S2MM write to memory =23 the data 23 MM2s read from memory
INFO::the data 24 S2MM write to memory =24 the data 24 MM2s read from memory
INFO::the data 25 S2MM write to memory =25 the data 25 MM2s read from memory
INFO::the data 26 S2MM write to memory =26 the data 26 MM2s read from memory
INFO::the data 27 S2MM write to memory =27 the data 27 MM2s read from memory
INFO::the data 28 S2MM write to memory =28 the data 28 MM2s read from memory
INFO::the data 29 S2MM write to memory =29 the data 29 MM2s read from memory
INFO::the data 30 S2MM write to memory =30 the data 30 MM2s read from memory
INFO::the data 31 S2MM write to memory =31 the data 31 MM2s read from memory
INFO::the data 32 S2MM write to memory =32 the data 32 MM2s read from memory
INFO::AIE2PL Access check: PASS!
INFO:: Waiting for AIE Graph End...
Waiting for core(s) of graph pl_graph to finish execution ...
core(s) are done executing
INFO:: AIE Graph END
-
INFO:: AIE Platform Validation Test Passed.
Exiting AIE Baremetal Test...