From 8b377a9d6d0ad281474a8dbff49ea3b093178b28 Mon Sep 17 00:00:00 2001 From: Josh Blum Date: Fri, 22 Jan 2010 16:00:45 -0800 Subject: moved into subdir --- timing/time_compare.v | 23 ----------------------- 1 file changed, 23 deletions(-) delete mode 100644 timing/time_compare.v (limited to 'timing/time_compare.v') diff --git a/timing/time_compare.v b/timing/time_compare.v deleted file mode 100644 index a21c9f8e0..000000000 --- a/timing/time_compare.v +++ /dev/null @@ -1,23 +0,0 @@ - -// Top 32 bits are integer seconds, bottom 32 are clock ticks within a second - -module time_compare - (input [63:0] time_now, - input [63:0] trigger_time, - output now, - output early, - output late, - output too_early); - - wire sec_match = (time_now[63:32] == trigger_time[63:32]); - wire sec_late = (time_now[63:32] > trigger_time[63:32]); - - wire tick_match = (time_now[31:0] == trigger_time[31:0]); - wire tick_late = (time_now[31:0] > trigger_time[31:0]); - - assign now = sec_match & tick_match; - assign late = sec_late | (sec_match & tick_late); - assign early = ~now & ~late; - assign too_early = (trigger_time[63:32] > (time_now[63:32] + 4)); // Don't wait too long - -endmodule // time_compare -- cgit v1.2.3