cloudFPGA (cF) API
1.0
The documentation of the source code of cloudFPGA (cF)
|
This is a subgroup of Uppercase accelerated function with only synthesizable (HLS) functions/classes. More...
Files | |
file | uppercase.hpp |
The Role for a Uppercase Example application (UDP or TCP) | |
file | uppercase.cpp |
The Role for a Uppercase Example application (UDP or TCP) | |
file | uppercase.hpp |
The Role for a Uppercase Example application (UDP or TCP) | |
file | uppercase.cpp |
The Role for a Uppercase Example application (UDP or TCP) | |
Typedefs | |
typedef ap_uint< 512 > | membus_512_t |
typedef membus_512_t | membus_t |
typedef char | word_t[8] |
typedef uint8_t | mat_elmt_t |
typedef char | word_t[8] |
Functions | |
void | uppercase (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 Uppercase Application directives. More... | |
void | pPortAndDestionation (ap_uint< 32 > *pi_rank, ap_uint< 32 > *pi_size, stream< NodeId > &sDstNode_sig, ap_uint< 32 > *po_rx_ports) |
pPortAndDestionation - Setup the port and the destination rank. More... | |
void | pRXPath (stream< NetworkWord > &siSHL_This_Data, stream< NetworkMetaStream > &siNrc_meta, stream< NetworkMetaStream > &sRxtoTx_Meta, stream< NetworkWord > &sRxpToTxp_Data, NetworkMetaStream meta_tmp, unsigned int *processed_word_rx, unsigned int *processed_bytes_rx) |
Receive Path - From SHELL to THIS. More... | |
void | pTXPath (stream< NetworkWord > &soTHIS_Shl_Data, stream< NetworkMetaStream > &soNrc_meta, stream< NetworkWord > &sRxpToTxp_Data, stream< NetworkMetaStream > &sRxtoTx_Meta, stream< NodeId > &sDstNode_sig, unsigned int *processed_word_tx, ap_uint< 32 > *pi_rank) |
Transmit Path - From THIS to SHELL. More... | |
void | pRXPath (stream< NetworkWord > &siSHL_This_Data, stream< NetworkMetaStream > &siNrc_meta, stream< NetworkMetaStream > &sRxtoTx_Meta, stream< NetworkWord > &sRxpToProcp_Data, NetworkMetaStream meta_tmp, bool *start_stop, unsigned int *processed_word_rx, unsigned int *processed_bytes_rx) |
Receive Path - From SHELL to THIS. More... | |
void | pTHISProcessingData (stream< NetworkWord > &sRxpToProcp_Data, stream< NetworkWord > &sProcpToTxp_Data, bool *start_stop) |
THIS processing the data once recieved a start command. More... | |
Variables | |
uint8_t | enqueueFSM = 0 |
uint8_t | dequeueFSM = 0 |
uint8_t | UppercaseFSM = 0 |
uint8_t | enqueueFSM = 0 |
uint8_t | dequeueFSM = 1 |
uint8_t | UppercaseFSM = 0 |
uint8_t | processingFSM = 0 |
This is a subgroup of Uppercase accelerated function with only synthesizable (HLS) functions/classes.
#define BPERDW (MEMDW/8) |
Definition at line 94 of file uppercase.hpp.
#define CYCLES_UNTIL_TIMEOUT 0x0100 |
Definition at line 96 of file uppercase.hpp.
#define Data_t_in ap_axiu<INPUT_PTR_WIDTH, 0, 0, 0> |
Definition at line 51 of file uppercase.cpp.
#define Data_t_in ap_axiu<INPUT_PTR_WIDTH, 0, 0, 0> |
Definition at line 51 of file uppercase.cpp.
#define Data_t_out ap_axiu<OUTPUT_PTR_WIDTH, 0, 0, 0> |
Definition at line 52 of file uppercase.cpp.
#define Data_t_out ap_axiu<OUTPUT_PTR_WIDTH, 0, 0, 0> |
Definition at line 52 of file uppercase.cpp.
#define DDR_LATENCY 52 |
Definition at line 98 of file uppercase.hpp.
#define DEFAULT_RX_PORT 2718 |
Definition at line 80 of file uppercase.hpp.
#define DEFAULT_RX_PORT 2718 |
Definition at line 90 of file uppercase.hpp.
#define DEFAULT_TX_PORT 2718 |
Definition at line 79 of file uppercase.hpp.
#define DEFAULT_TX_PORT 2718 |
Definition at line 89 of file uppercase.hpp.
#define EXTRA_DDR_LATENCY_DUE_II (64 + 8) |
Definition at line 99 of file uppercase.hpp.
#define FSM_DONE 1 |
Definition at line 76 of file uppercase.hpp.
#define FSM_DONE 1 |
Definition at line 82 of file uppercase.hpp.
#define FSM_PROCESSING_START 1 |
Definition at line 86 of file uppercase.hpp.
#define FSM_PROCESSING_STOP 0 |
Definition at line 85 of file uppercase.hpp.
#define FSM_WRITE_NEW_DATA 0 |
Definition at line 75 of file uppercase.hpp.
#define FSM_WRITE_NEW_DATA 0 |
Definition at line 81 of file uppercase.hpp.
#define MAX_NB_OF_ELMT_PERDW (BPERDW/sizeof(mat_elmt_t)) |
Definition at line 100 of file uppercase.hpp.
#define MAX_NB_OF_ELMT_READ 16 |
Definition at line 96 of file uppercase.hpp.
#define MAX_NB_OF_WORDS_READ (MAX_NB_OF_ELMT_READ*sizeof(mat_elmt_t)/BPERDW) |
Definition at line 99 of file uppercase.hpp.
#define MEMDW 64 |
Definition at line 93 of file uppercase.hpp.
#define MEMDW_512 512 |
Definition at line 90 of file uppercase.hpp.
#define PacketFsmType uint8_t |
Definition at line 73 of file uppercase.hpp.
#define PacketFsmType uint8_t |
Definition at line 79 of file uppercase.hpp.
#define PortFsmType uint8_t |
Definition at line 77 of file uppercase.hpp.
#define PortFsmType uint8_t |
Definition at line 83 of file uppercase.hpp.
#define PROCESSING_PACKET 2 |
Definition at line 70 of file uppercase.hpp.
#define PROCESSING_PACKET 2 |
Definition at line 76 of file uppercase.hpp.
#define ProcessingFsmType uint8_t |
Definition at line 87 of file uppercase.hpp.
#define ROLE_IS_UPPERCASE |
Definition at line 57 of file uppercase.hpp.
#define TOTMEMDW_512 100 |
Definition at line 93 of file uppercase.hpp.
#define TYPICAL_DDR_LATENCY 4 |
Definition at line 97 of file uppercase.hpp.
#define UPPERCASE_RETURN_RESULTS 3 |
Definition at line 71 of file uppercase.hpp.
#define UPPERCASE_RETURN_RESULTS 3 |
Definition at line 77 of file uppercase.hpp.
#define WAIT_FOR_META 0 |
Definition at line 68 of file uppercase.hpp.
#define WAIT_FOR_META 0 |
Definition at line 74 of file uppercase.hpp.
#define WAIT_FOR_STREAM_PAIR 1 |
Definition at line 69 of file uppercase.hpp.
#define WAIT_FOR_STREAM_PAIR 1 |
Definition at line 75 of file uppercase.hpp.
typedef uint8_t mat_elmt_t |
Definition at line 97 of file uppercase.hpp.
typedef ap_uint< 512 > membus_512_t |
Definition at line 91 of file uppercase.hpp.
typedef membus_512_t membus_t |
Definition at line 92 of file uppercase.hpp.
typedef char word_t[8] |
Definition at line 59 of file uppercase.cpp.
typedef char word_t[8] |
Definition at line 60 of file uppercase.cpp.
enum EchoCtrl |
SHELL/MMIO/EchoCtrl - Config Register
Definition at line 61 of file uppercase.hpp.
enum EchoCtrl |
SHELL/MMIO/EchoCtrl - Config Register
Definition at line 59 of file uppercase.hpp.
enum UppercaseCmd |
Internal uppercase accelerator command
Enumerator | |
---|---|
STOP_CMD | |
START_CMD |
Definition at line 68 of file uppercase.hpp.
void pPortAndDestionation | ( | ap_uint< 32 > * | pi_rank, |
ap_uint< 32 > * | pi_size, | ||
stream< NodeId > & | sDstNode_sig, | ||
ap_uint< 32 > * | po_rx_ports | ||
) |
pPortAndDestionation - Setup the port and the destination rank.
[in] | pi_rank | |
[in] | pi_size | |
[out] | sDstNode_sig | |
[out] | po_rx_ports |
Definition at line 71 of file uppercase.cpp.
void pRXPath | ( | stream< NetworkWord > & | siSHL_This_Data, |
stream< NetworkMetaStream > & | siNrc_meta, | ||
stream< NetworkMetaStream > & | sRxtoTx_Meta, | ||
stream< NetworkWord > & | sRxpToProcp_Data, | ||
NetworkMetaStream | meta_tmp, | ||
bool * | start_stop, | ||
unsigned int * | processed_word_rx, | ||
unsigned int * | processed_bytes_rx | ||
) |
Receive Path - From SHELL to THIS.
[in] | siSHL_This_Data | |
[in] | siNrc_meta | |
[out] | sRxtoTx_Meta | |
[out] | sRxpToProcp_Data | |
[out] | start_stop | |
[out] | meta_tmp | |
[out] | processed_word |
Definition at line 119 of file uppercase.cpp.
void pRXPath | ( | stream< NetworkWord > & | siSHL_This_Data, |
stream< NetworkMetaStream > & | siNrc_meta, | ||
stream< NetworkMetaStream > & | sRxtoTx_Meta, | ||
stream< NetworkWord > & | sRxpToTxp_Data, | ||
NetworkMetaStream | meta_tmp, | ||
unsigned int * | processed_word_rx, | ||
unsigned int * | processed_bytes_rx | ||
) |
Receive Path - From SHELL to THIS.
[in] | siSHL_This_Data | |
[in] | siNrc_meta | |
[out] | sRxtoTx_Meta | |
[out] | img_in_axi_stream | |
[out] | meta_tmp | |
[out] | processed_word |
Definition at line 117 of file uppercase.cpp.
void pTHISProcessingData | ( | stream< NetworkWord > & | sRxpToProcp_Data, |
stream< NetworkWord > & | sProcpToTxp_Data, | ||
bool * | start_stop | ||
) |
THIS processing the data once recieved a start command.
[in] | sRxpToProcp_Data | |
[out] | sProcpToTxp_Data | |
[in] | start_stop |
Definition at line 209 of file uppercase.cpp.
void pTXPath | ( | stream< NetworkWord > & | soTHIS_Shl_Data, |
stream< NetworkMetaStream > & | soNrc_meta, | ||
stream< NetworkWord > & | sProcpToTxp_Data, | ||
stream< NetworkMetaStream > & | sRxtoTx_Meta, | ||
stream< NodeId > & | sDstNode_sig, | ||
unsigned int * | processed_word_tx, | ||
ap_uint< 32 > * | pi_rank | ||
) |
Transmit Path - From THIS to SHELL.
[out] | soTHIS_Shl_Data | |
[out] | soNrc_meta | |
[in] | sRxpToTxp_Data | |
[in] | sRxtoTx_Meta | |
[in] | pi_rank | |
[in] | sDstNode_sig |
[out] | soTHIS_Shl_Data | |
[out] | soNrc_meta | |
[in] | sProcpToTxp_Data | |
[in] | sRxtoTx_Meta | |
[in] | pi_rank | |
[in] | sDstNode_sig |
Definition at line 220 of file uppercase.cpp.
void uppercase | ( | 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 Uppercase Application directives.
Definition at line 335 of file uppercase.cpp.
uint8_t dequeueFSM = 0 |
Definition at line 55 of file uppercase.cpp.
uint8_t dequeueFSM = 1 |
Definition at line 55 of file uppercase.cpp.
uint8_t enqueueFSM = 0 |
Definition at line 54 of file uppercase.cpp.
uint8_t enqueueFSM = 0 |
Definition at line 54 of file uppercase.cpp.
uint8_t processingFSM = 0 |
Definition at line 57 of file uppercase.cpp.
uint8_t UppercaseFSM = 0 |
Definition at line 56 of file uppercase.cpp.
uint8_t UppercaseFSM = 0 |
Definition at line 56 of file uppercase.cpp.