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

Public Member Functions

 TraceVirtex5TestFixture ()
 
 ~TraceVirtex5TestFixture ()
 

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 TraceRegressionTest.cpp.

Constructor & Destructor Documentation

torc::router::TraceVirtex5TestFixture::TraceVirtex5TestFixture ( )
inline

Definition at line 50 of file TraceRegressionTest.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() / "regression"),
54  referencePath(testPath / "TraceRegressionTest.Virtex5.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 
68  BOOST_CHECK_EQUAL(designPtr->getNetCount(), 1u);
69  BOOST_CHECK_EQUAL(ddbPtr->getArcUsage().getArcUsageCount(), 53u);
70  BOOST_TEST_MESSAGE("The pip count should include the routethrough.");
71  BOOST_CHECK_EQUAL(ddbPtr->getArcUsage().getArcUsageCount(), 54u);
72 
73  sourceTw = ddbPtr->lookupTilewire("CLBLL_X16Y39", "L_C");
74  sourceTw2 = ddbPtr->lookupTilewire("CLBLL_X16Y39", "L_CMUX");
75 
76  architecture::Tilewire tempTw;
77  tempTw = ddbPtr->lookupTilewire("CLBLM_X13Y42", "L_D1");
78  sinkCounts.insert(std::pair<architecture::Tilewire, int>(tempTw, 0));
79  tempTw = ddbPtr->lookupTilewire("CLBLM_X18Y36", "L_A1");
80  sinkCounts.insert(std::pair<architecture::Tilewire, int>(tempTw, 0));
81  tempTw = ddbPtr->lookupTilewire("CLBLM_X18Y36", "L_D3");
82  sinkCounts.insert(std::pair<architecture::Tilewire, int>(tempTw, 0));
83  tempTw = ddbPtr->lookupTilewire("CLBLM_X13Y36", "M_B6");
84  sinkCounts.insert(std::pair<architecture::Tilewire, int>(tempTw, 0));
85  tempTw = ddbPtr->lookupTilewire("CLBLM_X13Y36", "M_C5");
86  sinkCounts.insert(std::pair<architecture::Tilewire, int>(tempTw, 0));
87  tempTw = ddbPtr->lookupTilewire("CLBLM_X13Y36", "M_D3");
88  sinkCounts.insert(std::pair<architecture::Tilewire, int>(tempTw, 0));
89  tempTw = ddbPtr->lookupTilewire("CLBLM_X13Y42", "L_D2");
90  sinkCounts.insert(std::pair<architecture::Tilewire, int>(tempTw, 0));
91  tempTw = ddbPtr->lookupTilewire("CLBLL_X16Y42", "L_A1");
92  sinkCounts.insert(std::pair<architecture::Tilewire, int>(tempTw, 0));
93  tempTw = ddbPtr->lookupTilewire("CLBLL_X16Y42", "L_CE");
94  sinkCounts.insert(std::pair<architecture::Tilewire, int>(tempTw, 0));
95  tempTw = ddbPtr->lookupTilewire("CLBLM_X18Y40", "L_BX");
96  sinkCounts.insert(std::pair<architecture::Tilewire, int>(tempTw, 0));
97  tempTw = ddbPtr->lookupTilewire("CLBLM_X18Y40", "L_B4");
98  sinkCounts.insert(std::pair<architecture::Tilewire, int>(tempTw, 0));
99  }
torc::physical::DesignSharedPtr designPtr
std::map< architecture::Tilewire, int > sinkCounts
DesignSharedPtr getDesignPtr(void)
Returns a shared pointer for the design.
DDB * releaseDDBPtr(void)
Releases ownership of the device database. The caller is now responsible for deleting it...
torc::common::DirectoryTree directoryTree
static const boost::filesystem::path & getExecutablePath(void)
Returns the absolute path to the executable directory.

+ Here is the call graph for this function:

torc::router::TraceVirtex5TestFixture::~TraceVirtex5TestFixture ( )
inline

Definition at line 100 of file TraceRegressionTest.cpp.

100  {
101  BOOST_CHECK_EQUAL(TraceNode::sLiveNodes, 0);
102  delete ddbPtr;
103  }
static boost::int32_t sLiveNodes
Static allocation and deallocation count.
Definition: TraceNode.hpp:85

Field Documentation

int& torc::router::TraceVirtex5TestFixture::argc

Definition at line 37 of file TraceRegressionTest.cpp.

char**& torc::router::TraceVirtex5TestFixture::argv

Definition at line 38 of file TraceRegressionTest.cpp.

architecture::DDB* torc::router::TraceVirtex5TestFixture::ddbPtr

Definition at line 45 of file TraceRegressionTest.cpp.

torc::physical::DesignSharedPtr torc::router::TraceVirtex5TestFixture::designPtr

Definition at line 44 of file TraceRegressionTest.cpp.

torc::common::DirectoryTree torc::router::TraceVirtex5TestFixture::directoryTree

Definition at line 39 of file TraceRegressionTest.cpp.

std::fstream torc::router::TraceVirtex5TestFixture::fileStream

Definition at line 42 of file TraceRegressionTest.cpp.

architecture::XdlImporter torc::router::TraceVirtex5TestFixture::importer

Definition at line 43 of file TraceRegressionTest.cpp.

boost::filesystem::path torc::router::TraceVirtex5TestFixture::referencePath

Definition at line 41 of file TraceRegressionTest.cpp.

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

Definition at line 46 of file TraceRegressionTest.cpp.

architecture::Tilewire torc::router::TraceVirtex5TestFixture::sourceTw

Definition at line 47 of file TraceRegressionTest.cpp.

architecture::Tilewire torc::router::TraceVirtex5TestFixture::sourceTw2

Definition at line 48 of file TraceRegressionTest.cpp.

boost::filesystem::path torc::router::TraceVirtex5TestFixture::testPath

Definition at line 40 of file TraceRegressionTest.cpp.


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