When you need to check the execution time in Xilinx SDK,
you can use below code.
Note that the timer should be enabled
#include <stdio.h>
#include "xtime_l.h"
int main(void){
XTime t;
XTime_StartTimer(); //enable timer
XTime_GetTime(&t);
printf("t = %lf\n", (double)t/COUNTS_PER_SECOND);
return 0;
}
'Programming > Xilinx' 카테고리의 다른 글
Vivado synthesis and implementation strategies (0) | 2022.03.05 |
---|---|
SDK pointer vs array (0) | 2021.12.04 |
ERROR: [USF-XSim-62] 'elaborate' step failed with errors (0) | 2021.01.14 |
Vivado [Opt 31-67] Issue (0) | 2020.12.30 |
ZCU102 Evaluation Kit SODIMM issue (0) | 2020.12.21 |