Definition of vendor agnostic integer data types.
More...
template<unsigned int N, bool B = (N <= 64)>
struct nvhls::nvhls_t< N, B >
Definition of vendor agnostic integer data types.
- Template Parameters
-
- Overview
- Wrapper to unify use of different integer implementation and simplify use of ac_int, sc_int and sc_bigint types
- Contains nvuint_t and nvint_t typedefs that conditionally map to ac_int or sc_int types based on CFLAG
- Specifying CFLAG HLS_CATAPULT typedefs ac_int to nvint, otherwise typedefs sc_int to nvint
- nvint also supports conditional typedef of sc_int and sc_bigint depending on bitwidth
- Simple macros to declare integers are defined in nvhls_types.h
- A Simple Example
#include <nvhls_int.h>
#include <nvhls_types.h>
const GLOBAL_CONST_WIDTH = 5;
...
template <int N>
void myfunc() {
NVUINT5 var3;
NVINT3 var4;
NVINTC(GLOBAL_CONST_WIDTH) var8;
}
...
NVUINTW(Wrapped< T >::width) TypeToNVUINT(T in)
Convert Type to NVUINT.
Definition of vendor agnostic integer data types.
Definition at line 336 of file nvhls_int.h.
The documentation for this struct was generated from the following file: