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

Verbose encapsulation of a wire's information. More...

#include <ExtendedWireInfo.hpp>

+ Collaboration diagram for torc::architecture::ExtendedWireInfo:

Public Member Functions

 ExtendedWireInfo (const DDB &inDDB)
 Basic constructor. More...
 
 ExtendedWireInfo (const DDB &inDDB, const Tilewire &inTilewire)
 Tilewire constructor. More...
 
void set (const Tilewire &inTilewire)
 Configure the extended info fields. More...
 
const Tilewireoperator= (const Tilewire &rhs)
 Assignment operator. More...
 

Data Fields

WireIndex mWireIndex
 The wire index. More...
 
const char * mWireName
 The wire name. More...
 
WireFlags mWireFlags
 The wire flags. More...
 
TileIndex mTileIndex
 The tile index. More...
 
const char * mTileName
 The tile name. More...
 
TileTypeIndex mTileTypeIndex
 The tile type index. More...
 
const char * mTileTypeName
 The tile type name. More...
 
TileRow mTileRow
 The tile row. More...
 
TileCol mTileCol
 The tile column. More...
 

Protected Types

typedef xilinx::WireIndex WireIndex
 Imported type name. More...
 
typedef xilinx::WireFlags WireFlags
 Imported type name. More...
 
typedef xilinx::TileIndex TileIndex
 Imported type name. More...
 
typedef xilinx::TileTypeIndex TileTypeIndex
 Imported type name. More...
 
typedef xilinx::TileRow TileRow
 Imported type name. More...
 
typedef xilinx::TileCol TileCol
 Imported type name. More...
 

Protected Attributes

const DDBmDDB
 The device database reference. More...
 

Detailed Description

Verbose encapsulation of a wire's information.

Definition at line 31 of file ExtendedWireInfo.hpp.

Member Typedef Documentation

Imported type name.

Definition at line 39 of file ExtendedWireInfo.hpp.

Imported type name.

Definition at line 36 of file ExtendedWireInfo.hpp.

Imported type name.

Definition at line 38 of file ExtendedWireInfo.hpp.

Imported type name.

Definition at line 37 of file ExtendedWireInfo.hpp.

Imported type name.

Definition at line 35 of file ExtendedWireInfo.hpp.

Imported type name.

Definition at line 34 of file ExtendedWireInfo.hpp.

Constructor & Destructor Documentation

torc::architecture::ExtendedWireInfo::ExtendedWireInfo ( const DDB inDDB)
inline

Basic constructor.

Definition at line 65 of file ExtendedWireInfo.hpp.

65  : mDDB(inDDB),
69  mTileRow(0), mTileCol(0) {}
const char * mTileTypeName
The tile type name.
xilinx::WireIndex WireIndex
Imported type name.
const char * mWireName
The wire name.
TileTypeIndex mTileTypeIndex
The tile type index.
const char * mTileName
The tile name.
const DDB & mDDB
The device database reference.
WireIndex mWireIndex
The wire index.
TileIndex mTileIndex
The tile index.
WireFlags mWireFlags
The wire flags.
xilinx::TileTypeIndex TileTypeIndex
Imported type name.
xilinx::TileIndex TileIndex
Imported type name.
torc::architecture::ExtendedWireInfo::ExtendedWireInfo ( const DDB inDDB,
const Tilewire inTilewire 
)
inline

Tilewire constructor.

Definition at line 71 of file ExtendedWireInfo.hpp.

71  : mDDB(inDDB) {
72  set(inTilewire);
73  }
const DDB & mDDB
The device database reference.
void set(const Tilewire &inTilewire)
Configure the extended info fields.

+ Here is the call graph for this function:

Member Function Documentation

const Tilewire& torc::architecture::ExtendedWireInfo::operator= ( const Tilewire rhs)
inline

Assignment operator.

Definition at line 79 of file ExtendedWireInfo.hpp.

79 { set(rhs); return rhs; }
void set(const Tilewire &inTilewire)
Configure the extended info fields.

