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> 42 uint64 to_uint64() {
return 0; }
43 const sc_bit operator[](std::size_t idx)
const {
return static_cast<sc_bit
>(0); }
47 inline std::ostream &operator<<(ostream &os,
const EmptyField &empty) {
48 return os <<
"EMPTYFIELD";
52 template <
unsigned int Size>
53 Marshaller<Size> &operator&(Marshaller<Size> &m,
EmptyField &rhs) {
60 template <
bool,
int W>
NVUINTW(Wrapped< T >::width) TypeToNVUINT(T in)
Convert Type to NVUINT.
A class to determine whether to instantiate an NVUINT or an EmptyField.
The EmptyField class is used for rudimentary support for members of a struct that can be configured t...
#define NVHLS_ASSERT_MSG(X, MSG)
The UIntOrEmpty class is used to define a bitvector that can have a bitwidth of 0.