summaryrefslogtreecommitdiffstats
path: root/timing/time_64bit.v
diff options
context:
space:
mode:
authorMatt Ettus <matt@ettus.com>2009-11-05 13:41:20 -0800
committerMatt Ettus <matt@ettus.com>2009-11-05 13:41:20 -0800
commit75f85f71aa34e5cd08feb983a2ff98f5a24bc1d2 (patch)
treea3e5960483c8314edad7c9cd05c6bc44c5279e21 /timing/time_64bit.v
parent913cc668761c15d0f57caace2cd4df5b1a892063 (diff)
downloaduhd-75f85f71aa34e5cd08feb983a2ff98f5a24bc1d2.tar.gz
uhd-75f85f71aa34e5cd08feb983a2ff98f5a24bc1d2.tar.bz2
uhd-75f85f71aa34e5cd08feb983a2ff98f5a24bc1d2.zip
put 64 bit timer for vita49 on the settings bus
Diffstat (limited to 'timing/time_64bit.v')
-rw-r--r--timing/time_64bit.v12
1 files changed, 5 insertions, 7 deletions
diff --git a/timing/time_64bit.v b/timing/time_64bit.v
index c0a846e74..ab0c12be6 100644
--- a/timing/time_64bit.v
+++ b/timing/time_64bit.v
@@ -9,10 +9,13 @@ module time_64bit
output [63:0] vita_time
);
- localparam NEXT_TICKS = 0;
- localparam NEXT_SECS = 1;
+ localparam NEXT_TICKS = 1;
+ localparam NEXT_SECS = 0;
localparam ROLLOVER = TICKS_PER_SEC - 1;
+ reg [31:0] seconds;
+ reg [31:0] ticks;
+ wire end_of_second;
assign vita_time = {seconds,ticks};
wire [31:0] next_ticks_preset;
@@ -28,11 +31,6 @@ module time_64bit
(.clk(clk),.rst(rst),.strobe(set_stb),.addr(set_addr),
.in(set_data),.out(next_seconds_preset),.changed(set_on_pps_trig));
- reg [31:0] seconds;
- reg [31:0] ticks;
-
- wire end_of_second;
-
always @(posedge clk)
if(rst)
set_on_next_pps <= 0;