1
0
mirror of https://github.com/corundum/corundum.git synced 2025-01-16 08:12:53 +08:00

merged changes in eth

This commit is contained in:
Alex Forencich 2019-07-15 18:09:52 -07:00
commit c83b04f9db

View File

@ -43,7 +43,6 @@ module ptp_ts_extract #
* AXI stream input
*/
input wire s_axis_tvalid,
input wire s_axis_tready,
input wire s_axis_tlast,
input wire [USER_WIDTH-1:0] s_axis_tuser,
@ -57,10 +56,10 @@ module ptp_ts_extract #
reg frame_reg = 1'b0;
assign m_axis_ts = s_axis_tuser >> TS_OFFSET;
assign m_axis_ts_valid = s_axis_tvalid && s_axis_tready && !frame_reg;
assign m_axis_ts_valid = s_axis_tvalid && !frame_reg;
always @(posedge clk) begin
if (s_axis_tvalid && s_axis_tready) begin
if (s_axis_tvalid) begin
frame_reg <= !s_axis_tlast;
end