Commit 6a7db44b authored by Grzegorz Daniluk's avatar Grzegorz Daniluk

sim: fill _size_ structure field for generated/received frames

parent d0ccc3a2
......@@ -359,6 +359,7 @@ class EthPacketGenerator;
pkt.oob_type = TX_FID;
end
pkt.size = len + 14; //payload + header
return pkt;
endfunction
......
......@@ -82,7 +82,7 @@ class WBPacketSink extends EthPacketSink;
// $display("CDS %d size: %d\n", cyc.data.size(), size);
pkt.size = size;
for(i=0;i<cyc.data.size(); i++)
begin
wb_xfer_t xf = cyc.data[i];
......
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