cloudFPGA (cF) API
1.0
The documentation of the source code of cloudFPGA (cF)
|
Functions | |
def | udp_tx_loop (sock, message, count, verbose=False) |
def | udp_tx_ramp (sock, message, count, verbose=False) |
Variables | |
parser = argparse.ArgumentParser(description='A script to send UDP data to an FPGA module.') | |
type | |
str | |
default | |
help | |
int | |
action | |
args = parser.parse_args() | |
ipFpga = getFpgaIpv4(args) | |
instId = getInstanceId(args) | |
ipResMngr = getResourceManagerIpv4(args) | |
portFpga = RECV_MODE_LSN_PORT | |
portResMngr = getResourceManagerPort(args) | |
tuple | fpgaAssociation = (str(ipFpga), portFpga) |
int | udpSP = portFpga + 49152 |
tuple | hostAssociation = (ipSaStr, udpSP) |
udpSock = socket.socket(socket.AF_INET, socket.SOCK_DGRAM) | |
seed = args.seed | |
size = args.size | |
count = args.loop_count | |
message = str_static_gen(size) | |
verbose = args.verbose | |
def tc_UdpSend.udp_tx_loop | ( | sock, | |
message, | |||
count, | |||
verbose = False |
|||
) |
UDP Tx Single-Thread Loop. :param sock The socket to send/receive to/from. :param message The message string to sent. :param count The number of datagrams to send. :param verbose Enables verbosity. :return None
Definition at line 37 of file tc_UdpSend.py.
def tc_UdpSend.udp_tx_ramp | ( | sock, | |
message, | |||
count, | |||
verbose = False |
|||
) |
UDP Tx Single-Thread Ramp. :param sock The socket to send/receive to/from. :param message The message string to sent. :param count The number of datagrams to send. :param verbose Enables verbosity. :return None
Definition at line 89 of file tc_UdpSend.py.
tc_UdpSend.action |
Definition at line 172 of file tc_UdpSend.py.
tc_UdpSend.args = parser.parse_args() |
Definition at line 175 of file tc_UdpSend.py.
tc_UdpSend.count = args.loop_count |
Definition at line 287 of file tc_UdpSend.py.
tc_UdpSend.default |
Definition at line 154 of file tc_UdpSend.py.
Definition at line 211 of file tc_UdpSend.py.
tc_UdpSend.help |
Definition at line 155 of file tc_UdpSend.py.
tuple tc_UdpSend.hostAssociation = (ipSaStr, udpSP) |
Definition at line 223 of file tc_UdpSend.py.
tc_UdpSend.instId = getInstanceId(args) |
Definition at line 187 of file tc_UdpSend.py.
tc_UdpSend.int |
Definition at line 156 of file tc_UdpSend.py.
tc_UdpSend.ipFpga = getFpgaIpv4(args) |
Definition at line 183 of file tc_UdpSend.py.
tc_UdpSend.ipResMngr = getResourceManagerIpv4(args) |
Definition at line 191 of file tc_UdpSend.py.
tc_UdpSend.message = str_static_gen(size) |
Definition at line 291 of file tc_UdpSend.py.
tc_UdpSend.portFpga = RECV_MODE_LSN_PORT |
Definition at line 195 of file tc_UdpSend.py.
tc_UdpSend.portResMngr = getResourceManagerPort(args) |
Definition at line 199 of file tc_UdpSend.py.
tc_UdpSend.seed = args.seed |
Definition at line 271 of file tc_UdpSend.py.
tc_UdpSend.size = args.size |
Definition at line 278 of file tc_UdpSend.py.
tc_UdpSend.str |
Definition at line 154 of file tc_UdpSend.py.
tc_UdpSend.type |
Definition at line 154 of file tc_UdpSend.py.
tc_UdpSend.udpSock = socket.socket(socket.AF_INET, socket.SOCK_DGRAM) |
Definition at line 228 of file tc_UdpSend.py.
Definition at line 222 of file tc_UdpSend.py.
tc_UdpSend.verbose = args.verbose |
Definition at line 295 of file tc_UdpSend.py.