19 #include <boost/test/unit_test.hpp>
29 BOOST_AUTO_TEST_SUITE(router)
57 BOOST_CHECK_EQUAL(node1->
getCost() == 74,
true);
58 BOOST_CHECK_EQUAL(node2->
getCost() == 148,
true);
64 BOOST_AUTO_TEST_SUITE_END()
Encapsulation of a tile index in an unsigned 32-bit integer.
Device database, including complete wiring and logic support.
virtual void nodeCostInitial(RouteNode &inNode)
virtual void nodeCost(RouteNode &inNode)
Calculate the node cost based on distance to the sink and path length.
Encapsulation of a wire index in an unsigned 16-bit integer.
Header for torc::physical output stream helpers.
Encapsulation of a device tile and wire pair.
Header for the Heuristic class.
Verbose encapsulation of a wire's information.
Provides net routing based on the Nillson graphsearch algorithm.
virtual void setSink(const Tilewire &inSink)
Set the current routing target.
An object that holds an arc and path information for routing.
Header for the DDB class.
BOOST_AUTO_TEST_CASE(NetRouterHeuristicT)
Unit test for the Heuristic.
const boost::int32_t getCost() const
Get the heuristic node cost.