#include "event_engine.hpp"
#include <iostream>
Go to the source code of this file.
◆ main()
Definition at line 32 of file test_event_engine.cpp.
34 stream<event> txApp2eventEng_setEvent;
35 stream<extendedEvent> rxEng2eventEng_setEvent;
36 stream<event> timer2eventEng_setEvent;
37 stream<extendedEvent> eventEng2txEng_event;
44 rxEng2eventEng_setEvent,
45 timer2eventEng_setEvent,
46 eventEng2txEng_event);
51 tuple.
srcIp = 0x0101010a;
53 tuple.
dstIp = 0x0101010b;
55 txApp2eventEng_setEvent.write(event(TX, 23));
56 rxEng2eventEng_setEvent.write(extendedEvent(
rstEvent(0x8293479023), tuple));
57 timer2eventEng_setEvent.write(event(RT, 22));
59 if (!eventEng2txEng_event.empty())
61 eventEng2txEng_event.read(ev);
62 std::cout << ev.type << std::endl;
void event_engine(stream< Event > &siTAi_Event, stream< ExtendedEvent > &siRXe_Event, stream< Event > &siTIm_Event, stream< ExtendedEvent > &soAKd_Event, stream< SigBit > &siAKd_RxEventSig, stream< SigBit > &siAKd_TxEventSig, stream< SigBit > &siTXe_RxEventSig)
The Event Engine (EVe) arbitrates the incoming events and forwards them to the Tx Engine (TXe) via th...