1
0
mirror of https://github.com/corundum/corundum.git synced 2025-01-30 08:32:52 +08:00

Do not accept new frame until header is read

This commit is contained in:
Alex Forencich 2014-11-17 18:10:35 -08:00
parent 4d1180d74c
commit 59952bd8cf
4 changed files with 4 additions and 4 deletions

View File

@ -231,7 +231,7 @@ always @* begin
// end of frame detection
frame_next = ~current_input_tlast;
end
end else if (enable & selected_input_eth_hdr_valid) begin
end else if (enable & ~output_eth_hdr_valid & selected_input_eth_hdr_valid) begin
// start of frame, grab select value
frame_next = 1;
select_next = select;

View File

@ -240,7 +240,7 @@ always @* begin
// end of frame detection
frame_next = ~current_input_tlast;
end
end else if (enable & selected_input_eth_hdr_valid) begin
end else if (enable & ~output_eth_hdr_valid & selected_input_eth_hdr_valid) begin
// start of frame, grab select value
frame_next = 1;
select_next = select;

View File

@ -236,7 +236,7 @@ always @* begin
// end of frame detection
frame_next = ~current_input_tlast;
end
end else if (enable & selected_input_eth_hdr_valid) begin
end else if (enable & ~output_eth_hdr_valid & selected_input_eth_hdr_valid) begin
// start of frame, grab select value
frame_next = 1;
select_next = select;

View File

@ -251,7 +251,7 @@ always @* begin
// end of frame detection
frame_next = ~current_input_tlast;
end
end else if (enable & selected_input_eth_hdr_valid) begin
end else if (enable & ~output_eth_hdr_valid & selected_input_eth_hdr_valid) begin
// start of frame, grab select value
frame_next = 1;
select_next = select;