19 #include <boost/test/unit_test.hpp>
36 BOOST_AUTO_TEST_SUITE(router)
53 BOOST_MESSAGE(
"ROUTE CALL");
54 std::cout << net.
routeNodes().size() << std::endl;
57 std::cout << t << std::endl;
58 BOOST_MESSAGE(
"ROUTE FINISHED");
59 std::cout << net.
routeNodes().size() << std::endl;
64 for (
unsigned int i = 0; i < v.size(); i++) {
68 ewi = v[i]->getSourceTilewire();
70 ewi = v[i]->getSinkTilewire();
71 std::cout << ewi.
mWireName <<
"," << std::endl;
76 BOOST_AUTO_TEST_SUITE_END()
std::vector< RouteNode * > RouteNodePtrVector
Vector of RouteNode pointers.
Device database, including complete wiring and logic support.
const char * mWireName
The wire name.
Header for the RouteNode class.
boost::unordered_map< boost::uint32_t, boost::any > mProperties
Net annotation structure.
RouteNodePtrVector & routeNodes()
Returns a reference to the RouteNodePtrVector.
const char * mTileName
The tile name.
Encapsulation of a device tile and wire pair.
Header for the Heuristic class.
Verbose encapsulation of a wire's information.
Tilewire lookupTilewire(const std::string &inTileName, const std::string &inWireName)
Returns the tilewire for the specified tile and wire names.
Provides net routing based on the Nillson graphsearch algorithm.
Header for the ExtendedWireInfo class.
Provides net routing based on the Nilsson graphsearch algorithm.
void addSource(Tilewire inTilewire)
Adds the given Tilewire as a source for this net.
Provides the interface for net routers.
Abstract class for a net router.
Header for the DDB class.
void route(RouteNet &inNet)
Primary route call.
Header for the NetRouter class.
BOOST_AUTO_TEST_CASE(NetRouterHeuristicT)
Unit test for the Heuristic.
void addSink(Tilewire inTilewire)
Adds the given Tilewire as a sink for this net.
Header for the Net class.