16#ifndef __TYPETOBITS_H__
17#define __TYPETOBITS_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);
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.
T NVUINTToType(const NVUINTW(Wrapped< T >::width) &uintbits)
Convert NVUINT to type.