//*****************************************************************************
// Time length
//*****************************************************************************
task check_time;
input time start;
input time now;
input time exp_min;
input time exp_max;
begin
   if ((now - start) < exp_min) begin
      PRINT_ERROR("");
      $display("Length too short: %t -- Expected Min: %t",(now - start),exp_min);
   end
   else if ((now - start) > exp_max) begin
      PRINT_ERROR("");
      $display("Length too long: %t -- Expected Max: %t",(now - start),exp_max);
   end
   else begin
      PRINT_PASS("");
      $display("Length is OK: %t",(now - start));
   end
end
endtask

