Unit Test for SumDiff Module - 2025.1 English - XD100

Vitis Tutorials: AI Engine Development (XD100)

Document ID
XD100
Release Date
2025-08-25
Version
2025.1 English

Examine the stimulus generation script julia/sumdiff.jl. Examine the source code in the src directory, especially the graph.hpp file.

Build and run the design in both functional (x86sim) and cycle-approximate (aiesim) modes. Note the results of the comparison between DUT and reference results.

$ cd ../sumdiff
$ make all | tee build.log

8< --- snip --- >8

Comparing x86sim and reference results...

diff -ws ./Emulation-SW/x86simulator_output/z.dat ./julia/z.dat
Files ./Emulation-SW/x86simulator_output/z.dat and ./julia/z.dat are identical

***************************** x86sim completed! *****************************

8< --- snip --- >8

Comparing aiesim and reference results...

diff -ws ./Emulation-HW/aiesimulator_output/z_new.dat ./julia/z.dat
Files ./Emulation-HW/aiesimulator_output/z_new.dat and ./julia/z.dat are identical

***************************** aiesim completed! *****************************
$