cloudFPGA (cF) API
1.0
The documentation of the source code of cloudFPGA (cF)
Return to the generic documentation of cloudFPGA
test_probe_timer_todo.cpp
Go to the documentation of this file.
1
26
#include "probe_timer.hpp"
27
#include <iostream>
28
29
30
using namespace
hls;
31
32
int
main
()
33
{
34
35
static
stream<ap_uint<16> > clearTimerFifo;
36
static
stream<ap_uint<16> > setTimerFifo;
37
static
stream<event> eventFifo;
38
39
event
ev;
40
41
int
count
= 0;
42
43
//for (int i=0; i < 10; i++)
44
//{
45
setTimerFifo.write(7);
46
//}
47
48
while
(
count
< 50000)
49
{
50
/*if (count < 100)
51
{
52
setTimerFifo.write(count);
53
std::cout << "set Timer for: " << count << std::endl;
54
}*/
55
if
(
count
== 9 ||
count
== 12)
56
{
57
//for (int i=0; i < 10; i++)
58
//{
59
setTimerFifo.write(7);
//try 33
60
//}
61
}
62
if
(
count
== 21)
63
{
64
clearTimerFifo.write(22);
65
setTimerFifo.write(22);
66
}
67
probe_timer(clearTimerFifo, setTimerFifo, eventFifo);
68
if
(!eventFifo.empty())
69
{
70
eventFifo.read(ev);
71
std::cout <<
"ev happened, ID: "
<< ev.sessionID;
// << std::endl;
72
std::cout <<
"\t\tcount: "
<<
count
<< std::endl;
73
}
74
count
++;
75
}
76
77
return
0;
78
}
tc_TcpEcho.count
count
Definition:
tc_TcpEcho.py:449
main
int main()
Definition:
test_probe_timer_todo.cpp:32
repos_for_Dox
cFDK
SRA
LIB
SHELL
LIB
hls
NTS
toe
src
timers
test_probe_timer_todo.cpp
Generated on Sat Jul 15 2023 05:02:59 for cloudFPGA (cF) API by
1.9.1