19 #include <boost/test/unit_test.hpp>
30 namespace architecture {
32 BOOST_AUTO_TEST_SUITE(architecture)
34 using namespace torc::architecture::xilinx;
36 void testDevice(const std::
string& inDeviceName);
48 DDB ddb(inDeviceName);
60 std::map<TileTypeIndex, int> tileTypeMap;
63 for(
TileIndex tileIndex; tileIndex < tileCount; tileIndex++) {
67 tileTypeMap[tileTypeIndex] = 0;
70 std::cout << tileTypeMap.size() <<
" tile types" << std::endl;
74 std::map<std::string, int> siteTypeMap;
77 for(
SiteIndex siteIndex; siteIndex < siteCount; siteIndex++) {
80 siteTypeMap[siteTypeName] = 0;
83 std::cout << siteTypeMap.size() <<
" site types" << std::endl;
90 torc::common::DeviceVector::const_iterator dp = devices.begin();
91 torc::common::DeviceVector::const_iterator de = devices.end();
94 if(device.empty())
break;
99 BOOST_AUTO_TEST_SUITE_END()
SiteCount getSiteCount(void) const
Returns the site count for this device.
Encapsulation of a tile index in an unsigned 32-bit integer.
const string & getDeviceName(void) const
Returns the device name.
const PrimitiveDef * getPrimitiveDefPtr(void) const
Returns a pointer to the associated primitive definition.
Device database, including complete wiring and logic support.
BOOST_AUTO_TEST_CASE(ArcUnitTest)
Unit test for the Arc class.
const Tiles & getTiles(void) const
Returns a constant reference to the family and device tile data.
const TileInfo & getTileInfo(TileIndex inTileIndex) const
Returns the TileInfo object for the specified tile.
Header for the Sites class.
Encapsulation of a site count in an unsigned 32-bit integer.
Header for the DDBStreamHelper class.
void testDevice(const std::string &inDeviceName)
TileCount getTileCount(void) const
Returns the tile count for this device.
const Sites & getSites(void) const
Returns a constant reference to the family and device site data.
Header for torc::physical output stream helpers.
Encapsulation of a device logic site.
Site type and population data for the family and the device.
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.
Header for the Devices class.
const TileTypeIndex & getTypeIndex(void) const
Returns the tile type index for this tile.
const Site & getSite(SiteIndex inSiteIndex) const
Returns the site for the specified index.
Header for the Array class.
Encapsulation of a site index in an unsigned 32-bit integer.
Encapsulation of a tile type index in an unsigned 16-bit integer.
Header for the DDB class.
std::vector< std::string > DeviceVector
Vector of device names.
static const DeviceVector & getUnitTestDevices(void)
Returns a subset of devices for unit tests.
const string & getName(void) const
Returns the name of the primitive.
Device database types for Xilinx architectures.