mirror of
https://github.com/alexforencich/verilog-ethernet.git
synced 2025-01-14 06:43:18 +08:00
Drop arp request earlier
This commit is contained in:
parent
a8bb020839
commit
d483ebb8da
2
rtl/ip.v
2
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;
|
||||
|
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user