#include "probe_timer.hpp"
#include <iostream>
Go to the source code of this file.
◆ main()
Definition at line 32 of file test_probe_timer_todo.cpp.
35 static stream<ap_uint<16> > clearTimerFifo;
36 static stream<ap_uint<16> > setTimerFifo;
37 static stream<event> eventFifo;
45 setTimerFifo.write(7);
59 setTimerFifo.write(7);
64 clearTimerFifo.write(22);
65 setTimerFifo.write(22);
67 probe_timer(clearTimerFifo, setTimerFifo, eventFifo);
68 if (!eventFifo.empty())
71 std::cout <<
"ev happened, ID: " << ev.sessionID;
72 std::cout <<
"\t\tcount: " <<
count << std::endl;