#include <stdio.h>
#include <hls_stream.h>
#include "../src/triangle_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 222 of file test_triangle_app.cpp.
229 printf(
"#####################################################\n");
230 printf(
"## TESTBENCH STARTS HERE ##\n");
231 printf(
"#####################################################\n");
241 printf(
"### ERROR : Failed to set input data stream \"sSHL_Uaf_Data\". \n");
283 printf(
"## End of simulation at cycle=%3d. \n",
simCnt);
305 printf(
"NRC received NRCmeta stream to rank %d.\n", (
int) tmp_meta.
tdata.
dst_rank);
312 printf(
"Error No metadata received...\n");
319 int rc1 = system(
"diff --brief -w -i -y ../../../../test/ofsUAF_Shl_Data.dat \
320 ../../../../test/ifsSHL_Uaf_Data.dat");
322 printf(
"## Error : File \'ofsUAF_Shl_Data.dat\' does not match \'ifsSHL_Uaf_Data.dat\'.\n");
326 printf(
"#####################################################\n");
328 printf(
"## ERROR - TESTBENCH FAILED (RC=%d) !!! ##\n", nrErr);
330 printf(
"## SUCCESSFULL END OF TESTBENCH (RC=0) ##\n");
332 printf(
"#####################################################\n");
bool getOutputDataStream(stream< UdpWord > &sDataStream, const string dataStreamName, const string outFileName)
Fill an output file with data from an output stream.
void stepDut()
Run a single iteration of the DUT model.
bool setInputDataStream(stream< UdpWord > &sDataStream, const string dataStreamName, const string inpFileName)
Initialize an input data stream from a file.
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 > 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" |
| ) |
|
◆ 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
◆ size