DUT Speed calculation

In reply to Subbi Reddy:

You can use the code below to calculate frquency of the signal


``` verilog

realtime current,prev=0;
always @ (posedge signal) begin
   current = $realtime;
   $display("Freq of the signal is : %4.2f",1.0/(current - prev));
   prev = current;
end