An implementation of array that declares VectorLength variables for array of size VectorLength.
- Template Parameters
-
Type | Datatype |
VectorLength | Size of array |
- Overview
- Declares VectorLength variables to realize an array of size VectorLength
- Helpful when HLS tool does not recognize your array correctly and requires unrolling array
- nv_array also has specialization for size 0 arrays
- Usage of this class is not recommended for new models. Instead, 1) If the array is modeling a RAM/ROM, use a dedicated class for this purpose such as ac_bank_array. 2) If the array is not modeling a RAM/ROM, use a dedicated class for this purpose. In both cases, the dedicated classes should always assert on invalid indexes.
- A Simple Example
#include <nvhls_array.h>
...
}
nvhls_t< W >::nvuint_t get_slc(type X, const unsigned int i)
Function that returns slice of bits.
Definition at line 145 of file nvhls_array.h.