I need to mention that i did not configure the PL part to include an axi_timer IP. I did not do this because, as i read, this uses the global timer in the zynq Soc whose counter increases every two clock cycles.
Can someone to show me where is the mistake and give me some advices?
Question
mihai5
Hi,
I want to measure elapsed time in a bare-metal application on the Xilinx Zynq SoC(zedboard).
I included "xtime_l.h" and used XTime_GetTime(&tStart) and XTime_GetTime(&tEnd) to populate tStart and tEnd.
The difference tEnd – tStart always gives me 0 for whatever instructions I put between XTime_GetTime(&tStart) and XTime_GetTime(&tEnd).
Instructions between XTime_GetTime(&tStart) and XTime_GetTime(&tEnd) that I put are:
————————————-
XTime_GetTime(&tStart);
print(“Hello World\n\r”);
for(int i=0;i< 1000 ;i++)
{
sum += i;
}
Xil_Out32(0x43c00000, 0x5);
Xil_Out32(0x7aa00000, 0x5555);
NumberOfPattern = Xil_In32(0x43c00004);
XTime_GetTime(&tEnd)
————————————-
I need to mention that i did not configure the PL part to include an axi_timer IP. I did not do this because, as i read, this uses the global timer in the zynq Soc whose counter increases every two clock cycles.
Can someone to show me where is the mistake and give me some advices?
Link to comment
Share on other sites
2 answers to this question
Recommended Posts
Archived
This topic is now archived and is closed to further replies.