19 #include <boost/test/unit_test.hpp>
27 BOOST_AUTO_TEST_SUITE(packer)
32 using namespace torc::architecture;
38 typedef std::map<std::string, PrimitiveStructureSharedPtr> PrimitiveStructuresSharedPtrMap;
39 PrimitiveStructuresSharedPtrMap primitiveStructures;
42 PrimitiveDefArray& primitiveDefs = sites.getSiteTypes();
43 PrimitiveDefArray::const_iterator p = primitiveDefs.
begin();
44 PrimitiveDefArray::const_iterator e = primitiveDefs.end();
49 = primitiveStructurePtr->getPrimitiveDefPtr();
52 primitiveStructures[primitiveDefName] = primitiveStructurePtr;
57 PrimitiveStructuresSharedPtrMap::iterator psp = primitiveStructures.begin();
58 PrimitiveStructuresSharedPtrMap::iterator pse = primitiveStructures.end();
63 (void) primitiveStructurePtr;
72 BOOST_AUTO_TEST_SUITE_END()
Device database, including complete wiring and logic support.
Encapsulation of primitive site definition, with associated connections, elements, and pins.
Header for the Virtex7PrimitiveStructure class.
const Sites & getSites(void) const
Returns a constant reference to the family and device site data.
Site type and population data for the family and the device.
Subclass of PrimitiveStructure for Virtex7.
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.