cloudFPGA (cF) API
1.0
The documentation of the source code of cloudFPGA (cF)
|
#include <stdio.h>
#include <iostream>
#include <fstream>
#include <string>
#include <math.h>
#include <hls_stream.h>
#include "ap_int.h"
#include <stdint.h>
#include "network.hpp"
Go to the source code of this file.
Macros | |
#define | WAIT_FOR_META 0 |
#define | WAIT_FOR_STREAM_PAIR 1 |
#define | WRITE_META 2 |
#define | PROCESSING_PACKET 3 |
#define | PacketFsmType uint8_t |
#define | FSM_WRITE_NEW_DATA 0 |
#define | FSM_DONE 1 |
#define | PortFsmType uint8_t |
#define | DEFAULT_TX_PORT 2718 |
#define | DEFAULT_RX_PORT 2718 |
Functions | |
void | upper_lower_app (ap_uint< 32 > *pi_rank, ap_uint< 32 > *pi_size, stream< NetworkWord > &siNrc_data, stream< NetworkWord > &soNrc_data, stream< NetworkMetaStream > &siNrc_meta, stream< NetworkMetaStream > &soNrc_meta, ap_uint< 32 > *po_rx_ports) |
Main process of the UDP/TCP Triangle Application. This HLS IP receives a packet, invert the case of ASCII characters, and forwards it to the next node in the cluster. The last forwards it to 0. More... | |
#define DEFAULT_RX_PORT 2718 |
Definition at line 57 of file upper_lower_app.hpp.
#define DEFAULT_TX_PORT 2718 |
Definition at line 56 of file upper_lower_app.hpp.
#define FSM_DONE 1 |
Definition at line 53 of file upper_lower_app.hpp.
#define FSM_WRITE_NEW_DATA 0 |
Definition at line 52 of file upper_lower_app.hpp.
#define PacketFsmType uint8_t |
Definition at line 50 of file upper_lower_app.hpp.
#define PortFsmType uint8_t |
Definition at line 54 of file upper_lower_app.hpp.
#define PROCESSING_PACKET 3 |
Definition at line 49 of file upper_lower_app.hpp.
#define WAIT_FOR_META 0 |
Definition at line 46 of file upper_lower_app.hpp.
#define WAIT_FOR_STREAM_PAIR 1 |
Definition at line 47 of file upper_lower_app.hpp.
#define WRITE_META 2 |
Definition at line 48 of file upper_lower_app.hpp.
void upper_lower_app | ( | ap_uint< 32 > * | pi_rank, |
ap_uint< 32 > * | pi_size, | ||
stream< NetworkWord > & | siNrc_data, | ||
stream< NetworkWord > & | soNrc_data, | ||
stream< NetworkMetaStream > & | siNrc_meta, | ||
stream< NetworkMetaStream > & | soNrc_meta, | ||
ap_uint< 32 > * | po_rx_ports | ||
) |
Main process of the UDP/TCP Triangle Application. This HLS IP receives a packet, invert the case of ASCII characters, and forwards it to the next node in the cluster. The last forwards it to 0.
Definition at line 269 of file upper_lower_app.cpp.