#include <stdio.h>
#include <hls_stream.h>
#include "../src/upper_lower_app.hpp"
Go to the source code of this file.
◆ DEBUG_TRACE
◆ DISABLED
#define DISABLED (ap_uint<1>)0 |
◆ ENABLED
#define ENABLED (ap_uint<1>)1 |
◆ KO
◆ OK
◆ UNVALID
◆ VALID
◆ main()
Definition at line 221 of file test_upper_lower_app.cpp.
228 printf(
"#####################################################\n");
229 printf(
"## TESTBENCH STARTS HERE ##\n");
230 printf(
"#####################################################\n");
240 printf(
"### ERROR : Failed to set input data stream \"sSHL_Uaf_Data\". \n");
282 printf(
"## End of simulation at cycle=%3d. \n",
simCnt);
304 printf(
"NRC received NRCmeta stream to rank %d.\n", (
int) tmp_meta.
tdata.
dst_rank);
311 printf(
"Error No metadata received...\n");
318 int rc1 = system(
"diff --brief -w -i -y ../../../../test/ofsUAF_Shl_Data.dat \
319 ../../../../test/verify_UAF_Shl_Data.dat");
322 printf(
"## Error : File \'ofsUAF_Shl_Data.dat\' does not match \'verify_UAF_Shl_Data.dat\'.\n");
324 printf(
"Output data in file \'ofsUAF_Shl_Data.dat\' verified.\n");
329 printf(
"#####################################################\n");
331 printf(
"## ERROR - TESTBENCH FAILED (RC=%d) !!! ##\n", nrErr);
333 printf(
"## SUCCESSFULL END OF TESTBENCH (RC=0) ##\n");
335 printf(
"#####################################################\n");
void stepDut()
Run a single iteration of the DUT model.
bool setInputDataStream(stream< UdpAppData > &sDataStream, const string dataStreamName, const string inpFileName)
Initialize an input data stream from a file.
bool getOutputDataStream(stream< UdpAppData > &sDataStream, const string dataStreamName, const string outFileName)
Fill an output file with data from an output stream.
stream< NetworkMetaStream > siUdp_meta("siUdp_meta")
stream< NetworkMetaStream > soUdp_meta("soUdp_meta")
stream< UdpWord > sUAF_Shl_Data("sUAF_Shl_Data")
stream< UdpWord > sSHL_Uaf_Data("sSHL_Uaf_Data")
ap_uint< 32 > cluster_size
ap_uint< 32 > s_udp_rx_ports
◆ siUdp_meta()
◆ soUdp_meta()
◆ sSHL_Uaf_Data()
stream<UdpWord> sSHL_Uaf_Data |
( |
"sSHL_Uaf_Data" |
| ) |
|
◆ sUAF_Shl_Data()
stream<UdpWord> sUAF_Shl_Data |
( |
"sUAF_Shl_Data" |
| ) |
|
◆ cluster_size
◆ node_rank
◆ piSHL_This_MmioCaptPktEn
ap_uint<1> piSHL_This_MmioCaptPktEn |
◆ piSHL_This_MmioPostPktEn
ap_uint<1> piSHL_This_MmioPostPktEn |
◆ s_udp_rx_ports
ap_uint<32> s_udp_rx_ports = 0x0 |
◆ simCnt