33 #ifndef GENERATE_STATIC_DEVICE_INFO
48 using namespace torc::common;
84 typedef std::map<TileTypeIndex, std::string> TileTypeIndexToName;
85 typedef std::map<std::string, TileTypeIndex> TileTypeNameToIndex;
86 TileTypeIndexToName tileTypeIndexToName;
87 TileTypeNameToIndex tileTypeNameToIndex;
89 for(TileTypeIndex tileTypeIndex(0); tileTypeIndex < tileTypeCount; tileTypeIndex++) {
91 tileTypeIndexToName[tileTypeIndex] = tileTypeName;
92 tileTypeNameToIndex[tileTypeName] = tileTypeIndex;
99 columnTypes.resize(colCount);
102 for(TileCol col; col < colCount; col++) {
105 TileTypeIndexToColumnType::iterator ttwp = ttwe;
106 for(TileRow row; row < rowCount; row++) {
118 columnTypes[col] =
static_cast<EColumnType>(ttwp->second);
124 if(blockType == 2)
break;
129 std::fstream tilemapStream(generatedMap.string().c_str(), std::ios::out);
130 for(TileRow row; row < rowCount; row++) {
131 for(TileCol col; col < colCount; col++) {
136 if(col + 1 < colCount) tilemapStream <<
",";
138 tilemapStream << std::endl;
140 tilemapStream.close();
143 setDeviceInfo(DeviceInfo(tileCount, rowCount, colCount, columnTypes));
ColumnDefVector mColumnDefs
Column type widths.
Encapsulation of a tile row in an unsigned 16-bit integer.
TileTypeNameToColumnType mTileTypeNameToColumnType
Encapsulation of a tile column in an unsigned 16-bit integer.
Device database, including complete wiring and logic support.
TileTypeCount getTileTypeCount(void) const
Returns the tile type count for this device.
TileRow getRowCount(void) const
Returns the row count for this device.
Header for the Virtex2P class.
Header for the DirectoryTree class.
const TileInfo & getTileInfo(TileIndex inTileIndex) const
Returns the TileInfo object for the specified tile.
TileTypeIndexToColumnType mTileTypeIndexToColumnType
TileCount getTileCount(void) const
Returns the tile count for this device.
EDevice mDevice
Bitstream device enumeration.
Tile map, tile type, and wire information for the family and device.
Encapsulation of a tile count in an unsigned 32-bit integer.
Encapsulation of a tile within a device tile map.
const char * getTileTypeName(TileTypeIndex inTileTypeIndex) const
Returns the tile type name for the given tile type index.
virtual void initializeDeviceInfo(const std::string &inDeviceName)
Initialize the device information.
boost::filesystem::path path
const TileTypeIndex & getTypeIndex(void) const
Returns the tile type index for this tile.
static const boost::filesystem::path & getWorkingPath(void)
Returns the absolute path to the working directory.
Encapsulation of a tile type count in an unsigned 16-bit integer.
TileCol getColCount(void) const
Returns the column count for this device.
Encapsulation of a tile type index in an unsigned 16-bit integer.
boost::uint16_t uint16_t
Imported type name.
boost::uint32_t uint32_t
Imported type name.
Header for the DDB class.
EColumnType
Major column types.
void setDeviceInfo(const DeviceInfo &rhs)
Assign static device information for the current bitstream.
TileIndex getTileIndex(TileRow inRow, TileCol inCol) const
Returns the tile index for the given [row,column] pair.
Device database types for Xilinx architectures.