#include "rx_app_if.hpp"
#include <iostream>
Go to the source code of this file.
◆ main()
Definition at line 31 of file test_rx_app_interface_todo.cpp.
33 stream<ap_uint<16> > appListenPortReq;
34 stream<bool> portTable2rxApp_listen_rsp;
35 stream<bool> appListenPortRsp;
36 stream<ap_uint<16> > rxApp2porTable_listen_req;
42 rx_app_if( appListenPortReq,
43 portTable2rxApp_listen_rsp,
45 rxApp2porTable_listen_req);
46 if (!rxApp2porTable_listen_req.empty())
48 rxApp2porTable_listen_req.read();
49 portTable2rxApp_listen_rsp.write(
true);
54 appListenPortReq.write(80);
56 if (!appListenPortRsp.empty())
58 appListenPortRsp.read(response);
59 std::cout <<
"Response: " << ((response) ?
"true" :
"false") << std::endl;