22 #ifndef _ROLE_GAMMACORRECTION_H_
23 #define _ROLE_GAMMACORRECTION_H_
30 #include <hls_stream.h>
39 #define WAIT_FOR_META 0
40 #define WAIT_FOR_STREAM_PAIR 1
41 #define PROCESSING_PACKET 2
42 #define GAMMACORRECTION_RETURN_RESULTS 3
44 #define PacketFsmType uint8_t
47 #define DEFAULT_TX_PORT 2718
48 #define DEFAULT_RX_PORT 2718
52 #define BPERDW (MEMDW/8)
54 #define MAX_NB_OF_ELMT_READ 16
57 #define MAX_NB_OF_WORDS_READ (MAX_NB_OF_ELMT_READ*sizeof(mat_elmt_t)/BPERDW)
58 #define MAX_NB_OF_ELMT_PERDW (BPERDW/sizeof(mat_elmt_t))
68 stream<NetworkWord> &siSHL_This_Data,
69 stream<NetworkWord> &soTHIS_Shl_Data,
70 stream<NetworkMetaStream> &siNrc_meta,
71 stream<NetworkMetaStream> &soNrc_meta,
72 ap_uint<32> *po_rx_ports
void gammacorrection(ap_uint< 32 > *pi_rank, ap_uint< 32 > *pi_size, stream< NetworkWord > &siSHL_This_Data, stream< NetworkWord > &soTHIS_Shl_Data, stream< NetworkMetaStream > &siNrc_meta, stream< NetworkMetaStream > &soNrc_meta, ap_uint< 32 > *po_rx_ports)
Main process of the Gammacorrection Application directives.