Yeah, the corr package has a function to do this (read and populate it).

myfpgaobject.config_10gbe_core(self,device_name,mac,ip,port,arp_table,gateway=1):

230         """Hard-codes a 10GbE core with the provided params. It does a 
blindwrite, so there is no verifcation that configuration was successful (this 
is necessary since some of these registers are set by the fabric depending on 
traffic received).
231 
232            @param self  This object.
233            @param device_name  String: name of the device.
234            @param mac   integer: MAC address, 48 bits.
235            @param ip    integer: IP address, 32 bits.
236            @param port  integer: port of fabric interface (16 bits).
237            @param arp_table  list of integers: MAC addresses (48 bits ea).
238            """

To read stuff back, check get_10gbe_core_details(self, dev_name).

Jason

On 18 Dec 2012, at 02:29, G Jones wrote:

> Hi,
> Is it possible to access the ARP table from the PPC on ROACH2? I'd
> like to see what entries it contains and if possible populate it.
> 
> Thanks,
> Glenn
> 


Reply via email to