17 #ifndef _UINTOREMPTY_H_
18 #define _UINTOREMPTY_H_
21 #include <nvhls_int.h>
22 #include <nvhls_types.h>
23 #include <nvhls_assert.h>
24 #include <nvhls_message.h>
44 uint64 to_uint64() {
return 0; }
45 const sc_bit operator[](std::size_t idx)
const {
return static_cast<sc_bit
>(0); }
46 bool and_reduce() {
return 0; }
47 bool or_reduce() {
return 0; }
51 inline std::ostream &operator<<(ostream &os,
const EmptyField &empty) {
52 return os <<
"EMPTYFIELD";
56 template <
unsigned int Size>
57 Marshaller<Size> &operator&(Marshaller<Size> &m, EmptyField &rhs) {
62 inline bool operator!=(
const EmptyField lhs,
const int rhs) {
69 template <
bool,
int W>
The UIntOrEmpty class is used to define a bitvector that can have a bitwidth of 0.
A class to determine whether to instantiate an NVUINT or an EmptyField.
#define NVHLS_ASSERT_MSG(X, MSG)
NVUINTW(Wrapped< T >::width) TypeToNVUINT(T in)
Convert Type to NVUINT.
The EmptyField class is used for rudimentary support for members of a struct that can be configured t...