19 #include <boost/test/unit_test.hpp>
46 BOOST_MESSAGE(
"CONSTRUCT");
68 BOOST_AUTO_TEST_SUITE(router)
70 BOOST_FIXTURE_TEST_SUITE(TraceT, TraceUnitTestFixture)
74 BOOST_CHECK_EQUAL(trace.
getSources().size(), 1u);
75 BOOST_CHECK_EQUAL(trace.
getSinks().size(), 2u);
77 BOOST_CHECK_EQUAL(trace.
getArcs().size(), 9u);
82 BOOST_CHECK_EQUAL(trace.
getSources().size(), 0u);
83 BOOST_CHECK_EQUAL(trace.
getSinks().size(), 1u);
85 BOOST_CHECK_EQUAL(trace.
getArcs().size(), 4u);
90 BOOST_CHECK_EQUAL(trace.
getSources().size(), 0u);
91 BOOST_CHECK_EQUAL(trace.
getSinks().size(), 1u);
93 BOOST_CHECK_EQUAL(trace.
getArcs().size(), 6u);
98 BOOST_CHECK_EQUAL(trace.
getSources().size(), 1u);
99 BOOST_CHECK_EQUAL(trace.
getSinks().size(), 0u);
101 BOOST_CHECK_EQUAL(trace.
getArcs().size(), 3u);
106 BOOST_CHECK_EQUAL(trace.
getSources().size(), 0u);
107 BOOST_CHECK_EQUAL(trace.
getSinks().size(), 1u);
109 BOOST_CHECK_EQUAL(trace.
getArcs().size(), 6u);
112 BOOST_AUTO_TEST_SUITE_END()
114 BOOST_AUTO_TEST_SUITE_END()
TraceNodePtrVector & getSources()
Get trace source nodes.
Device database, including complete wiring and logic support.
Arc tilePipToArc(const std::string &inTileName, const std::string &inSourceWireName, const std::string &inSinkWireName)
Returns the arc for the specified pip tile and wires.
Header for the DirectoryTree class.
ArcUsage & getArcUsage(void)
Returns a constant reference to the design arc usage.
uint32_t getArcUsageCount(void) const
Returns the number of arcs in use.
void useArc(const Arc &inArc)
Marks the arc and all of its source and sink segment wires as used.
TraceNodePtrVector & getBranchPoints()
Get trace branch point nodes.
architecture::Tilewire twSink2
Header for Boost.Test helper functions.
ArcVector & getArcs()
Get all Arcs found during the trace.
Provides path extraction from usage information in a DDB instance..
Encapsulation of a device tile and wire pair.
architecture::Tilewire twMid
Header for torc::physical output stream helpers.
Header for the Trace class.
Tilewire lookupTilewire(const std::string &inTileName, const std::string &inWireName)
Returns the tilewire for the specified tile and wire names.
architecture::Tilewire twSource
Header for the DDB class.
architecture::Tilewire twSink1
BOOST_AUTO_TEST_CASE(NetRouterHeuristicT)
Unit test for the Heuristic.
Header for the XdlImporter class.
TraceNodePtrVector & getSinks()
Get trace sink nodes.