MatchLib
Public Types | Public Member Functions | List of all members

Encoding for FlitID. More...

#include <nvhls_packet.h>

Inheritance diagram for FlitId2bit:
nvhls_message

Public Types

enum  { width = 2 }
 
enum  Encoding { BODY = 0, HEAD = 1, TAIL = 2, SNGL = 3 }
 

Public Member Functions

bool isHeader () const
 
bool isBody () const
 
bool isTail () const
 
bool isSingle () const
 
void set (const Encoding &enc)
 
void reset ()
 
bool operator== (const FlitId2bit &other) const
 
FlitId2bitoperator= (const FlitId2bit &other)
 
template<unsigned int Size>
void Marshall (Marshaller< Size > &m)
 
void set_raw (const NVUINTC(width) a)
 
 NVUINTC (width) get_raw()
 
 NVUINTC (width) data
 

Detailed Description

Encoding for FlitID.

Overview
  • Flit-id is used to indicate start, intermediate payload, end, and single-flit packet
  • Implemented as a class, passed as an argument to Flit class
  • Encoding: BODY:0, HEAD:1, TAIL:2, SNGL:3
A Simple Example
#include <nvhls_packet.h>
...
Flit_t flit;
flit.flit_id.set(FlitId2bit::HEAD);
...
flit.flit_id.set(FlitId2bit::BODY);
...
flit.flit_id.set(FlitId2bit::TAIL);
...

Definition at line 202 of file nvhls_packet.h.


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