cloudFPGA (cF) API  1.0
The documentation of the source code of cloudFPGA (cF)
tc_UdpEcho.py File Reference

Go to the source code of this file.

Namespaces

 tc_UdpEcho
 

Functions

def tc_UdpEcho.udp_tx (sock, message, count, lock, verbose=False)
 
def tc_UdpEcho.udp_rx (sock, message, count, lock, verbose=False)
 
def tc_UdpEcho.udp_txrx_loop (sock, message, count, verbose=False)
 
def tc_UdpEcho.udp_txrx_ramp (sock, message, count, verbose=False)
 

Variables

 tc_UdpEcho.parser = argparse.ArgumentParser(description='A script to send/receive UDP data to/from an FPGA module.')
 
 tc_UdpEcho.type
 
 tc_UdpEcho.str
 
 tc_UdpEcho.default
 
 tc_UdpEcho.help
 
 tc_UdpEcho.int
 
 tc_UdpEcho.action
 
 tc_UdpEcho.args = parser.parse_args()
 
 tc_UdpEcho.ipFpga = getFpgaIpv4(args)
 
 tc_UdpEcho.instId = getInstanceId(args)
 
 tc_UdpEcho.ipResMngr = getResourceManagerIpv4(args)
 
 tc_UdpEcho.portFpga = getFpgaPort(args)
 
 tc_UdpEcho.portResMngr = getResourceManagerPort(args)
 
tuple tc_UdpEcho.fpgaAssociation = (str(ipFpga), portFpga)
 
int tc_UdpEcho.udpSP = portFpga + 49152
 
tuple tc_UdpEcho.hostAssociation = (ipSaStr, udpSP)
 
 tc_UdpEcho.udpSock = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
 
 tc_UdpEcho.seed = args.seed
 
 tc_UdpEcho.size = args.size
 
 tc_UdpEcho.count = args.loop_count
 
 tc_UdpEcho.message = str_static_gen(size)
 
 tc_UdpEcho.verbose = args.verbose
 
int tc_UdpEcho.gBytesInFlight = 0
 
 tc_UdpEcho.lock = threading.Lock()
 
 tc_UdpEcho.tx_thread = threading.Thread(target=udp_tx, args=(udpSock, message, count, lock, args.verbose))
 
 tc_UdpEcho.rx_thread = threading.Thread(target=udp_rx, args=(udpSock, message, count, lock, args.verbose))