From c3f45a92a064c9705ca60e89821da63474befe3e Mon Sep 17 00:00:00 2001 From: Wade Fife Date: Mon, 29 Jun 2020 08:39:15 -0500 Subject: [PATCH] fpga: rfnoc: Fix chdr_update_length function Original-commit: 1cef9d62d698a7cc33f936ab3df32e6dcd933487 --- lib/rfnoc/core/rfnoc_chdr_utils.vh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/rfnoc/core/rfnoc_chdr_utils.vh b/lib/rfnoc/core/rfnoc_chdr_utils.vh index 32376d1..88d19c8 100644 --- a/lib/rfnoc/core/rfnoc_chdr_utils.vh +++ b/lib/rfnoc/core/rfnoc_chdr_utils.vh @@ -216,6 +216,6 @@ function [63:0] chdr_update_length( mdata_length = chdr_get_num_mdata(base_hdr) * (chdr_w/8); length = header_length + mdata_length + payload_length; - chdr_update_length = chdr_set_length(chdr_w, length); + chdr_update_length = chdr_set_length(base_hdr, length); end endfunction