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,6 +114,7 @@ class WBPacketSink extends EthPacketSink; ...@@ -114,6 +114,7 @@ class WBPacketSink extends EthPacketSink;
endcase // case (xf.a) endcase // case (xf.a)
end end
pkt.deserialize(tmp); pkt.deserialize(tmp);
if(pkt.error == 1'b0)
decode_oob(oob, oob_size, pkt); 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