Skip to content

Commit

Permalink
Move timestamp capture into payload state in XGMII RX module
Browse files Browse the repository at this point in the history
Signed-off-by: Alex Forencich <[email protected]>
  • Loading branch information
alexforencich committed Jan 28, 2024
1 parent f37bb1f commit 8074748
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions rtl/axis_xgmii_rx_64.v
Original file line number Diff line number Diff line change
Expand Up @@ -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}};
Expand All @@ -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;
Expand Down

0 comments on commit 8074748

Please sign in to comment.