From a51ccbba88d6a3f3012b84a1eed55725d41c7fd7 Mon Sep 17 00:00:00 2001 From: Wade Fife Date: Tue, 13 Oct 2020 14:11:20 -0500 Subject: fpga: lib: Fix axis_strm_monitor parameters --- fpga/usrp3/lib/fifo/axis_strm_monitor.v | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fpga/usrp3/lib/fifo/axis_strm_monitor.v b/fpga/usrp3/lib/fifo/axis_strm_monitor.v index 68e4cf5bf..2bd239d64 100644 --- a/fpga/usrp3/lib/fifo/axis_strm_monitor.v +++ b/fpga/usrp3/lib/fifo/axis_strm_monitor.v @@ -57,7 +57,7 @@ module axis_strm_monitor #( end end - generate if (PKT_LENGTH_EN == 0) begin + generate if (PKT_LENGTH_EN) begin // Count the number of lines (transfers) in a packet always @(posedge clk) begin if (reset | eop) begin @@ -71,7 +71,7 @@ module axis_strm_monitor #( always @(*) pkt_length <= 16'd0; end endgenerate - generate if (PKT_LENGTH_EN == 0) begin + generate if (PKT_CHKSUM_EN) begin // Compute the XOR checksum of the lines in a packet reg [WIDTH-1:0] chksum_prev = {WIDTH{1'b0}}; always @(posedge clk) begin -- cgit v1.2.3