aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatt Ettus <matt@ettus.com>2011-07-28 13:17:14 -0700
committerMatt Ettus <matt@ettus.com>2011-07-28 13:17:14 -0700
commit43087d47403bf93bf03b61b9c79472239c44808f (patch)
tree4fe7492d480b7e871e88b81ff6f0df2f31cd2626
parent16f33c73b3a3303d183ebaabcb5fe968bb31c4e8 (diff)
downloaduhd-43087d47403bf93bf03b61b9c79472239c44808f.tar.gz
uhd-43087d47403bf93bf03b61b9c79472239c44808f.tar.bz2
uhd-43087d47403bf93bf03b61b9c79472239c44808f.zip
time: register time output to help fpga timing
-rw-r--r--usrp2/timing/time_64bit.v7
1 files changed, 5 insertions, 2 deletions
diff --git a/usrp2/timing/time_64bit.v b/usrp2/timing/time_64bit.v
index 8c9090a35..03df07108 100644
--- a/usrp2/timing/time_64bit.v
+++ b/usrp2/timing/time_64bit.v
@@ -23,7 +23,7 @@ module time_64bit
(input clk, input rst,
input set_stb, input [7:0] set_addr, input [31:0] set_data,
input pps,
- output [63:0] vita_time,
+ output reg [63:0] vita_time,
output reg [63:0] vita_time_pps,
output pps_int,
input exp_time_in, output exp_time_out,
@@ -40,7 +40,10 @@ module time_64bit
reg [31:0] seconds, ticks;
wire end_of_second;
- assign vita_time = {seconds,ticks};
+
+ always @(posedge clk)
+ vita_time <= {seconds,ticks};
+
wire [63:0] vita_time_rcvd;
wire [31:0] next_ticks_preset, next_seconds_preset;