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

Public Member Functions

 TraceUnitTestFixture ()
 
 ~TraceUnitTestFixture ()
 

Data Fields

architecture::DDB ddb
 
architecture::Tilewire twSource
 
architecture::Tilewire twSink1
 
architecture::Tilewire twSink2
 
architecture::Tilewire twMid
 

Detailed Description

Definition at line 36 of file TraceUnitTest.cpp.

Constructor & Destructor Documentation

torc::router::TraceUnitTestFixture::TraceUnitTestFixture ( )
inline

Definition at line 44 of file TraceUnitTest.cpp.

44  : ddb("xc5vlx30") {
45  //tracer(*ddbPtr);
46  BOOST_MESSAGE("CONSTRUCT");
47  BOOST_MESSAGE(ddb);
48  ddb.useArc(ddb.tilePipToArc("CLBLL_X16Y42", "SITE_CTRL_B0", "L_CE"));
49  ddb.useArc(ddb.tilePipToArc("CLBLL_X16Y42", "SITE_IMUX_B5", "L_A1"));
50  ddb.useArc(ddb.tilePipToArc("INT_X16Y42", "CTRL0", "CTRL_B0"));
51  ddb.useArc(ddb.tilePipToArc("INT_X16Y42", "FAN6", "FAN_BOUNCE6"));
52  ddb.useArc(ddb.tilePipToArc("INT_X16Y42", "FAN_BOUNCE6", "GFAN1"));
53  ddb.useArc(ddb.tilePipToArc("INT_X16Y42", "GFAN1", "CTRL0"));
54  ddb.useArc(ddb.tilePipToArc("INT_X16Y42", "NL2END2", "FAN6"));
55  ddb.useArc(ddb.tilePipToArc("INT_X16Y42", "NL2END2", "IMUX_B5"));
56  ddb.useArc(ddb.tilePipToArc("INT_X16Y40", "NW2MID1", "NL2BEG2"));
57 
58  twSource = ddb.lookupTilewire("INT_X16Y40", "NW2MID1");
59  twSink1 = ddb.lookupTilewire("CLBLL_X16Y42", "L_CE");
60  twSink2 = ddb.lookupTilewire("CLBLL_X16Y42", "L_A1");
61  twMid = ddb.lookupTilewire("INT_X16Y42", "FAN_BOUNCE6");
62 
63  BOOST_CHECK_EQUAL(ddb.getArcUsage().getArcUsageCount(), 9u);
64  }
Arc tilePipToArc(const std::string &inTileName, const std::string &inSourceWireName, const std::string &inSinkWireName)
Returns the arc for the specified pip tile and wires.
Definition: DDB.hpp:243
ArcUsage & getArcUsage(void)
Returns a constant reference to the design arc usage.
Definition: DDB.hpp:148
uint32_t getArcUsageCount(void) const
Returns the number of arcs in use.
Definition: ArcUsage.hpp:228
void useArc(const Arc &inArc)
Marks the arc and all of its source and sink segment wires as used.
Definition: DDB.hpp:173
architecture::Tilewire twSink2
Tilewire lookupTilewire(const std::string &inTileName, const std::string &inWireName)
Returns the tilewire for the specified tile and wire names.
Definition: DDB.hpp:257
architecture::Tilewire twSource
architecture::Tilewire twSink1

+ Here is the call graph for this function:

torc::router::TraceUnitTestFixture::~TraceUnitTestFixture ( )
inline

Definition at line 65 of file TraceUnitTest.cpp.

65 {}

Field Documentation

architecture::DDB torc::router::TraceUnitTestFixture::ddb

Definition at line 38 of file TraceUnitTest.cpp.

architecture::Tilewire torc::router::TraceUnitTestFixture::twMid

Definition at line 42 of file TraceUnitTest.cpp.

architecture::Tilewire torc::router::TraceUnitTestFixture::twSink1

Definition at line 40 of file TraceUnitTest.cpp.

architecture::Tilewire torc::router::TraceUnitTestFixture::twSink2

Definition at line 41 of file TraceUnitTest.cpp.

architecture::Tilewire torc::router::TraceUnitTestFixture::twSource

Definition at line 39 of file TraceUnitTest.cpp.


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