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

Static device information class for Xilinx bitstreams. This class facilitates the creation of frame address maps without dependence upon torc::architecture. More...

#include <DeviceInfo.hpp>

+ Collaboration diagram for torc::bitstream::DeviceInfo:

Public Member Functions

 DeviceInfo (uint32_t inTileCount, uint16_t inRowCount, uint16_t inColCount, uint32_t *inColumns)
 Basic constructor. More...
 
 DeviceInfo (uint32_t inTileCount, uint16_t inRowCount, uint16_t inColCount, const ColumnTypeVector &inColumnTypes)
 Constructor. More...
 
 DeviceInfo (void)
 Null constructor. More...
 
uint32_t getTileCount (void) const
 Returns the tile count. More...
 
uint16_t getRowCount (void) const
 Returns the row count. More...
 
uint16_t getColCount (void) const
 Returns the column count. More...
 
const ColumnTypeVectorgetColumnTypes (void) const
 Returns the column type vector. More...
 

Protected Types

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

Protected Attributes

uint32_t mTileCount
 The tile count for this device. More...
 
uint16_t mRowCount
 The row count for this device. More...
 
uint16_t mColCount
 The column count for this device. More...
 
ColumnTypeVector mColumnTypes
 The column types as applicable for the bitstream. More...
 

Detailed Description

Static device information class for Xilinx bitstreams. This class facilitates the creation of frame address maps without dependence upon torc::architecture.

Definition at line 75 of file DeviceInfo.hpp.

Member Typedef Documentation

typedef boost::uint16_t torc::bitstream::DeviceInfo::uint16_t
protected

Imported type name.

Definition at line 79 of file DeviceInfo.hpp.

typedef boost::uint32_t torc::bitstream::DeviceInfo::uint32_t
protected

Imported type name.

Definition at line 78 of file DeviceInfo.hpp.

Constructor & Destructor Documentation

torc::bitstream::DeviceInfo::DeviceInfo ( uint32_t  inTileCount,
uint16_t  inRowCount,
uint16_t  inColCount,
uint32_t inColumns 
)
inline

Basic constructor.

Definition at line 93 of file DeviceInfo.hpp.

94  : mTileCount(inTileCount), mRowCount(inRowCount),
95  mColCount(inColCount) {
96  while(true) {
97  uint32_t type = *inColumns++;
98  if(type == static_cast<uint32_t>(-1)) break;
99  mColumnTypes.push_back(type);
100  }
101  }
ColumnTypeVector mColumnTypes
The column types as applicable for the bitstream.
Definition: DeviceInfo.hpp:89
uint16_t mRowCount
The row count for this device.
Definition: DeviceInfo.hpp:85
uint32_t mTileCount
The tile count for this device.
Definition: DeviceInfo.hpp:82
uint16_t mColCount
The column count for this device.
Definition: DeviceInfo.hpp:87
boost::uint32_t uint32_t
Imported type name.
Definition: DeviceInfo.hpp:78
torc::bitstream::DeviceInfo::DeviceInfo ( uint32_t  inTileCount,
uint16_t  inRowCount,
uint16_t  inColCount,
const ColumnTypeVector inColumnTypes 
)
inline

Constructor.

Definition at line 103 of file DeviceInfo.hpp.

104  : mTileCount(inTileCount), mRowCount(inRowCount),
105  mColCount(inColCount), mColumnTypes(inColumnTypes) {}
ColumnTypeVector mColumnTypes
The column types as applicable for the bitstream.
Definition: DeviceInfo.hpp:89
uint16_t mRowCount
The row count for this device.
Definition: DeviceInfo.hpp:85
uint32_t mTileCount
The tile count for this device.
Definition: DeviceInfo.hpp:82
uint16_t mColCount
The column count for this device.
Definition: DeviceInfo.hpp:87
torc::bitstream::DeviceInfo::DeviceInfo ( void  )
inline

Null constructor.

Definition at line 107 of file DeviceInfo.hpp.

107 {}

Member Function Documentation

uint16_t torc::bitstream::DeviceInfo::getColCount ( void  ) const
inline

Returns the column count.

Definition at line 114 of file DeviceInfo.hpp.

114 { return mColCount; }
uint16_t mColCount
The column count for this device.
Definition: DeviceInfo.hpp:87

+ Here is the caller graph for this function:

const ColumnTypeVector& torc::bitstream::DeviceInfo::getColumnTypes ( void  ) const
inline

Returns the column type vector.

Definition at line 116 of file DeviceInfo.hpp.

116 { return mColumnTypes; }
ColumnTypeVector mColumnTypes
The column types as applicable for the bitstream.
Definition: DeviceInfo.hpp:89

+ Here is the caller graph for this function:

uint16_t torc::bitstream::DeviceInfo::getRowCount ( void  ) const
inline

Returns the row count.

Definition at line 112 of file DeviceInfo.hpp.

112 { return mRowCount; }
uint16_t mRowCount
The row count for this device.
Definition: DeviceInfo.hpp:85

+ Here is the caller graph for this function:

uint32_t torc::bitstream::DeviceInfo::getTileCount ( void  ) const
inline

Returns the tile count.

Definition at line 110 of file DeviceInfo.hpp.

110 { return mTileCount; }
uint32_t mTileCount
The tile count for this device.
Definition: DeviceInfo.hpp:82

+ Here is the caller graph for this function:

Field Documentation

uint16_t torc::bitstream::DeviceInfo::mColCount
protected

The column count for this device.

Definition at line 87 of file DeviceInfo.hpp.

ColumnTypeVector torc::bitstream::DeviceInfo::mColumnTypes
protected

The column types as applicable for the bitstream.

Definition at line 89 of file DeviceInfo.hpp.

uint16_t torc::bitstream::DeviceInfo::mRowCount
protected

The row count for this device.

These are regular tile rows, not bitstream clock region rows.

Definition at line 85 of file DeviceInfo.hpp.

uint32_t torc::bitstream::DeviceInfo::mTileCount
protected

The tile count for this device.

Definition at line 82 of file DeviceInfo.hpp.


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