16 #ifndef __TYPETOBITS_H__
17 #define __TYPETOBITS_H__
20 #include <nvhls_int.h>
21 #include <nvhls_types.h>
22 #include <nvhls_marshaller.h>
50 Marshaller<Wrapped<T>::width> marshaller;
52 wm.Marshall(marshaller);
53 sc_lv<Wrapped<T>::width> bits = marshaller.GetResult();
83 Marshaller<Wrapped<T>::width> marshaller(mbits);
85 result.Marshall(marshaller);
114 template <
typename T>
143 template <
typename T>
T BitsToType(sc_lv< Wrapped< T >::width > mbits)
Convert logic vector to type.
sc_lv< Wrapped< T >::width > TypeToBits(T in)
Convert Type to logic vector.
NVUINTW(Wrapped< T >::width) TypeToNVUINT(T in)
Convert Type to NVUINT.
T NVUINTToType(const NVUINTW(Wrapped< T >::width) &uintbits)
Convert NVUINT to type.