Forum Discussion
Altera_Forum
Honored Contributor
13 years agotracking time for real time control algorithm ??
Hi, i am new in VHDL, and i want to know if there is time() function at library that i can record time through for real time control algorithm using vhdl in my ALTERA DE2_70?? thanks
Altera_Forum
Honored Contributor
13 years agoNo. How would you expect to do that in logic? Remember VHDL is NOT a programming language running on a processor.
you will need a counter and something to read the start and end values, then, as you know the clock speed, you can work out how long it's taken.