The following table provides details of sub-functions.
Function |
Description |
|---|---|
test_gemm |
Programs matrix A and B URAMs from the array data, sets other control registers, and then enables the gemm kernel. |
check_done |
Polls for the Done signal to be set from DUT. |
read_perf |
Reads the performance counter value counted by the DUT. Gemm kernel counts the number of clocks required for matrix multiplication operation. Note that this count does not include time required for input and output data movement. |
golden_check |
Compares data from Output URAM with the golden data. It maintains an error counter which decides if a test passes or fails. |
gemm_soft_reset_pulse |
Generates soft reset to DUT. |