From d483ebb8da6392ca33a011047de35daf1dfeffcf Mon Sep 17 00:00:00 2001 From: Alex Forencich Date: Thu, 20 Nov 2014 23:59:54 -0800 Subject: [PATCH] Drop arp request earlier --- rtl/ip.v | 2 +- rtl/ip_64.v | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/rtl/ip.v b/rtl/ip.v index 3d888d5b5..67328486d 100644 --- a/rtl/ip.v +++ b/rtl/ip.v @@ -247,7 +247,7 @@ reg drop_packet_reg = 0, drop_packet_next; assign input_ip_hdr_ready = input_ip_hdr_ready_reg; assign input_ip_payload_tready = outgoing_ip_payload_tready | drop_packet_reg; -assign arp_request_valid = arp_request_valid_reg | input_ip_hdr_valid; +assign arp_request_valid = arp_request_valid_reg | (input_ip_hdr_valid & ~input_ip_hdr_ready_reg); assign arp_request_ip = input_ip_dest_ip; assign tx_error_arp_failed = arp_response_error; diff --git a/rtl/ip_64.v b/rtl/ip_64.v index 9eae37d9a..b7ed26b80 100644 --- a/rtl/ip_64.v +++ b/rtl/ip_64.v @@ -256,7 +256,7 @@ reg drop_packet_reg = 0, drop_packet_next; assign input_ip_hdr_ready = input_ip_hdr_ready_reg; assign input_ip_payload_tready = outgoing_ip_payload_tready | drop_packet_reg; -assign arp_request_valid = arp_request_valid_reg | input_ip_hdr_valid; +assign arp_request_valid = arp_request_valid_reg | (input_ip_hdr_valid & ~input_ip_hdr_ready_reg); assign arp_request_ip = input_ip_dest_ip; assign tx_error_arp_failed = arp_response_error;