cloudFPGA (cF) API
1.0
The documentation of the source code of cloudFPGA (cF)
|
#include <stdint.h>
#include <stdio.h>
#include <iostream>
#include <fstream>
#include <string>
#include <math.h>
#include <vector>
#include "ap_int.h"
#include "ap_utils.h"
#include <hls_stream.h>
#include "../../../hls/network.hpp"
#include "NTS/nts.hpp"
#include "NTS/nts_types.hpp"
#include "NTS/nts_config.hpp"
#include "NTS/nts_utils.hpp"
#include "NTS/AxisRaw.hpp"
Go to the source code of this file.
Typedefs | |
typedef TcpSessId | AppMeta |
Functions | |
ap_uint< 32 > | bigEndianToInteger (ap_uint< 8 > *buffer, int lsb) |
void | integerToBigEndian (ap_uint< 32 > n, ap_uint< 8 > *bytes) |
ap_uint< 8 > | lenToKeep (ap_uint< 4 > noValidBytes) |
Returns the 'tkeep' field of an AxiWord as a function of the number of valid bytes in that word. More... | |
ap_uint< 4 > | keepToLen (ap_uint< 8 > keepValue) |
Swap the two bytes of a word (.i.e, 16 bits). More... | |
Application Metadata Meta-data transfered between TOE and APP.
Definition at line 76 of file network_utils.hpp.
ap_uint<32> bigEndianToInteger | ( | ap_uint< 8 > * | buffer, |
int | lsb | ||
) |
Definition at line 41 of file network_utils.cpp.
void integerToBigEndian | ( | ap_uint< 32 > | n, |
ap_uint< 8 > * | bytes | ||
) |
Definition at line 54 of file network_utils.cpp.
ap_uint<4> keepToLen | ( | ap_uint< 8 > | keepValue | ) |
Swap the two bytes of a word (.i.e, 16 bits).
[in] | inpWord,the | 16-bit unsigned data to swap. |
Swap the four bytes of a double-word (.i.e, 32 bits).
[in] | inpDWord,a | 32-bit unsigned data. |
Returns the number of valid bytes in an AxiWord.
[in] | The | 'tkeep' field of the AxiWord. |
Definition at line 94 of file network_utils.cpp.
ap_uint<8> lenToKeep | ( | ap_uint< 4 > | noValidBytes | ) |
Returns the 'tkeep' field of an AxiWord as a function of the number of valid bytes in that word.
[in] | The | number of valid bytes in an AxiWord. |
Definition at line 114 of file network_utils.cpp.