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

Bitstream column definition for Xilinx bitstreams. For every block type 0 through 8, this class provides the width of the specified column in minor frames. Note that in most families, block types beyond 3 or 4 are unused, and hence of zero width. More...

#include <DeviceInfo.hpp>

+ Collaboration diagram for torc::bitstream::ColumnDef:

Public Member Functions

 ColumnDef (const string &inName=string(), uint32_t in0=0, uint32_t in1=0, uint32_t in2=0, uint32_t in3=0, uint32_t in4=0, uint32_t in5=0, uint32_t in6=0, uint32_t in7=0)
 Basic constructor. More...
 
void clear (void)
 Clears all column widths. More...
 
uint32_t operator[] (int inIndex) const
 Returns the specified column width. More...
 
const stringgetName (void) const
 Returns the column type name. More...
 

Protected Types

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

Protected Attributes

string mName
 The column type name. Note that this name is not used by Xilinx, and may not directly correspond to that found in the device tile map. More...
 
uint32_t mWidth [8]
 The column width in minor frames for each of the eight block types. More...
 

Detailed Description

Bitstream column definition for Xilinx bitstreams. For every block type 0 through 8, this class provides the width of the specified column in minor frames. Note that in most families, block types beyond 3 or 4 are unused, and hence of zero width.

Definition at line 35 of file DeviceInfo.hpp.

Member Typedef Documentation

typedef std::string torc::bitstream::ColumnDef::string
protected

Imported type name.

Definition at line 39 of file DeviceInfo.hpp.

typedef boost::uint32_t torc::bitstream::ColumnDef::uint32_t
protected

Imported type name.

Definition at line 38 of file DeviceInfo.hpp.

Constructor & Destructor Documentation

torc::bitstream::ColumnDef::ColumnDef ( const string inName = string(),
uint32_t  in0 = 0,
uint32_t  in1 = 0,
uint32_t  in2 = 0,
uint32_t  in3 = 0,
uint32_t  in4 = 0,
uint32_t  in5 = 0,
uint32_t  in6 = 0,
uint32_t  in7 = 0 
)
inline

Basic constructor.

Definition at line 49 of file DeviceInfo.hpp.

51  : mName(inName) {
52  int i = 0;
53  mWidth[i++] = in0; mWidth[i++] = in1; mWidth[i++] = in2; mWidth[i++] = in3;
54  mWidth[i++] = in4; mWidth[i++] = in5; mWidth[i++] = in6; mWidth[i++] = in7;
55  }
uint32_t mWidth[8]
The column width in minor frames for each of the eight block types.
Definition: DeviceInfo.hpp:45
string mName
The column type name. Note that this name is not used by Xilinx, and may not directly correspond to ...
Definition: DeviceInfo.hpp:43

Member Function Documentation

void torc::bitstream::ColumnDef::clear ( void  )
inline

Clears all column widths.

Definition at line 58 of file DeviceInfo.hpp.

58 { for(int i = 0; i < 8; i++) mWidth[i] = 0; }
uint32_t mWidth[8]
The column width in minor frames for each of the eight block types.
Definition: DeviceInfo.hpp:45
const string& torc::bitstream::ColumnDef::getName ( void  ) const
inline

Returns the column type name.

Definition at line 63 of file DeviceInfo.hpp.

63 { return mName; }
string mName
The column type name. Note that this name is not used by Xilinx, and may not directly correspond to ...
Definition: DeviceInfo.hpp:43
uint32_t torc::bitstream::ColumnDef::operator[] ( int  inIndex) const
inline

Returns the specified column width.

Definition at line 61 of file DeviceInfo.hpp.

61 { return mWidth[inIndex]; }
uint32_t mWidth[8]
The column width in minor frames for each of the eight block types.
Definition: DeviceInfo.hpp:45

Field Documentation

string torc::bitstream::ColumnDef::mName
protected

The column type name. Note that this name is not used by Xilinx, and may not directly correspond to that found in the device tile map.

Definition at line 43 of file DeviceInfo.hpp.

uint32_t torc::bitstream::ColumnDef::mWidth[8]
protected

The column width in minor frames for each of the eight block types.

Definition at line 45 of file DeviceInfo.hpp.


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