#include "retransmit_timer.hpp"
Go to the source code of this file.
◆ main()
Definition at line 30 of file test_retransmit_timer_todo.cpp.
32 #pragma HLS inline region off
35 stream<rxRetransmitTimerUpdate> rxEng_clearTimer;
36 stream<txRetransmitTimerSet> txEng_setTimer;
37 stream<event> eventFifoOut;
38 stream<ap_uint<16> > releaseSessionFifoOut;
39 stream<appNotification> notificationFifoOut;
42 std::ofstream outputFile;
51 outputFile.open(
"/home/dasidler/toe/hls/toe/retransmit_timer/out.dat");
54 std::cout <<
"Error: could not open test output file." << std::endl;
58 txEng_setTimer.write(txRetransmitTimerSet(7));
63 txEng_setTimer.write(txRetransmitTimerSet(7));
67 retransmit_timer(rxEng_clearTimer, txEng_setTimer, eventFifoOut, releaseSessionFifoOut, notificationFifoOut);
68 if(!eventFifoOut.empty())
70 eventFifoOut.read(evOut);
71 outputFile <<
"Event happened, ID: " << evOut.sessionID;
72 outputFile <<
"\t\t Count: " <<
count << std::endl;