MatchLib
Public Member Functions | Static Public Attributes | List of all members
FIFO< DataType, 1, NumBanks > Class Template Reference

Specialization for single entry and NumBanks for QoR optimization. More...

#include <fifo.h>

Public Member Functions

typedef NVUINTW (BankSelWidth) BankIdx
 
typedef NVUINTW (1) T
 
void push (DataType wr_data, BankIdx bidx=0)
 
DataType pop (BankIdx bidx=0)
 
void incrHead (BankIdx bidx=0)
 
DataType peek (BankIdx bidx=0)
 
bool isEmpty (BankIdx bidx=0)
 
bool isFull (BankIdx bidx=0)
 
NumFilled (T bidx=0)
 
NumAvailable (T bidx=0)
 
void reset ()
 
template<unsigned int Size>
void Marshall (Marshaller< Size > &m)
 

Static Public Attributes

static const int BankSelWidth
 

Detailed Description

template<typename DataType, unsigned int NumBanks>
class FIFO< DataType, 1, NumBanks >

Specialization for single entry and NumBanks for QoR optimization.

Template Parameters
DataTypeDataType of entry in FIFO
NumBanksNumber of FIFO banks

Definition at line 311 of file fifo.h.

Member Data Documentation

◆ BankSelWidth

template<typename DataType , unsigned int NumBanks>
const int FIFO< DataType, 1, NumBanks >::BankSelWidth
static
Initial value:
=
(NumBanks == 1) ? 1 : nvhls::nbits<NumBanks - 1>::val
Compute number of bits to represent a constant.
Definition: nvhls_int.h:118

Definition at line 317 of file fifo.h.


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