aboutsummaryrefslogtreecommitdiffstats
path: root/fpga
diff options
context:
space:
mode:
Diffstat (limited to 'fpga')
-rw-r--r--fpga/usrp3/sim/rfnoc/PkgEthernet.sv4
1 files changed, 4 insertions, 0 deletions
diff --git a/fpga/usrp3/sim/rfnoc/PkgEthernet.sv b/fpga/usrp3/sim/rfnoc/PkgEthernet.sv
index f5dda046a..6005ffe1f 100644
--- a/fpga/usrp3/sim/rfnoc/PkgEthernet.sv
+++ b/fpga/usrp3/sim/rfnoc/PkgEthernet.sv
@@ -557,6 +557,10 @@ package PkgEthernet;
// clear bytes that aren't marked as valid by keep
function void clear_unused_bytes();
keep_t last_tkeep;
+
+ // check for empty packet, in which case there's nothing to clear
+ if (this.data.size() == 0) return;
+
last_tkeep = this.keep[$];
// check that the last user is the same as the last keep
assert (this.keep[$] == calc_last_tkeep(this.user[$])) else