cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
arefrateb
Observer
Observer
1,027 Views
Registered: ‎03-24-2018

how to know the total time it takes to execute the code?

i have my two VHDL encryption algorithms, and i need to know the  total time elapsed for encrypt for both of them in order to  know which one has less delay. How i can measure the delay or total time elapsed in Vivado?

0 Kudos
1 Reply
jmcclusk
Mentor
Mentor
1,024 Views
Registered: ‎02-24-2014

This is easily measured in a VHDL testbench.   You can count clock cycles with a counter, and determine the run time in terms of clock cycles.    This is the usual metric.

 

Another metric which is relevant for FPGA designs is the Fmax of the design,  which plainly stated is:   How fast can you run the clock?    This takes synthesis, timing constraints, and place & route benchmarking.    Highly pipelined designs can run MUCH faster than designs without pipelining, so this is an important design consideration.

Don't forget to close a thread when possible by accepting a post as a solution.
0 Kudos