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

Wait for header instead of payload

This commit is contained in:
Alex Forencich 2014-09-15 19:03:31 -07:00
parent 96f1e432f4
commit 46c29160ff
2 changed files with 2 additions and 2 deletions

View File

@ -149,7 +149,7 @@ always @* begin
// idle state - wait for data // idle state - wait for data
frame_ptr_next = 0; frame_ptr_next = 0;
if (input_eth_payload_tvalid) begin if (input_eth_hdr_valid) begin
store_eth_hdr = 1; store_eth_hdr = 1;
write_hdr_out = 1; write_hdr_out = 1;
write_hdr_data = input_eth_dest_mac[47:40]; write_hdr_data = input_eth_dest_mac[47:40];

View File

@ -167,7 +167,7 @@ always @* begin
// idle state - wait for data // idle state - wait for data
frame_ptr_next = 0; frame_ptr_next = 0;
if (input_eth_payload_tvalid) begin if (input_eth_hdr_valid) begin
store_eth_hdr = 1; store_eth_hdr = 1;
write_hdr_out = 1; write_hdr_out = 1;
write_hdr_data[ 7: 0] = input_eth_dest_mac[47:40]; write_hdr_data[ 7: 0] = input_eth_dest_mac[47:40];