diff options
author | Martin Braun <martin.braun@ettus.com> | 2014-10-07 11:25:20 +0200 |
---|---|---|
committer | Martin Braun <martin.braun@ettus.com> | 2014-10-07 11:25:20 +0200 |
commit | fd3e84941de463fa1a7ebab0a69515b4bf2614cd (patch) | |
tree | 3fa721a13d41d2c0451d663a59a220a38fd5e614 /fpga/usrp3/lib/vita/context_packet_gen.v | |
parent | 3b66804e41891e358c790b453a7a59ec7462dba4 (diff) | |
download | uhd-fd3e84941de463fa1a7ebab0a69515b4bf2614cd.tar.gz uhd-fd3e84941de463fa1a7ebab0a69515b4bf2614cd.tar.bz2 uhd-fd3e84941de463fa1a7ebab0a69515b4bf2614cd.zip |
Removed copy of FPGA source files.
Diffstat (limited to 'fpga/usrp3/lib/vita/context_packet_gen.v')
-rw-r--r-- | fpga/usrp3/lib/vita/context_packet_gen.v | 51 |
1 files changed, 0 insertions, 51 deletions
diff --git a/fpga/usrp3/lib/vita/context_packet_gen.v b/fpga/usrp3/lib/vita/context_packet_gen.v deleted file mode 100644 index 2782f66df..000000000 --- a/fpga/usrp3/lib/vita/context_packet_gen.v +++ /dev/null @@ -1,51 +0,0 @@ - -module context_packet_gen - (input clk, input reset, input clear, - input trigger, - input [11:0] seqnum, - input [31:0] sid, - input [63:0] body, - input [63:0] vita_time, - - output done, - output reg [63:0] o_tdata, output o_tlast, output o_tvalid, input o_tready); - - reg [1:0] cp_state; - localparam CP_IDLE = 2'd0; - localparam CP_HEAD = 2'd1; - localparam CP_TIME = 2'd2; - localparam CP_DATA = 2'd3; - - always @(posedge clk) - if(reset|clear) - cp_state <= CP_IDLE; - else - case(cp_state) - CP_IDLE : - if(trigger) - cp_state <= CP_HEAD; - CP_HEAD : - if(o_tready) - cp_state <= CP_TIME; - CP_TIME : - if(o_tready) - cp_state <= CP_DATA; - CP_DATA : - if(o_tready) - cp_state <= CP_IDLE; - endcase // case (cp_state) - - assign o_tvalid = (cp_state != CP_IDLE); - assign o_tlast = (cp_state == CP_DATA); - - always @* - case(cp_state) - CP_HEAD : o_tdata <= { 4'hA, seqnum, 16'd24, sid }; - CP_TIME : o_tdata <= vita_time; - CP_DATA : o_tdata <= body; - default : o_tdata <= body; - endcase // case (cp_state) - - assign done = o_tlast & o_tvalid & o_tready; - -endmodule // context_packet_gen |