diff options
Diffstat (limited to 'fpga/usrp3/sim/rfnoc/PkgChdrBfm.sv')
-rw-r--r-- | fpga/usrp3/sim/rfnoc/PkgChdrBfm.sv | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/fpga/usrp3/sim/rfnoc/PkgChdrBfm.sv b/fpga/usrp3/sim/rfnoc/PkgChdrBfm.sv index 5863bb598..908447806 100644 --- a/fpga/usrp3/sim/rfnoc/PkgChdrBfm.sv +++ b/fpga/usrp3/sim/rfnoc/PkgChdrBfm.sv @@ -569,8 +569,9 @@ package PkgChdrBfm; $fatal(1, "ChdrPacket::update_lengths(): Calculated NumMData exceeds maximum size"); // Calculate the Length field - num_bytes = data.size() * BYTES_PER_CHDR_W; // Payload length - num_bytes = num_bytes + header_bytes() + mdata_bytes(); // Payload + header length + num_bytes = header_bytes() + // Header + num_mdata * BYTES_PER_CHDR_W + // Metadata + data.size() * BYTES_PER_CHDR_W; // Payload assert(num_bytes < 2**$bits(chdr_length_t)) else $fatal(1, "ChdrPacket::update_lengths(): Calculated Length exceeds maximum size"); |