URL
https://opencores.org/ocsvn/ha1588/ha1588/trunk
[/] [ha1588/] [tags/] [v1p2/] [rtl/] [tsu/] [ptp_parser.v] - Diff between revs 38 and 43
Go to most recent revision |
Show entire file |
Details |
Blame |
View Log
Rev 38 |
Rev 43 |
Line 27... |
Line 27... |
input int_valid,
|
input int_valid,
|
input int_sop,
|
input int_sop,
|
input int_eop,
|
input int_eop,
|
input [ 1:0] int_mod,
|
input [ 1:0] int_mod,
|
|
|
|
input [ 7:0] ptp_msgid_mask,
|
|
|
output reg ptp_found,
|
output reg ptp_found,
|
output reg [31:0] ptp_infor
|
output reg [31:0] ptp_infor
|
);
|
);
|
|
|
reg [31:0] int_data_d1;
|
reg [31:0] int_data_d1;
|
Line 164... |
Line 166... |
(int_data[31:16]==16'h013f || int_data[31:16]==16'h0140)) // udp_dest_port == ptp_event || ptp_general
|
(int_data[31:16]==16'h013f || int_data[31:16]==16'h0140)) // udp_dest_port == ptp_event || ptp_general
|
ptp_l4 <= 1'b1;
|
ptp_l4 <= 1'b1;
|
|
|
// check if it is PTP Event message
|
// check if it is PTP Event message
|
if (int_valid && (int_cnt==10'd3 || bypass_vlan && int_cnt==10'd4) && int_data[31:16]==16'h88F7 &&
|
if (int_valid && (int_cnt==10'd3 || bypass_vlan && int_cnt==10'd4) && int_data[31:16]==16'h88F7 &&
|
(int_data[11: 8]>= 4'h0 && int_data[11:8]<=4'h7)) // ptp_message_id == ptp_event
|
(ptp_msgid_mask[int_data[11: 8]])) // ptp_message_id == ptp_event
|
ptp_event <= 1'b1;
|
ptp_event <= 1'b1;
|
else if (int_valid && int_cnt==10'd4 && bypass_udp_cnt==10'd1 && ptp_l4 &&
|
else if (int_valid && int_cnt==10'd4 && bypass_udp_cnt==10'd1 && ptp_l4 &&
|
(int_data[11: 8]>= 4'h0 && int_data[11:8]<=4'h7)) // ptp_message_id == ptp_event
|
(ptp_msgid_mask[int_data[11: 8]])) // ptp_message_id == ptp_event
|
ptp_event <= 1'b1;
|
ptp_event <= 1'b1;
|
end
|
end
|
end
|
end
|
|
|
// ptp message
|
// ptp message
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.