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! *****************************
$