torc-master
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
torc::router::TracerTestFixture Struct Reference
+ Collaboration diagram for torc::router::TracerTestFixture:

Public Member Functions

 TracerTestFixture ()
 
 ~TracerTestFixture ()
 

Data Fields

int & argc
 
char **& argv
 
torc::common::DirectoryTree directoryTree
 
boost::filesystem::path testPath
 
boost::filesystem::path referencePath
 
std::fstream fileStream
 
architecture::XdlImporter importer
 
torc::physical::DesignSharedPtr designPtr
 
architecture::DDBddbPtr
 
std::map
< architecture::Tilewire, int > 
sinkCounts
 
architecture::Tilewire sourceTw
 
architecture::Tilewire sourceTw2
 

Detailed Description

Definition at line 36 of file UnrouterUnitTest.cpp.

Constructor & Destructor Documentation

torc::router::TracerTestFixture::TracerTestFixture ( )
inline

Definition at line 50 of file UnrouterUnitTest.cpp.

50  : argc(boost::unit_test::framework::master_test_suite().argc),
51  argv(boost::unit_test::framework::master_test_suite().argv),
52  directoryTree(argv[0]),
53  testPath(directoryTree.getExecutablePath() / "torc" / "router"),
54  referencePath(testPath / "TracerUnitTest.xdl"),
55  fileStream(referencePath.string().c_str())
56  //importer(fileStream, referencePath.string()),
57  //ddbPtr(importer.releaseDDBPtr()),
58  //tracer(*ddbPtr)
59  {
60  BOOST_REQUIRE(argc >= 1);
61  BOOST_REQUIRE(fileStream.good());
64  BOOST_REQUIRE(designPtr.get() != 0);
66  BOOST_REQUIRE(ddbPtr != 0);
67  //tracer(*ddbPtr);
68 
69  BOOST_CHECK_EQUAL(designPtr->getNetCount(), 1u);
70  BOOST_CHECK_EQUAL(ddbPtr->getArcUsage().getArcUsageCount(), 53u);
71  //BOOST_TEST_MESSAGE("Should the pip count really include the routethrough?");
72  //BOOST_CHECK_EQUAL(ddbPtr->getArcUsage().getArcUsageCount(), 54u);
73 
74  sourceTw = ddbPtr->lookupTilewire("CLBLL_X16Y39", "L_C");
75  sourceTw2 = ddbPtr->lookupTilewire("CLBLL_X16Y39", "L_CMUX");
76 
77  architecture::Tilewire tempTw;
78  tempTw = ddbPtr->lookupTilewire("CLBLM_X13Y42", "L_D1");
79  sinkCounts.insert(std::pair<architecture::Tilewire, int>(tempTw, 0));
80  tempTw = ddbPtr->lookupTilewire("CLBLM_X18Y36", "L_A1");
81  sinkCounts.insert(std::pair<architecture::Tilewire, int>(tempTw, 0));
82  tempTw = ddbPtr->lookupTilewire("CLBLM_X18Y36", "L_D3");
83  sinkCounts.insert(std::pair<architecture::Tilewire, int>(tempTw, 0));
84  tempTw = ddbPtr->lookupTilewire("CLBLM_X13Y36", "M_B6");
85  sinkCounts.insert(std::pair<architecture::Tilewire, int>(tempTw, 0));
86  tempTw = ddbPtr->lookupTilewire("CLBLM_X13Y36", "M_C5");
87  sinkCounts.insert(std::pair<architecture::Tilewire, int>(tempTw, 0));
88  tempTw = ddbPtr->lookupTilewire("CLBLM_X13Y36", "M_D3");
89  sinkCounts.insert(std::pair<architecture::Tilewire, int>(tempTw, 0));
90  tempTw = ddbPtr->lookupTilewire("CLBLM_X13Y42", "L_D2");
91  sinkCounts.insert(std::pair<architecture::Tilewire, int>(tempTw, 0));
92  tempTw = ddbPtr->lookupTilewire("CLBLL_X16Y42", "L_A1");
93  sinkCounts.insert(std::pair<architecture::Tilewire, int>(tempTw, 0));
94  tempTw = ddbPtr->lookupTilewire("CLBLL_X16Y42", "L_CE");
95  sinkCounts.insert(std::pair<architecture::Tilewire, int>(tempTw, 0));
96  tempTw = ddbPtr->lookupTilewire("CLBLM_X18Y40", "L_BX");
97  sinkCounts.insert(std::pair<architecture::Tilewire, int>(tempTw, 0));
98  tempTw = ddbPtr->lookupTilewire("CLBLM_X18Y40", "L_B4");
99  sinkCounts.insert(std::pair<architecture::Tilewire, int>(tempTw, 0));
100  }
architecture::XdlImporter importer
torc::common::DirectoryTree directoryTree
DesignSharedPtr getDesignPtr(void)
Returns a shared pointer for the design.
architecture::Tilewire sourceTw2
DDB * releaseDDBPtr(void)
Releases ownership of the device database. The caller is now responsible for deleting it...
std::map< architecture::Tilewire, int > sinkCounts
boost::filesystem::path referencePath
boost::filesystem::path testPath
torc::physical::DesignSharedPtr designPtr
static const boost::filesystem::path & getExecutablePath(void)
Returns the absolute path to the executable directory.
architecture::Tilewire sourceTw

+ Here is the call graph for this function:

torc::router::TracerTestFixture::~TracerTestFixture ( )
inline

Definition at line 101 of file UnrouterUnitTest.cpp.

101  {
102  delete ddbPtr;
103  }

Field Documentation

int& torc::router::TracerTestFixture::argc

Definition at line 37 of file UnrouterUnitTest.cpp.

char**& torc::router::TracerTestFixture::argv

Definition at line 38 of file UnrouterUnitTest.cpp.

architecture::DDB* torc::router::TracerTestFixture::ddbPtr

Definition at line 45 of file UnrouterUnitTest.cpp.

torc::physical::DesignSharedPtr torc::router::TracerTestFixture::designPtr

Definition at line 44 of file UnrouterUnitTest.cpp.

torc::common::DirectoryTree torc::router::TracerTestFixture::directoryTree

Definition at line 39 of file UnrouterUnitTest.cpp.

std::fstream torc::router::TracerTestFixture::fileStream

Definition at line 42 of file UnrouterUnitTest.cpp.

architecture::XdlImporter torc::router::TracerTestFixture::importer

Definition at line 43 of file UnrouterUnitTest.cpp.

boost::filesystem::path torc::router::TracerTestFixture::referencePath

Definition at line 41 of file UnrouterUnitTest.cpp.

std::map<architecture::Tilewire, int> torc::router::TracerTestFixture::sinkCounts

Definition at line 46 of file UnrouterUnitTest.cpp.

architecture::Tilewire torc::router::TracerTestFixture::sourceTw

Definition at line 47 of file UnrouterUnitTest.cpp.

architecture::Tilewire torc::router::TracerTestFixture::sourceTw2

Definition at line 48 of file UnrouterUnitTest.cpp.

boost::filesystem::path torc::router::TracerTestFixture::testPath

Definition at line 40 of file UnrouterUnitTest.cpp.


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