MatchLib
All Classes Namespaces Files Functions Modules Pages
Functions

Generate Random integer value of desired width. More...

Functions

template<int bitwidth>
 nvhls::NVUINTW (bitwidth) get_rand()
 Generate Random integer value of desired width.
 

Detailed Description

Generate Random integer value of desired width.

Function Documentation

◆ NVUINTW()

template<int bitwidth>
nvhls::NVUINTW ( bitwidth  )

Generate Random integer value of desired width.

Overview
Function to generate a random value of desired width
A Simple Example
#include <nvhls_rand.h>
...
NVUINTW(width) data = nvhls::gen_rand<width>();
nvhls_t< W >::nvuint_t get_slc(type X, const unsigned int i)
Function that returns slice of bits.
Definition nvhls_int.h:437

Definition at line 123 of file nvhls_rand.h.