torc-master
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
torc::bitstream::Virtex7::FrameAddress Class Reference

#include <Virtex7.hpp>

Public Member Functions

 FrameAddress (void)
 
 FrameAddress (EFarTopBottom inTopBottom, EFarBlockType inBlockType, uint32_t inRow, uint32_t inMajor, uint32_t inMinor)
 
 FrameAddress (uint32_t inAddress)
 
bool operator== (const FrameAddress &rhs) const
 
bool operator< (const FrameAddress &rhs) const
 
 operator uint32_t (void) const
 

Data Fields

EFarTopBottom mTopBottom
 
EFarBlockType mBlockType
 
uint32_t mRow
 
uint32_t mMajor
 
uint32_t mMinor
 

Protected Member Functions

void assign (uint32_t inAddress)
 

Friends

std::ostream & operator<< (std::ostream &os, const Virtex7::FrameAddress &rhs)
 

Detailed Description

Definition at line 311 of file Virtex7.hpp.

Constructor & Destructor Documentation

torc::bitstream::Virtex7::FrameAddress::FrameAddress ( void  )
inline
torc::bitstream::Virtex7::FrameAddress::FrameAddress ( EFarTopBottom  inTopBottom,
EFarBlockType  inBlockType,
uint32_t  inRow,
uint32_t  inMajor,
uint32_t  inMinor 
)
inline

Definition at line 323 of file Virtex7.hpp.

324  : mTopBottom(inTopBottom),
325  mBlockType(inBlockType), mRow(inRow), mMajor(inMajor), mMinor(inMinor) {}
torc::bitstream::Virtex7::FrameAddress::FrameAddress ( uint32_t  inAddress)
inline

Definition at line 326 of file Virtex7.hpp.

326 { assign(inAddress); }
void assign(uint32_t inAddress)
Definition: Virtex7.hpp:313

+ Here is the call graph for this function:

Member Function Documentation

void torc::bitstream::Virtex7::FrameAddress::assign ( uint32_t  inAddress)
inlineprotected

Definition at line 313 of file Virtex7.hpp.

313  {
316  mRow = (inAddress & eFarMaskRow) >> eFarShiftRow;
317  mMajor = (inAddress & eFarMaskMajor) >> eFarShiftMajor;
318  mMinor = (inAddress & eFarMaskMinor) >> eFarShiftMinor;
319  }
EFarBlockType
Frame Address Register block type constants.
Definition: Virtex7.hpp:84
EFarTopBottom
Frame Address Register top and bottom constants.
Definition: Virtex7.hpp:81

+ Here is the caller graph for this function:

torc::bitstream::Virtex7::FrameAddress::operator uint32_t ( void  ) const
inline
bool torc::bitstream::Virtex7::FrameAddress::operator< ( const FrameAddress rhs) const
inline

Definition at line 336 of file Virtex7.hpp.

336  {
337  int diffBlockType = mBlockType - rhs.mBlockType;
338  if(diffBlockType) return diffBlockType < 0;
339  int diffTopBottom = mTopBottom - rhs.mTopBottom;
340  if(diffTopBottom) return diffTopBottom < 0;
341  int diffRow = mRow - rhs.mRow;
342  if(diffRow) return diffRow < 0;
343  int diffMajor = mMajor - rhs.mMajor;
344  if(diffMajor) return diffMajor < 0;
345  return mMinor < rhs.mMinor;
346  }
bool torc::bitstream::Virtex7::FrameAddress::operator== ( const FrameAddress rhs) const
inline

Definition at line 332 of file Virtex7.hpp.

332  {
333  return mTopBottom == rhs.mTopBottom && mBlockType == rhs.mBlockType &&
334  mRow == rhs.mRow &&mMajor == rhs.mMajor && mMinor == rhs.mMinor;
335  }

Friends And Related Function Documentation

std::ostream& operator<< ( std::ostream &  os,
const Virtex7::FrameAddress rhs 
)
friend

Definition at line 355 of file Virtex7.hpp.

355  {
356  return os << (rhs.mTopBottom == Virtex7::eFarTop ? 'T' : 'B')
357  << "" << rhs.mBlockType << "(" << rhs.mRow << "," << rhs.mMajor << "."
358  << rhs.mMinor << ")";
359  }

Field Documentation

EFarBlockType torc::bitstream::Virtex7::FrameAddress::mBlockType

Definition at line 328 of file Virtex7.hpp.

uint32_t torc::bitstream::Virtex7::FrameAddress::mMajor

Definition at line 330 of file Virtex7.hpp.

uint32_t torc::bitstream::Virtex7::FrameAddress::mMinor

Definition at line 331 of file Virtex7.hpp.

uint32_t torc::bitstream::Virtex7::FrameAddress::mRow

Definition at line 329 of file Virtex7.hpp.

EFarTopBottom torc::bitstream::Virtex7::FrameAddress::mTopBottom

Definition at line 327 of file Virtex7.hpp.


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