cloudFPGA (cF) API  1.0
The documentation of the source code of cloudFPGA (cF)
simu_udp_shell_if_env.hpp File Reference

: Simulation environment for the UDP Shell Interface (USIF). More...

#include <cstdlib>
#include <hls_stream.h>
#include <iostream>
#include "../src/udp_shell_if.hpp"
#include "../../../../cFDK/SRA/LIB/SHELL/LIB/hls/NTS/SimNtsUtils.hpp"
Include dependency graph for simu_udp_shell_if_env.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define DEFAULT_FPGA_IP4_ADDR   0x0A0CC801
 
#define DEFAULT_FPGA_LSN_PORT   0x2263
 
#define DEFAULT_FPGA_SND_PORT   0xA263
 
#define DEFAULT_HOST_IP4_ADDR   0x0A0CC832
 
#define DEFAULT_HOST_LSN_PORT   0x80
 
#define DEFAULT_HOST_SND_PORT   0x8080
 
#define DEFAULT_DATAGRAM_LEN   32
 

Functions

void stepSim ()
 Increment the simulation counter. More...
 
void increaseSimTime (unsigned int cycles)
 Increase the simulation time of the testbench. More...
 
void pUAF (stream< UdpAppData > &siUSIF_Data, stream< UdpAppMeta > &siUSIF_Meta, stream< UdpAppData > &soUSIF_Data, stream< UdpAppMeta > &soUSIF_Meta, stream< UdpAppDLen > &soUSIF_DLen)
 Emulate the behavior of the ROLE/UdpAppFlash (UAF). More...
 
void pMMIO (StsBit *piSHL_Ready, CmdBit *poUSIF_Enable)
 Emulate the behavior of the SHELL & MMIO. More...
 
void pUOE (int &nrErr, ofstream &dataGoldFile, ofstream &dataFile, ofstream &metaGoldFile, ofstream &metaFile, int echoDgrmLen, SockAddr testSock, int testDgrmLen, StsBit *poMMIO_Ready, stream< UdpAppData > &soUSIF_Data, stream< UdpAppMeta > &soUSIF_Meta, stream< UdpAppDLen > &soUSIF_DLen, stream< UdpAppData > &siUSIF_Data, stream< UdpAppMeta > &siUSIF_Meta, stream< UdpAppDLen > &siUSIF_DLen, stream< UdpPort > &siUSIF_LsnReq, stream< StsBool > &soUSIF_LsnRep, stream< UdpPort > &siUSIF_ClsReq)
 Emulate behavior of the SHELL/NTS/UDP Offload Engine (UOE). More...
 

Variables

const int cUoeInitCycles = 100
 
const int cGraceTime = 500
 

Detailed Description

: Simulation environment for the UDP Shell Interface (USIF).

System: : cloudFPGA Component : cFp_HelloKale/ROLE/UdpShellInterface (USIF) Language : Vivado HLS

Definition in file simu_udp_shell_if_env.hpp.