From 8074748564aa58db62dc59454a81435b0e5125cd Mon Sep 17 00:00:00 2001 From: Alex Forencich Date: Sun, 28 Jan 2024 14:43:18 -0800 Subject: [PATCH] Move timestamp capture into payload state in XGMII RX module Signed-off-by: Alex Forencich --- rtl/axis_xgmii_rx_64.v | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/rtl/axis_xgmii_rx_64.v b/rtl/axis_xgmii_rx_64.v index c88326909..3395f670c 100644 --- a/rtl/axis_xgmii_rx_64.v +++ b/rtl/axis_xgmii_rx_64.v @@ -221,10 +221,6 @@ always @* begin if (xgmii_start_d1 && cfg_rx_enable) begin // start condition - if (PTP_TS_ENABLE) begin - m_axis_tuser_next[1 +: PTP_TS_WIDTH] = (PTP_TS_WIDTH != 96 || ptp_ts_borrow_reg) ? ptp_ts_reg : ptp_ts_adj_reg; - end - if (framing_error_reg) begin // control or error characters in first data word m_axis_tdata_next = {DATA_WIDTH{1'b0}}; @@ -250,6 +246,10 @@ always @* begin m_axis_tlast_next = 1'b0; m_axis_tuser_next[0] = 1'b0; + if (PTP_TS_ENABLE) begin + m_axis_tuser_next[1 +: PTP_TS_WIDTH] = (PTP_TS_WIDTH != 96 || ptp_ts_borrow_reg) ? ptp_ts_reg : ptp_ts_adj_reg; + end + if (framing_error_reg) begin // control or error characters in packet m_axis_tlast_next = 1'b1;