39 #define THIS_NAME "TB"
41 #define TRACE_OFF 0x0000
42 #define TRACE_CGRF 1 << 1
43 #define TRACE_CGTF 1 << 2
44 #define TRACE_DUMTF 1 << 3
45 #define TRACE_ALL 0xFFFF
46 #define DEBUG_LEVEL (TRACE_OFF)
66 int main(
int argc,
char *argv[]) {
83 stream<StsBool> ssTOE_RLB_Data (
"ssTOE_RLB_Data");
84 stream<StsBool> ssUOE_RLB_Data (
"ssUOE_RLB_Data");
87 printInfo(
THIS_NAME,
"############################################################################\n");
89 printInfo(
THIS_NAME,
"############################################################################\n");
95 ssTOE_RLB_Data.write(
false);
96 ssUOE_RLB_Data.write(
false);
99 if (sRLB_MMIO_Ready !=
false) {
100 printError(
THIS_NAME,
"The ready signal is expected inactive (false) but was found to be active (true).\n");
105 ssTOE_RLB_Data.write(
true);
108 ssUOE_RLB_Data.write(
true);
111 if (sRLB_MMIO_Ready !=
true) {
112 printError(
THIS_NAME,
"The ready signal is expected active (true) but was found to be inactive (false).\n");
131 printInfo(
THIS_NAME,
"############################################################################\n");
133 printInfo(
THIS_NAME,
"############################################################################\n");
138 printError(
THIS_NAME,
"#### TEST BENCH FAILED : TOTAL NUMBER OF ERROR(S) = %2d ####\n", nrErr);
141 printInfo(
THIS_NAME,
"FYI - You may want to check for \'ERROR\' and/or \'WARNING\' alarms in the LOG file...\n\n");
144 printInfo(
THIS_NAME,
"#############################################################\n");
146 printInfo(
THIS_NAME,
"#############################################################\n");
unsigned int gMaxSimCycles
int main(int argc, char *argv[])
Main function.
void stepSim()
Increment the simulation counter.
void rlb(StsBit *poMMIO_Ready, stream< StsBool > &siUOE_Ready, stream< StsBool > &siTOE_Ready)
Main process of the Ready Logic Barrier (RLB).
#define printError(callerName, format,...)
A macro to print an error message.
#define printInfo(callerName, format,...)
A macro to print an information message.
: Testbench for the UDP Offload Engine (UOE).