+ Here is the call graph for this function:

void torc::architecture::ExtendedWireInfo::set ( const Tilewire inTilewire)

Configure the extended info fields.

Definition at line 27 of file ExtendedWireInfo.cpp.

27  {
28  // be sure to handle invalid tilewires appropriately
29  if(inTilewire.isUndefined()) {
35  mTileName = "";
36  mTileTypeName = "";
37  mWireName = "";
39  return;
40  }
41  // extract the tile and wire indexes
42  mWireIndex = inTilewire.getWireIndex();
43  mTileIndex = inTilewire.getTileIndex();
44  const Tiles& tiles = mDDB.getTiles();
45  // get information about the tile itself
46  const TileInfo& tileInfo = tiles.getTileInfo(mTileIndex);
47  mTileTypeIndex = tileInfo.getTypeIndex();
48  mTileRow = tileInfo.getRow();
49  mTileCol = tileInfo.getCol();
50 //mTileName = "";
51  mTileName = tileInfo.getName();
52  // get information about the tile type
54  // get information about the wire
55  const WireInfo& wireInfo = tiles.getWireInfo(mTileTypeIndex, mWireIndex);
56  mWireName = wireInfo.getName();
57  mWireFlags = wireInfo.getFlags();
58  }
const char * mTileTypeName
The tile type name.
xilinx::WireIndex WireIndex
Imported type name.
const Tiles & getTiles(void) const
Returns a constant reference to the family and device tile data.
Definition: DDB.hpp:146
const char * mWireName
The wire name.
const TileInfo & getTileInfo(TileIndex inTileIndex) const
Returns the TileInfo object for the specified tile.
Definition: Tiles.hpp:137
TileTypeIndex mTileTypeIndex
The tile type index.
xilinx::TileRow TileRow
Imported type name.
const char * mTileName
The tile name.
const DDB & mDDB
The device database reference.
const char * getTileTypeName(TileTypeIndex inTileTypeIndex) const
Returns the tile type name for the given tile type index.
Definition: Tiles.hpp:164
WireIndex mWireIndex
The wire index.
xilinx::TileCol TileCol
Imported type name.
TileIndex mTileIndex
The tile index.
xilinx::WireFlags WireFlags
Imported type name.
WireFlags mWireFlags
The wire flags.
xilinx::TileTypeIndex TileTypeIndex
Imported type name.
xilinx::TileIndex TileIndex
Imported type name.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

Field Documentation

const DDB& torc::architecture::ExtendedWireInfo::mDDB
protected

The device database reference.

Definition at line 42 of file ExtendedWireInfo.hpp.

TileCol torc::architecture::ExtendedWireInfo::mTileCol

The tile column.

Definition at line 62 of file ExtendedWireInfo.hpp.

TileIndex torc::architecture::ExtendedWireInfo::mTileIndex

The tile index.

Definition at line 52 of file ExtendedWireInfo.hpp.

const char* torc::architecture::ExtendedWireInfo::mTileName

The tile name.

Definition at line 54 of file ExtendedWireInfo.hpp.

TileRow torc::architecture::ExtendedWireInfo::mTileRow

The tile row.

Definition at line 60 of file ExtendedWireInfo.hpp.

TileTypeIndex torc::architecture::ExtendedWireInfo::mTileTypeIndex

The tile type index.

Definition at line 56 of file ExtendedWireInfo.hpp.

const char* torc::architecture::ExtendedWireInfo::mTileTypeName

The tile type name.

Definition at line 58 of file ExtendedWireInfo.hpp.

WireFlags torc::architecture::ExtendedWireInfo::mWireFlags

The wire flags.

Definition at line 50 of file ExtendedWireInfo.hpp.

WireIndex torc::architecture::ExtendedWireInfo::mWireIndex

The wire index.

Definition at line 46 of file ExtendedWireInfo.hpp.

const char* torc::architecture::ExtendedWireInfo::mWireName

The wire name.

Definition at line 48 of file ExtendedWireInfo.hpp.


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