19 #include <boost/test/unit_test.hpp>
24 namespace architecture {
27 BOOST_AUTO_TEST_SUITE(architecture)
40 BOOST_CHECK_EQUAL(
sizeof(
Tilewire), 6u);
52 BOOST_CHECK_EQUAL(tilewire1 == tilewire2,
false);
53 BOOST_CHECK_EQUAL(tilewire1 == tilewire3,
true);
71 tilewire4 = tilewire2;
72 BOOST_CHECK_EQUAL(tilewire4.getTileIndex(), tile2);
73 BOOST_CHECK_EQUAL(tilewire4.getWireIndex(), wire2);
77 BOOST_CHECK_EQUAL(tilewire1 < tilewire2,
true);
78 BOOST_CHECK_EQUAL(tilewire2 < tilewire1,
false);
79 BOOST_CHECK_EQUAL(tilewire4 < tilewire2,
false);
80 BOOST_CHECK_EQUAL(tilewire2 < tilewire4,
false);
83 BOOST_AUTO_TEST_SUITE_END()
const WireIndex & getWireIndex(void) const
Returns the wire index.
Encapsulation of a tile index in an unsigned 32-bit integer.
Encapsulation of a wire index in an unsigned 16-bit integer.
BOOST_AUTO_TEST_CASE(TilewireUnitTest)
Unit test for the Tilewire class.
Header for torc::physical output stream helpers.
Encapsulation of a device tile and wire pair.
static pod undefined(void)
Header for the Tilewire class.
void setTileIndex(const TileIndex &inTileIndex)
Sets the tile index.
const TileIndex & getTileIndex(void) const
Returns the tile index.
void setWireIndex(const WireIndex &inWireIndex)
Sets the wire index.