From 31cec8d0c1d8eab7ce0617ffcd90b0e57b4786c8 Mon Sep 17 00:00:00 2001 From: Alex Forencich Date: Wed, 22 Apr 2020 23:23:34 -0700 Subject: [PATCH] Fix cmac_pad frame truncation bug --- fpga/common/rtl/cmac_pad.v | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fpga/common/rtl/cmac_pad.v b/fpga/common/rtl/cmac_pad.v index c12812a7e..13ce789d4 100644 --- a/fpga/common/rtl/cmac_pad.v +++ b/fpga/common/rtl/cmac_pad.v @@ -95,7 +95,7 @@ generate end endgenerate -assign m_axis_tkeep = frame_reg ? s_axis_tkeep : {60{1'b1}}; +assign m_axis_tkeep = (frame_reg ? {KEEP_WIDTH{1'b0}} : {60{1'b1}}) | s_axis_tkeep; assign m_axis_tvalid = s_axis_tvalid; assign s_axis_tready = m_axis_tready; assign m_axis_tlast = s_axis_tlast;