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/trigger_context_pkt.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/trigger_context_pkt.v')
-rw-r--r-- | fpga/usrp3/lib/vita/trigger_context_pkt.v | 50 |
1 files changed, 0 insertions, 50 deletions
diff --git a/fpga/usrp3/lib/vita/trigger_context_pkt.v b/fpga/usrp3/lib/vita/trigger_context_pkt.v deleted file mode 100644 index b67fa4313..000000000 --- a/fpga/usrp3/lib/vita/trigger_context_pkt.v +++ /dev/null @@ -1,50 +0,0 @@ -// -// Copyright 2011 Ettus Research LLC -// - - - - -module trigger_context_pkt - #(parameter BASE=0) - (input clk, input reset, input clear, - input set_stb, input [7:0] set_addr, input [31:0] set_data, - input packet_consumed, output trigger); - - wire [23:0] cycles; - wire [15:0] packets; - wire [6:0] dummy1; - wire [14:0] dummy2; - wire enable_cycle, enable_consumed; - reg [30:0] cycle_count, packet_count; - - - setting_reg #(.my_addr(BASE), .at_reset(0)) sr_cycles - (.clk(clk),.rst(reset),.strobe(set_stb),.addr(set_addr), - .in(set_data),.out({enable_cycle,dummy1,cycles}),.changed()); - - setting_reg #(.my_addr(BASE+1), .at_reset(0)) sr_packets - (.clk(clk),.rst(reset),.strobe(set_stb),.addr(set_addr), - .in(set_data),.out({enable_consumed,dummy2,packets}),.changed()); - - always @(posedge clk) - if(reset | clear) - cycle_count <= 0; - else - if(trigger) - cycle_count <= 0; - else if((enable_cycle & packet_consumed) | (cycle_count != 0)) - cycle_count <= cycle_count + 1; - - always @(posedge clk) - if(reset | clear) - packet_count <= 0; - else - if(trigger) - packet_count <= 0; - else if(packet_consumed & enable_consumed) - packet_count <= packet_count + 1; - - assign trigger = (enable_cycle & (cycle_count >= cycles)) | (enable_consumed & (packet_count >= packets)); - -endmodule // trigger_context_pkt |