Template Class LTMTile

Class Documentation

template<int BLK_ROWS, int BLK_COLS, int ROWS, int COLS, int NPC>
class LTMTile

Public Functions

inline LTMTile(int r, int c)
inline LTMTile(int r, int c, int blk_r, int blk_c)
inline int getVBlkSize(int index)
inline int getMinMaxVBlkSize(int index)
inline int getHBlkSize(int addr)
inline int getInputRows()
inline int getInputCols()
inline int getInputColsAlignedNPC()
inline int getVBlkCount()
inline int getHBlkCount()

Public Members

int mRows
int mCols
int mColsNPCAligned
int mBlkRows
int mBlkCols
int mBlkColsNPCAligned
int mVBlkCount
int mHBlkCount
int mVBlkSize[2]
int mHBlkSize[2]

Public Static Attributes

static constexpr int BLK_COLS_NPC_ALIGNED = BLK_COLS >> XF_BITSHIFT(NPC)
static constexpr int COLS_NPC_ALIGNED = (COLS + NPC - 1) >> XF_BITSHIFT(NPC)
static constexpr int MinMaxVArrSize = ((ROWS % BLK_ROWS) == 0) ? (ROWS / BLK_ROWS) + 1 : (((ROWS + BLK_ROWS - 1) / BLK_ROWS) + 1) + 1
static constexpr int MinMaxHArrSize = ((COLS_NPC_ALIGNED % BLK_COLS_NPC_ALIGNED) == 0) ? (COLS_NPC_ALIGNED / BLK_COLS_NPC_ALIGNED) + 1 : (((COLS_NPC_ALIGNED + BLK_COLS_NPC_ALIGNED - 1) / BLK_COLS_NPC_ALIGNED) + 1) + 1