aboutsummaryrefslogtreecommitdiffstats
path: root/fpga/usrp3/lib/packet_proc/ip_hdr_checksum.v
diff options
context:
space:
mode:
authorMartin Braun <martin.braun@ettus.com>2014-10-07 11:25:20 +0200
committerMartin Braun <martin.braun@ettus.com>2014-10-07 11:25:20 +0200
commitfd3e84941de463fa1a7ebab0a69515b4bf2614cd (patch)
tree3fa721a13d41d2c0451d663a59a220a38fd5e614 /fpga/usrp3/lib/packet_proc/ip_hdr_checksum.v
parent3b66804e41891e358c790b453a7a59ec7462dba4 (diff)
downloaduhd-fd3e84941de463fa1a7ebab0a69515b4bf2614cd.tar.gz
uhd-fd3e84941de463fa1a7ebab0a69515b4bf2614cd.tar.bz2
uhd-fd3e84941de463fa1a7ebab0a69515b4bf2614cd.zip
Removed copy of FPGA source files.
Diffstat (limited to 'fpga/usrp3/lib/packet_proc/ip_hdr_checksum.v')
-rw-r--r--fpga/usrp3/lib/packet_proc/ip_hdr_checksum.v24
1 files changed, 0 insertions, 24 deletions
diff --git a/fpga/usrp3/lib/packet_proc/ip_hdr_checksum.v b/fpga/usrp3/lib/packet_proc/ip_hdr_checksum.v
deleted file mode 100644
index 869378aba..000000000
--- a/fpga/usrp3/lib/packet_proc/ip_hdr_checksum.v
+++ /dev/null
@@ -1,24 +0,0 @@
-
-// Compute IP header checksum. 2 cycles of latency.
-module ip_hdr_checksum
- (input clk, input [159:0] in, output reg [15:0] out);
-
- wire [18:0] padded [0:9];
- reg [18:0] sum_a, sum_b;
-
- genvar i;
- generate
- for(i=0 ; i<10 ; i=i+1)
- assign padded[i] = {3'b000,in[i*16+15:i*16]};
- endgenerate
-
- always @(posedge clk) sum_a = padded[0] + padded[1] + padded[2] + padded[3] + padded[4];
- always @(posedge clk) sum_b = padded[5] + padded[6] + padded[7] + padded[8] + padded[9];
-
- wire [18:0] sum = sum_a + sum_b;
-
- always @(posedge clk)
- out <= ~(sum[15:0] + {13'd0,sum[18:16]});
-
-
-endmodule // ip_hdr_checksum