09-25-2020 02:12 AM
I am looking into doing code coverage testing on a design that I have implemented.
What I found so far that under the GCC Host Compiler settings in Vitis, I can select the "Generate gcov information (-ftest-coverage -fprofile-arcs)" under the "Debugging" section, and I can include gcov in the GCC Host Linker Libraries.
When I do this, I am able to obtain code coverage data for the host program when running in SW Emulation.
What I wonder is whether there is a similar method to obtain code coverage of the Kernel.
06-10-2021 04:33 AM
06-10-2021 09:50 AM
I have not done this, but take a look at: https://www.xilinx.com/html_docs/xilinx2020_2/vitis_doc/cosimulationinvitishls.html
You will need a third party simulator that supports code coverage. I do not believe Vivado's simulator supports this, short of setting a breakpoint on every line, and clearing them as you run t he simulation, and when the simulation is complete, seeing if any breakpoints still exist.
06-10-2021 10:02 AM