#include "rx_app_stream_if.hpp"
#include <iostream>
Go to the source code of this file.
◆ main()
Definition at line 32 of file test_rx_app_stream_todo.cpp.
34 stream<appReadRequest> appRxDataReq;
35 stream<rxSarAppd> rxSar2rxApp_upd_rsp;
36 stream<ap_uint<16> > appRxDataRspMetadata;
37 stream<rxSarAppd> rxApp2rxSar_upd_req;
38 stream<mmCmd> rxBufferReadCmd;
47 rx_app_stream_if( appRxDataReq,
52 if (!rxApp2rxSar_upd_req.empty())
54 rxApp2rxSar_upd_req.read(req);
58 rxSar2rxApp_upd_rsp.write(req);
62 if (!rxBufferReadCmd.empty())
64 rxBufferReadCmd.read(cmd);
65 std::cout <<
"Cmd: " << cmd.
saddr << std::endl;
67 if (!appRxDataRspMetadata.empty())
69 appRxDataRspMetadata.read(meta);
70 std::cout <<
"Meta: " << meta << std::endl;
75 appRxDataReq.write(appReadRequest(25, 89));