19 #include <boost/test/unit_test.hpp>
24 using namespace torc::architecture::xilinx;
26 BOOST_AUTO_TEST_SUITE(architecture)
32 BOOST_CHECK_EQUAL((
size_t) 2,
sizeof(
WireCount));
33 BOOST_CHECK_EQUAL((
size_t) 2,
sizeof(
WireIndex));
34 BOOST_CHECK_EQUAL((
size_t) 2,
sizeof(
WireFlags));
36 BOOST_CHECK_EQUAL((
size_t) 4,
sizeof(
TileCount));
37 BOOST_CHECK_EQUAL((
size_t) 4,
sizeof(
TileIndex));
38 BOOST_CHECK_EQUAL((
size_t) 4,
sizeof(
TileOffset));
39 BOOST_CHECK_EQUAL((
size_t) 2,
sizeof(
TileRow));
40 BOOST_CHECK_EQUAL((
size_t) 2,
sizeof(
TileCol));
48 BOOST_CHECK_EQUAL((
size_t) 4,
sizeof(
SiteCount));
49 BOOST_CHECK_EQUAL((
size_t) 4,
sizeof(
SiteIndex));
50 BOOST_CHECK_EQUAL((
size_t) 2,
sizeof(
SiteFlags));
55 BOOST_CHECK_EQUAL((
size_t) 4,
sizeof(
PinCount));
56 BOOST_CHECK_EQUAL((
size_t) 4,
sizeof(
PinIndex));
57 BOOST_CHECK_EQUAL((
size_t) 2,
sizeof(
PinFlags));
60 BOOST_AUTO_TEST_SUITE_END()
Encapsulation of a tile index in an unsigned 32-bit integer.
Encapsulation of a tile row in an unsigned 16-bit integer.
Encapsulation of a tile column in an unsigned 16-bit integer.
Encapsulation of a compact segment count in an unsigned 32-bit integer.
Encapsulation of a pin count in an unsigned 32-bit integer.
Encapsulation of wire attribute flags in an unsigned 16-bit integer.
Encapsulation of a site count in an unsigned 32-bit integer.
Encapsulation of a pin 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.
Encapsulation of a tile offset in an unsigned 32-bit integer.
Encapsulation of a site type index in an unsigned 16-bit integer.
Encapsulation of a wire count in an unsigned 16-bit integer.
Encapsulation of a tile count in an unsigned 32-bit integer.
Encapsulation of pin attribute flags in an unsigned 16-bit integer.
Encapsulation of a compact segment index in an unsigned 32-bit integer.
Encapsulation of a site type count in an unsigned 16-bit integer.
Encapsulation of site attribute flags in an unsigned 16-bit integer.
Encapsulation of a tile type count in an unsigned 16-bit integer.
Encapsulation of a site index in an unsigned 32-bit integer.
Encapsulation of a tile type index in an unsigned 16-bit integer.
Device database types for Xilinx architectures.