diff options
author | Matt Ettus <matt@ettus.com> | 2010-12-10 00:26:31 -0800 |
---|---|---|
committer | Matt Ettus <matt@ettus.com> | 2010-12-10 00:26:31 -0800 |
commit | 003df1ee96234f92c17f6c5f19c3c7e0a72490e9 (patch) | |
tree | 7a62ddf1813dd512858b8df1d5a9633ca1098e73 /usrp2/timing/time_receiver.v | |
parent | 19073f68c864d13c79251e0e9a7ef14acb917a49 (diff) | |
download | uhd-003df1ee96234f92c17f6c5f19c3c7e0a72490e9.tar.gz uhd-003df1ee96234f92c17f6c5f19c3c7e0a72490e9.tar.bz2 uhd-003df1ee96234f92c17f6c5f19c3c7e0a72490e9.zip |
slave side can now sync
Diffstat (limited to 'usrp2/timing/time_receiver.v')
-rw-r--r-- | usrp2/timing/time_receiver.v | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/usrp2/timing/time_receiver.v b/usrp2/timing/time_receiver.v index 71f0ace90..fd8651d29 100644 --- a/usrp2/timing/time_receiver.v +++ b/usrp2/timing/time_receiver.v @@ -2,7 +2,7 @@ module time_receiver (input clk, input rst, output reg [63:0] vita_time, - output sync_rcvd, + output reg sync_rcvd, input exp_time_in); wire code_err, disp_err, dispout, complete_word; @@ -121,6 +121,10 @@ module time_receiver state <= STATE_IDLE; endcase // case(state) - assign sync_rcvd = (complete_word & (state == STATE_TAIL) & (dataout_reg[8:0] == TAIL)); + always @(posedge clk) + if(rst) + sync_rcvd <= 0; + else + sync_rcvd <= (complete_word & (state == STATE_TAIL) & (dataout_reg[8:0] == TAIL)); endmodule // time_sender |