cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Observer
Observer
743 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
Highlighted
Mentor
Mentor
740 Views
Registered: ‎02-24-2014

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

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