OpenCores
URL https://opencores.org/ocsvn/udp_ip_stack/udp_ip_stack/trunk

Subversion Repositories udp_ip_stack

[/] [udp_ip_stack/] [trunk/] [rtl/] [vhdl/] [arp.vhd] - Diff between revs 4 and 6

Go to most recent revision | Show entire file | Details | Blame | View Log

Rev 4 Rev 6
Line 191... Line 191...
                arp_req_rslt.got_err <= '0';     -- errors not returned in this version
                arp_req_rslt.got_err <= '0';     -- errors not returned in this version
                -- zero time response to lookup request if already in cache
                -- zero time response to lookup request if already in cache
                if arp_req_req.lookup_req = '1' and arp_req_req.ip = arp_entry.ip and arp_entry.is_valid = '1' then
                if arp_req_req.lookup_req = '1' and arp_req_req.ip = arp_entry.ip and arp_entry.is_valid = '1' then
                        arp_req_rslt.got_mac <= '1';
                        arp_req_rslt.got_mac <= '1';
                        arp_req_rslt.mac <= arp_entry.mac;
                        arp_req_rslt.mac <= arp_entry.mac;
 
                elsif arp_req_req.lookup_req = '1' then
 
                        arp_req_rslt.got_mac <= '0';             -- hold off got_mac while req is there as arp_entry will not be correct yet
 
                        arp_req_rslt.mac <= arp_entry.mac;
                else
                else
                        arp_req_rslt.got_mac <= mac_addr_valid_reg;
                        arp_req_rslt.got_mac <= mac_addr_valid_reg;
                        arp_req_rslt.mac <= mac_addr_found;
                        arp_req_rslt.mac <= mac_addr_found;
                end if;
                end if;
 
 

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.