FPGA Resource Manager C++ API  1.8
inaccel Namespace Reference

Data Structures

class  allocator
 Custom allocator intended for std::vector. More...
 
struct  argument
 
struct  argument< _Tp, typename std::enable_if< is_specialization< _Tp, inaccel::vector >::value >::type >
 
struct  argument< _Tp, typename std::enable_if< is_specialization< _Tp, std::basic_string >::value >::type >
 
struct  argument< _Tp, typename std::enable_if< is_specialization< _Tp, std::vector >::value >::type >
 
struct  argument_api
 A virtual struct to match all types of arguments. More...
 
struct  const_handler_iterator
 
struct  const_handler_iterator< bool >
 
struct  const_simple_iterator
 
struct  handler
 
struct  handler< bool >
 
struct  handler_iterator
 
struct  handler_iterator< bool >
 
struct  is_specialization
 
struct  is_specialization< Ref< Args... >, Ref >
 
struct  iterator_base
 
struct  iterator_base< bool >
 
class  request
 A high-level class to represent accelerated functions. More...
 
struct  simple_iterator
 
class  vector
 

Typedefs

typedef unsigned long _Bit_type
 

Enumerations

Functions

session submit (request &req)
 Submit a request to the FPGA resource manager. More...
 
void wait (session wire)
 Block until the completion of a request corresponding to the supplied session id. More...
 
template<typename _Tp >
ptrdiff_t operator- (const iterator_base< _Tp > &__x, const iterator_base< _Tp > &__y)
 
ptrdiff_t operator- (const iterator_base< bool > &__x, const iterator_base< bool > &__y)
 
template<typename _Tp >
simple_iterator< _Tp > operator+ (ptrdiff_t __n, const simple_iterator< _Tp > &__x)
 
template<typename _Tp >
const_simple_iterator< _Tp > operator+ (ptrdiff_t __n, const const_simple_iterator< _Tp > &__x)
 
template<typename _Tp >
handler_iterator< _Tp > operator+ (ptrdiff_t __n, const handler_iterator< _Tp > &__x)
 
template<typename _Tp >
const_handler_iterator< _Tp > operator+ (ptrdiff_t __n, const const_handler_iterator< _Tp > &__x)
 
void __fill_bvector (handler_iterator< bool > __first, handler_iterator< bool > __last, bool __x)
 
flag operator| (flag a, flag b)
 
std::string hexify (std::string in)
 

Variables

static const int used_bits = 1
 
static const std::string enum_table [32]
 

Typedef Documentation

typedef unsigned long inaccel::_Bit_type

Enumeration Type Documentation

anonymous enum
Enumerator
_S_word_bit 
Enumerator
NONE 
INTERMEDIATE 

Function Documentation

void inaccel::__fill_bvector ( handler_iterator< bool >  __first,
handler_iterator< bool >  __last,
bool  __x 
)
inline
std::string inaccel::hexify ( std::string  in)
template<typename _Tp >
simple_iterator<_Tp> inaccel::operator+ ( ptrdiff_t  __n,
const simple_iterator< _Tp > &  __x 
)
inline
template<typename _Tp >
const_simple_iterator<_Tp> inaccel::operator+ ( ptrdiff_t  __n,
const const_simple_iterator< _Tp > &  __x 
)
inline
template<typename _Tp >
handler_iterator<_Tp> inaccel::operator+ ( ptrdiff_t  __n,
const handler_iterator< _Tp > &  __x 
)
inline
template<typename _Tp >
const_handler_iterator<_Tp> inaccel::operator+ ( ptrdiff_t  __n,
const const_handler_iterator< _Tp > &  __x 
)
inline
template<typename _Tp >
ptrdiff_t inaccel::operator- ( const iterator_base< _Tp > &  __x,
const iterator_base< _Tp > &  __y 
)
inline
ptrdiff_t inaccel::operator- ( const iterator_base< bool > &  __x,
const iterator_base< bool > &  __y 
)
inline
flag inaccel::operator| ( flag  a,
flag  b 
)
inline
session inaccel::submit ( request req)

Submit a request to the FPGA resource manager.

The request argument should be in a format compliant with the specifications demonstated in request docs. This method exits as soon as the request is transmitted to the resource manager and wait() should be later called to wait for its completion.

Parameters
reqThe request to be submitted to the FPGA resource manager
Returns
The session id to later wait the request.
void inaccel::wait ( session  wire)

Block until the completion of a request corresponding to the supplied session id.

This method should be invoked after a submit() to wait for the completion of the request. An invocation of this method without prior request submission will cause a runtime exception.

Parameters
wireThe id corresponding to the request on which we should wait.

Variable Documentation

const std::string inaccel::enum_table[32]
static
Initial value:
= { "dirty", "intermediate",
"", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "",
"", "", "", "", "", "", "", "", "", "" }
const int inaccel::used_bits = 1
static