16 #ifndef ARBITRATED_SCRATCHPAD_TYPES_H 17 #define ARBITRATED_SCRATCHPAD_TYPES_H 19 #include <nvhls_int.h> 20 #include <nvhls_types.h> 21 #include <nvhls_message.h> 22 #include <comptrees.h> 29 static const int width = 1;
31 template <
unsigned int Size>
32 void Marshall(Marshaller<Size>& m) {
37 template <
typename T,
unsigned int AddrW
idth,
unsigned int N>
44 static const unsigned int type_width = Wrapped<T>::width;
45 static const int width = 1 + N + N * (AddrWidth + type_width);
47 template <
unsigned int Size>
48 void Marshall(Marshaller<Size>& m) {
49 for(
unsigned i=0; i<N; i++) {
58 template <
typename T,
unsigned int N>
63 static const unsigned int type_width = Wrapped<T>::width;
64 static const int width = N + type_width * N;
66 template <
unsigned int Size>
67 void Marshall(Marshaller<Size>& m) {
68 for(
unsigned i=0; i<N; i++) {
NVUINTW(Wrapped< T >::width) TypeToNVUINT(T in)
Convert Type to NVUINT.