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

#include <Virtex4.hpp>

+ Inheritance diagram for torc::bitstream::Virtex4::FrameAddress:
+ Collaboration diagram for torc::bitstream::Virtex4::FrameAddress:

Public Member Functions

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

Data Fields

EFarTopBottom mTopBottom
 
EFarBlockType mBlockType
 
uint32_t mRow
 
uint32_t mMajor
 
uint32_t mMinor
 

Protected Types

typedef boost::uint32_t uint32_t
 Imported type name. More...
 

Protected Member Functions

virtual void assign (uint32_t inAddress)
 

Friends

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

Detailed Description

Definition at line 207 of file Virtex4.hpp.

Member Typedef Documentation

typedef boost::uint32_t torc::bitstream::VirtexFrameAddress::uint32_t
protectedinherited

Imported type name.

Definition at line 32 of file VirtexFrameAddress.hpp.

Constructor & Destructor Documentation

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

Definition at line 219 of file Virtex4.hpp.

220  : mTopBottom(inTopBottom),
221  mBlockType(inBlockType), mRow(inRow), mMajor(inMajor), mMinor(inMinor) {}
torc::bitstream::Virtex4::FrameAddress::FrameAddress ( uint32_t  inAddress)
inline

Definition at line 222 of file Virtex4.hpp.

222 { assign(inAddress); }
virtual void assign(uint32_t inAddress)
Definition: Virtex4.hpp:209

+ Here is the call graph for this function:

Member Function Documentation

virtual void torc::bitstream::Virtex4::FrameAddress::assign ( uint32_t  inAddress)
inlineprotectedvirtual

Implements torc::bitstream::VirtexFrameAddress.

Definition at line 209 of file Virtex4.hpp.

209  {
212  mRow = (inAddress & eFarMaskRow) >> eFarShiftRow;
213  mMajor = (inAddress & eFarMaskMajor) >> eFarShiftMajor;
214  mMinor = (inAddress & eFarMaskMinor) >> eFarShiftMinor;
215  }
EFarTopBottom
Frame Address Register top and bottom constants.
Definition: Virtex4.hpp:77
EFarBlockType
Frame Address Register block type constants.
Definition: Virtex4.hpp:79

+ Here is the caller graph for this function:

torc::bitstream::Virtex4::FrameAddress::operator uint32_t ( void  ) const
inline

Definition at line 245 of file Virtex4.hpp.

245  {
248  | ((mRow << eFarShiftRow) & eFarMaskRow)
250  | ((mMinor << eFarShiftMinor) & eFarMaskMinor));
251  }
boost::uint32_t uint32_t
Imported type name.
virtual bool torc::bitstream::Virtex4::FrameAddress::operator< ( const VirtexFrameAddress vrhs) const
inlinevirtual

Implements torc::bitstream::VirtexFrameAddress.

Definition at line 233 of file Virtex4.hpp.

233  {
234  const FrameAddress& rhs = reinterpret_cast<const FrameAddress&>(vrhs);
235  int diffBlockType = mBlockType - rhs.mBlockType;
236  if(diffBlockType) return diffBlockType < 0;
237  int diffTopBottom = mTopBottom - rhs.mTopBottom;
238  if(diffTopBottom) return diffTopBottom < 0;
239  int diffRow = mRow - rhs.mRow;
240  if(diffRow) return diffRow < 0;
241  int diffMajor = mMajor - rhs.mMajor;
242  if(diffMajor) return diffMajor < 0;
243  return mMinor < rhs.mMinor;
244  }
virtual bool torc::bitstream::Virtex4::FrameAddress::operator== ( const VirtexFrameAddress vrhs) const
inlinevirtual

Implements torc::bitstream::VirtexFrameAddress.

Definition at line 228 of file Virtex4.hpp.

228  {
229  const FrameAddress& rhs = reinterpret_cast<const FrameAddress&>(vrhs);
230  return mTopBottom == rhs.mTopBottom && mBlockType == rhs.mBlockType
231  && mRow == rhs.mRow && mMajor == rhs.mMajor && mMinor == rhs.mMinor;
232  }

Friends And Related Function Documentation

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

Definition at line 252 of file Virtex4.hpp.

252  {
253  return os << (rhs.mTopBottom == Virtex4::eFarTop ? 'T' : 'B')
254  << "" << rhs.mBlockType << "(" << rhs.mRow << "," << rhs.mMajor << "."
255  << rhs.mMinor << ")";
256  }

Field Documentation

EFarBlockType torc::bitstream::Virtex4::FrameAddress::mBlockType

Definition at line 224 of file Virtex4.hpp.

uint32_t torc::bitstream::Virtex4::FrameAddress::mMajor

Definition at line 226 of file Virtex4.hpp.

uint32_t torc::bitstream::Virtex4::FrameAddress::mMinor

Definition at line 227 of file Virtex4.hpp.

uint32_t torc::bitstream::Virtex4::FrameAddress::mRow

Definition at line 225 of file Virtex4.hpp.

EFarTopBottom torc::bitstream::Virtex4::FrameAddress::mTopBottom

Definition at line 223 of file Virtex4.hpp.


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