From dc904cdbbb9a99692667e2a6114e5b819c1ee1d2 Mon Sep 17 00:00:00 2001 From: Rose Thompson Date: Mon, 3 Jun 2024 18:10:25 -0500 Subject: [PATCH] The ethernet frame is mostly formatted correctly. Just need to reverse the byte order in the Ethernet length/type field. --- src/rvvi/packetizer.sv | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/rvvi/packetizer.sv b/src/rvvi/packetizer.sv index 48db68f76..4a742f7da 100644 --- a/src/rvvi/packetizer.sv +++ b/src/rvvi/packetizer.sv @@ -54,7 +54,6 @@ module packetizer import cvw::*; #(parameter cvw_t P, logic [47:0] SrcMac, DstMac; logic [15:0] EthType; logic [31:0] Tag; - logic [15:0] Length; logic [TotalFrameLengthBits-1:0] TotalFrame; logic [31:0] TotalFrameWords [TotalFrameLengthBytes/4-1:0]; @@ -100,8 +99,7 @@ module packetizer import cvw::*; #(parameter cvw_t P, assign TotalFrameWords[index] = TotalFrame[(index*32)+32-1 : (index*32)]; end - assign Length = {BytesInFrame[7:0], 4'b0, BytesInFrame[11:8]}; - assign TotalFrame = {16'b0, rvviDelay, Length, DstMac, SrcMac}; + assign TotalFrame = {16'b0, rvviDelay, 4'b0, BytesInFrame, DstMac, SrcMac}; // *** fix me later assign DstMac = 48'h8F54_0000_1654; // made something up