1 #ifndef DATAFORMATS_L1TPARTICLEFLOW_ENCODING_H 2 #define DATAFORMATS_L1TPARTICLEFLOW_ENCODING_H 7 template <
typename U,
typename T>
14 template <
typename U,
typename T>
31 template <
unsigned int N,
unsigned int OFFS = 0,
typename T,
int NB>
35 #pragma HLS inline region recursive 38 for (
unsigned int i = 0;
i <
N; ++
i) {
46 template <
unsigned int N,
unsigned int OFFS = 0,
typename T,
int NB>
50 #pragma HLS inline region recursive 53 for (
unsigned int i = 0;
i <
N; ++
i) {
61 template <
unsigned int N,
unsigned int OFFS = 0,
typename T,
int NB>
65 #pragma HLS inline region recursive 67 assert(T::BITWIDTH_SLIM <= NB);
68 for (
unsigned int i = 0;
i <
N; ++
i) {
76 template <
unsigned int N,
unsigned int OFFS = 0,
typename T,
int NB>
80 #pragma HLS inline region recursive 82 assert(T::BITWIDTH_SLIM <= NB);
83 for (
unsigned int i = 0;
i <
N; ++
i) {
void l1pf_pattern_unpack(const ap_uint< NB > data[], T objs[N])
void unpack_bool_from_bits(const U &u, unsigned int &start, bool &data)
std::pair< unsigned int, unsigned int > unpack(cond::Time_t since)
void pack_into_bits(U &u, unsigned int &start, const T &data)
void l1pf_pattern_pack(const T objs[N], ap_uint< NB > data[])
void l1pf_pattern_pack_slim(const T objs[N], ap_uint< NB > data[])
void l1pf_pattern_unpack_slim(const ap_uint< NB > data[], T objs[N])
char data[epos_bytes_allocation]
void unpack_from_bits(const U &u, unsigned int &start, T &data)
void pack_bool_into_bits(U &u, unsigned int &start, bool data)