19 #include <boost/test/unit_test.hpp>
24 #include <boost/pointer_cast.hpp>
27 namespace architecture {
29 BOOST_AUTO_TEST_SUITE(architecture)
50 BOOST_CHECK_EQUAL(architectureInstancePinPtr->getTileIndex(),
xilinx::TileIndex(0));
51 BOOST_CHECK_EQUAL(architectureInstancePinPtr->getWireIndex(),
xilinx::WireIndex(0));
55 Tilewire& tilewire = architectureInstancePinPtr->getTilewire();
59 BOOST_REQUIRE_EQUAL(
sizeof(*physicalInstancePin2Ptr),
sizeof(*architectureInstancePinPtr));
62 BOOST_AUTO_TEST_SUITE_END()
Encapsulation of a tile index in an unsigned 32-bit integer.
BOOST_AUTO_TEST_CASE(ArcUnitTest)
Unit test for the Arc class.
Encapsulation of a wire index in an unsigned 16-bit integer.
boost::shared_ptr< class InstancePin > InstancePinSharedPtr
Shared pointer encapsulation of an InstancePin.
Encapsulation of a device tile and wire pair.
Header for the InstancePin class.
static InstanceSharedPtr newInstancePtr(const string &inName, const string &inType, const string &inTile, const string &inSite, EInstanceBonding inBonding=eInstanceBondingUnknown, InstanceReferenceSharedPtr inInstanceReferencePtr=InstanceReferenceSharedPtr())
Construct and return a new Instance shared pointer.
Physical design instance-pin pair, suitable for specifying a net endpoint.
boost::shared_ptr< Instance > InstanceSharedPtr
Shared pointer encapsulation of an Instance.
#define INSTANCE_PIN_PHYSICAL_TO_ARCHITECTURE(x)
Reinterpret the given torc::physical::InstancePinSharedPtr as a torc::architecture::InstancePinShared...
Physical design instance-pin pair, suitable for specifying a net endpoint.
static InstancePinSharedPtr newInstancePinPtr(InstanceSharedPtr inInstancePtr, const string &inPinName)
Construct and return a new InstancePin shared pointer.
#define INSTANCE_PIN_ARCHITECTURE_TO_PHYSICAL(x)
Reinterpret the given torc::architecture::InstancePinSharedPtr as a torc::physical::InstancePinShared...
Header for the Factory class.
Header for the InstancePin class.
boost::shared_ptr< InstancePin > InstancePinSharedPtr
Shared pointer encapsulation of an InstancePin.
Device database types for Xilinx architectures.