Commit 9d440b25 authored by Grzegorz Daniluk's avatar Grzegorz Daniluk

sim/wb_packet_sink: decode oob only when frame was received without errors

Otherwise, when only part of a frame is received (due to error),
decoding oob fails anyway.
parent 6a7db44b
......@@ -114,7 +114,8 @@ class WBPacketSink extends EthPacketSink;
endcase // case (xf.a)
end
pkt.deserialize(tmp);
decode_oob(oob, oob_size, pkt);
if(pkt.error == 1'b0)
decode_oob(oob, oob_size, pkt);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment