MatchLib
All Classes Namespaces Files Functions Modules Pages
Public Types | List of all members
nvhls::index_width< X > Struct Template Reference

Compute index width of a constant. More...

#include <nvhls_int.h>

Public Types

enum  { val = (X==1)? 1 : log2_ceil<X>::val }
 

Detailed Description

template<unsigned X>
struct nvhls::index_width< X >

Compute index width of a constant.

Template Parameters
XMust be a constant
Overview
  • Returns 1 if X==1. otherwise log2_ceil<X>.
A Simple Example
#include <nvhls_int.h>
...
const int ArraySize = 8;
...
nvhls_t< W >::nvuint_t get_slc(type X, const unsigned int i)
Function that returns slice of bits.
Definition nvhls_int.h:437
Compute index width of a constant.
Definition nvhls_int.h:285

Definition at line 285 of file nvhls_int.h.

Member Enumeration Documentation

◆ anonymous enum

template<unsigned X>
anonymous enum

Definition at line 286 of file nvhls_int.h.


The documentation for this struct was generated from the following file: