19 #include <boost/test/unit_test.hpp>
27 BOOST_AUTO_TEST_SUITE(packer)
32 using namespace torc::architecture;
39 typedef std::map<std::string, PrimitiveStructureSharedPtr> PrimitiveStructuresSharedPtrMap;
40 PrimitiveStructuresSharedPtrMap primitiveStructures;
43 PrimitiveDefArray& primitiveDefs = sites.getSiteTypes();
44 PrimitiveDefArray::const_iterator p = primitiveDefs.
begin();
45 PrimitiveDefArray::const_iterator e = primitiveDefs.end();
50 = primitiveStructurePtr->getPrimitiveDefPtr();
53 primitiveStructures[primitiveDefName] = primitiveStructurePtr;
58 PrimitiveStructuresSharedPtrMap::iterator psp = primitiveStructures.begin();
59 PrimitiveStructuresSharedPtrMap::iterator pse = primitiveStructures.end();
64 (void) primitiveStructurePtr;
73 BOOST_AUTO_TEST_SUITE_END()
Device database, including complete wiring and logic support.
Encapsulation of primitive site definition, with associated connections, elements, and pins.
const Sites & getSites(void) const
Returns a constant reference to the family and device site data.
Header for the Virtex2PrimitiveStructure class.
Site type and population data for the family and the device.
Subclass of PrimitiveStructure for Virtex2 and Virtex2P.
BOOST_AUTO_TEST_CASE(PrimitiveStructureUnitTest)
Unit test for the PrimitiveStructure class.
T * begin(void)
Returns the non-constant begin iterator.
boost::shared_ptr< PrimitiveStructure > PrimitiveStructureSharedPtr
Shared pointer encapsulation of a PrimitiveStructure.
Header for the DDB class.
Encapsulation of a static array.
const string & getName(void) const
Returns the name of the primitive.