I am using DE2 device. I have built a SOPC system. Through nios II, I'm trying to create a simple process and send this process to FPGA board.
Code:
IOWR(PI_Control_BASE,0,0); // Send zero to GPIO of FPGA
PI_val=PI_control(500); // PI_control is a subsystem
IOWR(PI_Control_BASE,0,1); // Send one to GPIO of FPGA
The purpose of this action is I want to measure the execution time of PI_control when we use software implement.
When I change the interrupt time of Nios, the execution time of PI_control also change.
Can you have any idea to check the execution time of software?
Bookmarks