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

Public Member Functions

 TraceVirtexTristateTestFixture ()
 
 ~TraceVirtexTristateTestFixture ()
 

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 sourceTw1
 
architecture::Tilewire sourceTw2
 

Detailed Description

Definition at line 106 of file TraceRegressionTest.cpp.

Constructor & Destructor Documentation

torc::router::TraceVirtexTristateTestFixture::TraceVirtexTristateTestFixture ( )
inline

Definition at line 120 of file TraceRegressionTest.cpp.

120  : argc(boost::unit_test::framework::master_test_suite().argc),
121  argv(boost::unit_test::framework::master_test_suite().argv),
122  directoryTree(argv[0]),
123  testPath(directoryTree.getExecutablePath() / "regression"),
124  referencePath(testPath / "TraceRegressionTest.VirtexTbuf.xdl"),
125  fileStream(referencePath.string().c_str())
126  //importer(fileStream, referencePath.string()),
127  //ddbPtr(importer.releaseDDBPtr()),
128  //tracer(*ddbPtr)
129  {
130  BOOST_REQUIRE(argc >= 1);
131  BOOST_REQUIRE(fileStream.good());
132  importer(fileStream, referencePath.string());
134  BOOST_REQUIRE(designPtr.get() != 0);
136  BOOST_REQUIRE(ddbPtr != 0);
137 
138  BOOST_CHECK_EQUAL(designPtr->getNetCount(), 1u);
139  BOOST_CHECK_EQUAL(ddbPtr->getArcUsage().getArcUsageCount(), 34u); //33 without bidir
140 
141  sourceTw1 = ddbPtr->lookupTilewire("R7C14", "TBUF_OUT0");
142  sourceTw2 = ddbPtr->lookupTilewire("R7C18", "TBUF_OUT0");
143 
144  architecture::Tilewire tempTw;
145  tempTw = ddbPtr->lookupTilewire("R7C14", "S0_F_B1");
146  sinkCounts.insert(std::pair<architecture::Tilewire, int>(tempTw, 0));
147  tempTw = ddbPtr->lookupTilewire("R7C14", "S1_F_B1");
148  sinkCounts.insert(std::pair<architecture::Tilewire, int>(tempTw, 0));
149  tempTw = ddbPtr->lookupTilewire("R7C14", "S1_G_B1");
150  sinkCounts.insert(std::pair<architecture::Tilewire, int>(tempTw, 0));
151  tempTw = ddbPtr->lookupTilewire("R7C14", "S0_G_B1");
152  sinkCounts.insert(std::pair<architecture::Tilewire, int>(tempTw, 0));
153  tempTw = ddbPtr->lookupTilewire("R7C18", "S1_G_B1");
154  sinkCounts.insert(std::pair<architecture::Tilewire, int>(tempTw, 0));
155  tempTw = ddbPtr->lookupTilewire("R7C18", "S0_F_B1");
156  sinkCounts.insert(std::pair<architecture::Tilewire, int>(tempTw, 0));
157  tempTw = ddbPtr->lookupTilewire("R7C18", "S1_F_B1");
158  sinkCounts.insert(std::pair<architecture::Tilewire, int>(tempTw, 0));
159  }
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...
std::map< architecture::Tilewire, int > sinkCounts
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::TraceVirtexTristateTestFixture::~TraceVirtexTristateTestFixture ( )
inline

Definition at line 160 of file TraceRegressionTest.cpp.

160  {
161  BOOST_CHECK_EQUAL(TraceNode::sLiveNodes, 0);
162  delete ddbPtr;
163  }
static boost::int32_t sLiveNodes
Static allocation and deallocation count.
Definition: TraceNode.hpp:85

Field Documentation

int& torc::router::TraceVirtexTristateTestFixture::argc

Definition at line 107 of file TraceRegressionTest.cpp.

char**& torc::router::TraceVirtexTristateTestFixture::argv

Definition at line 108 of file TraceRegressionTest.cpp.

architecture::DDB* torc::router::TraceVirtexTristateTestFixture::ddbPtr

Definition at line 115 of file TraceRegressionTest.cpp.

torc::physical::DesignSharedPtr torc::router::TraceVirtexTristateTestFixture::designPtr

Definition at line 114 of file TraceRegressionTest.cpp.

torc::common::DirectoryTree torc::router::TraceVirtexTristateTestFixture::directoryTree

Definition at line 109 of file TraceRegressionTest.cpp.

std::fstream torc::router::TraceVirtexTristateTestFixture::fileStream

Definition at line 112 of file TraceRegressionTest.cpp.

architecture::XdlImporter torc::router::TraceVirtexTristateTestFixture::importer

Definition at line 113 of file TraceRegressionTest.cpp.

boost::filesystem::path torc::router::TraceVirtexTristateTestFixture::referencePath

Definition at line 111 of file TraceRegressionTest.cpp.

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

Definition at line 116 of file TraceRegressionTest.cpp.

architecture::Tilewire torc::router::TraceVirtexTristateTestFixture::sourceTw1

Definition at line 117 of file TraceRegressionTest.cpp.

architecture::Tilewire torc::router::TraceVirtexTristateTestFixture::sourceTw2

Definition at line 118 of file TraceRegressionTest.cpp.

boost::filesystem::path torc::router::TraceVirtexTristateTestFixture::testPath

Definition at line 110 of file TraceRegressionTest.cpp.


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