torc-master
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
torc::packer Namespace Reference

Namespaces

 architecture
 
 packer
 

Data Structures

class  PrimitiveStructure
 Encapsulation of the site index, pin name, and pin flags for a package. More...
 
class  Unpacker
 
class  Virtex2PrimitiveStructure
 Subclass of PrimitiveStructure for Virtex2 and Virtex2P. More...
 
class  Virtex5PrimitiveStructure
 Subclass of PrimitiveStructure for Virtex5. More...
 
class  Virtex7PrimitiveStructure
 Subclass of PrimitiveStructure for Virtex7. More...
 

Typedefs

typedef boost::shared_ptr
< PrimitiveStructure
PrimitiveStructureSharedPtr
 Shared pointer encapsulation of a PrimitiveStructure. More...
 

Enumerations

enum  ELogicType {
  eLogicTypeUnknown = 0, eLogicTypeLUT, eLogicTypeFlop, eLogicTypeInv,
  eLogicTypeAnd, eLogicTypeXor, eLogicTypeMux, eLogicTypeCount
}
 Enumeration of logic types. More...
 

Functions

 BOOST_AUTO_TEST_CASE (PrimitiveStructureUnitTest)
 Unit test for the PrimitiveStructure class. More...
 
 BOOST_AUTO_TEST_CASE (PrimitiveStructureInstancePinsUnitTest)
 Unit test for the PrimitiveStructure class. More...
 
 BOOST_AUTO_TEST_CASE (UnpackerUnitTest)
 Unit test for the PrimitiveStructure class. More...
 
 BOOST_AUTO_TEST_CASE (Virtex2PrimitiveStructureUnitTest)
 Unit test for the Virtex2PrimitiveStructure class. More...
 
 BOOST_AUTO_TEST_CASE (Virtex5PrimitiveStructureUnitTest)
 Unit test for the Virtex5PrimitiveStructure class. More...
 
 BOOST_AUTO_TEST_CASE (Virtex7PrimitiveStructureUnitTest)
 Unit test for the Virtex7PrimitiveStructure class. More...
 

Variables

const std::string cSliceTypeName = "SLICE"
 The type name of slice primitives. More...
 
const std::string cByInvOutUsedElementName = "BYINVOUTUSED"
 The name of the BYINVOUTUSED slice element. More...
 
const std::string cSliceLTypeName = "SLICEL"
 The type name of slice primitives. More...
 
const std::string cSliceMTypeName = "SLICEM"
 

Typedef Documentation

Shared pointer encapsulation of a PrimitiveStructure.

Definition at line 169 of file PrimitiveStructure.hpp.

Enumeration Type Documentation

Enumeration of logic types.

Enumerator
eLogicTypeUnknown 
eLogicTypeLUT 
eLogicTypeFlop 
eLogicTypeInv 
eLogicTypeAnd 
eLogicTypeXor 
eLogicTypeMux 
eLogicTypeCount 

Definition at line 38 of file PrimitiveStructure.hpp.

Function Documentation

torc::packer::BOOST_AUTO_TEST_CASE ( Virtex2PrimitiveStructureUnitTest  )

Unit test for the Virtex2PrimitiveStructure class.

Definition at line 30 of file Virtex2PrimitiveStructureUnitTest.cpp.

30  {
31 
32  using namespace torc::architecture;
33  // open and initialize a database
34 // DDB ddb("xc2vp4");
35  DDB ddb("xc2v40");
36  // look up the logic sites in the device
37  const Sites& sites = ddb.getSites();
38  // define a vector of PrimitiveStructure objects
39  typedef std::map<std::string, PrimitiveStructureSharedPtr> PrimitiveStructuresSharedPtrMap;
40  PrimitiveStructuresSharedPtrMap primitiveStructures;
41  // look up the primitive def types
42  typedef const Array<const PrimitiveDef> PrimitiveDefArray;
43  PrimitiveDefArray& primitiveDefs = sites.getSiteTypes();
44  PrimitiveDefArray::const_iterator p = primitiveDefs.begin();
45  PrimitiveDefArray::const_iterator e = primitiveDefs.end();
46  while(p < e) {
47  // create a PrimitiveStructure object for this PrimitiveDef
48  PrimitiveStructureSharedPtr primitiveStructurePtr(new Virtex2PrimitiveStructure(&*p++));
49  const torc::architecture::PrimitiveDef* primitiveDefPtr
50  = primitiveStructurePtr->getPrimitiveDefPtr();
51  const std::string& primitiveDefName = primitiveDefPtr->getName();
52  // insert the PrimitiveStructure into the map
53  primitiveStructures[primitiveDefName] = primitiveStructurePtr;
54  }
55 
56  // iterate through the PrimitiveStructure entries in the map
57  // (just to make sure we can read out what we put in)
58  PrimitiveStructuresSharedPtrMap::iterator psp = primitiveStructures.begin();
59  PrimitiveStructuresSharedPtrMap::iterator pse = primitiveStructures.end();
60  while(psp != pse) {
61  // look up the PrimitiveDef name and the PrimitiveStructure object
62  std::string primitiveDefName = psp->first;
63  PrimitiveStructureSharedPtr primitiveStructurePtr = psp->second;
64  (void) primitiveStructurePtr;
65  //const torc::architecture::PrimitiveDef* primitiveDefPtr
66  // = primitiveStructurePtr->getPrimitiveDefPtr();
67  // std::cout << "PrimitiveDef: " << primitiveDefName << std::endl;
68  psp++;
69  }
70 
71 }
Device database, including complete wiring and logic support.
Definition: DDB.hpp:42
Encapsulation of primitive site definition, with associated connections, elements, and pins.
std::string string
Site type and population data for the family and the device.
Definition: Sites.hpp:45
const Array< const Site > & getSites(void) const
Returns the sites for this family.
Definition: Sites.hpp:127
T * begin(void)
Returns the non-constant begin iterator.
Definition: Array.hpp:95
boost::shared_ptr< PrimitiveStructure > PrimitiveStructureSharedPtr
Shared pointer encapsulation of a PrimitiveStructure.
Encapsulation of a static array.
Definition: Array.hpp:39
const string & getName(void) const
Returns the name of the primitive.

+ Here is the call graph for this function:

torc::packer::BOOST_AUTO_TEST_CASE ( Virtex5PrimitiveStructureUnitTest  )

Unit test for the Virtex5PrimitiveStructure class.

Definition at line 30 of file Virtex5PrimitiveStructureUnitTest.cpp.

30  {
31 
32  using namespace torc::architecture;
33  // open and initialize a database
34 // DDB ddb("xc2vp4");
35  DDB ddb("xc5vlx30");
36  // look up the logic sites in the device
37  const Sites& sites = ddb.getSites();
38  // define a vector of PrimitiveStructure objects
39  typedef std::map<std::string, PrimitiveStructureSharedPtr> PrimitiveStructuresSharedPtrMap;
40  PrimitiveStructuresSharedPtrMap primitiveStructures;
41  // look up the primitive def types
42  typedef const Array<const PrimitiveDef> PrimitiveDefArray;
43  PrimitiveDefArray& primitiveDefs = sites.getSiteTypes();
44  PrimitiveDefArray::const_iterator p = primitiveDefs.begin();
45  PrimitiveDefArray::const_iterator e = primitiveDefs.end();
46  while(p < e) {
47  // create a PrimitiveStructure object for this PrimitiveDef
48  PrimitiveStructureSharedPtr primitiveStructurePtr(new Virtex5PrimitiveStructure(&*p++));
49  const torc::architecture::PrimitiveDef* primitiveDefPtr
50  = primitiveStructurePtr->getPrimitiveDefPtr();
51  const std::string& primitiveDefName = primitiveDefPtr->getName();
52  // insert the PrimitiveStructure into the map
53  primitiveStructures[primitiveDefName] = primitiveStructurePtr;
54  }
55 
56  // iterate through the PrimitiveStructure entries in the map
57  // (just to make sure we can read out what we put in)
58  PrimitiveStructuresSharedPtrMap::iterator psp = primitiveStructures.begin();
59  PrimitiveStructuresSharedPtrMap::iterator pse = primitiveStructures.end();
60  while(psp != pse) {
61  // look up the PrimitiveDef name and the PrimitiveStructure object
62  std::string primitiveDefName = psp->first;
63  PrimitiveStructureSharedPtr primitiveStructurePtr = psp->second;
64  (void) primitiveStructurePtr;
65  //const torc::architecture::PrimitiveDef* primitiveDefPtr
66  // = primitiveStructurePtr->getPrimitiveDefPtr();
67  // std::cout << "PrimitiveDef: " << primitiveDefName << std::endl;
68  psp++;
69  }
70 
71 }
Device database, including complete wiring and logic support.
Definition: DDB.hpp:42
Encapsulation of primitive site definition, with associated connections, elements, and pins.
std::string string
Site type and population data for the family and the device.
Definition: Sites.hpp:45
const Array< const Site > & getSites(void) const
Returns the sites for this family.
Definition: Sites.hpp:127
T * begin(void)
Returns the non-constant begin iterator.
Definition: Array.hpp:95
boost::shared_ptr< PrimitiveStructure > PrimitiveStructureSharedPtr
Shared pointer encapsulation of a PrimitiveStructure.
Encapsulation of a static array.
Definition: Array.hpp:39
const string & getName(void) const
Returns the name of the primitive.

+ Here is the call graph for this function:

torc::packer::BOOST_AUTO_TEST_CASE ( Virtex7PrimitiveStructureUnitTest  )

Unit test for the Virtex7PrimitiveStructure class.

Definition at line 30 of file Virtex7PrimitiveStructureUnitTest.cpp.

30  {
31 
32  using namespace torc::architecture;
33  // open and initialize a database
34  DDB ddb("xc7a100t");
35  // look up the logic sites in the device
36  const Sites& sites = ddb.getSites();
37  // define a vector of PrimitiveStructure objects
38  typedef std::map<std::string, PrimitiveStructureSharedPtr> PrimitiveStructuresSharedPtrMap;
39  PrimitiveStructuresSharedPtrMap primitiveStructures;
40  // look up the primitive def types
41  typedef const Array<const PrimitiveDef> PrimitiveDefArray;
42  PrimitiveDefArray& primitiveDefs = sites.getSiteTypes();
43  PrimitiveDefArray::const_iterator p = primitiveDefs.begin();
44  PrimitiveDefArray::const_iterator e = primitiveDefs.end();
45  while(p < e) {
46  // create a PrimitiveStructure object for this PrimitiveDef
47  PrimitiveStructureSharedPtr primitiveStructurePtr(new Virtex7PrimitiveStructure(&*p++));
48  const torc::architecture::PrimitiveDef* primitiveDefPtr
49  = primitiveStructurePtr->getPrimitiveDefPtr();
50  const std::string& primitiveDefName = primitiveDefPtr->getName();
51  // insert the PrimitiveStructure into the map
52  primitiveStructures[primitiveDefName] = primitiveStructurePtr;
53  }
54 
55  // iterate through the PrimitiveStructure entries in the map
56  // (just to make sure we can read out what we put in)
57  PrimitiveStructuresSharedPtrMap::iterator psp = primitiveStructures.begin();
58  PrimitiveStructuresSharedPtrMap::iterator pse = primitiveStructures.end();
59  while(psp != pse) {
60  // look up the PrimitiveDef name and the PrimitiveStructure object
61  std::string primitiveDefName = psp->first;
62  PrimitiveStructureSharedPtr primitiveStructurePtr = psp->second;
63  (void) primitiveStructurePtr;
64  //const torc::architecture::PrimitiveDef* primitiveDefPtr
65  // = primitiveStructurePtr->getPrimitiveDefPtr();
66  // std::cout << "PrimitiveDef: " << primitiveDefName << std::endl;
67  psp++;
68  }
69 
70 }
Device database, including complete wiring and logic support.
Definition: DDB.hpp:42
Encapsulation of primitive site definition, with associated connections, elements, and pins.
std::string string
Site type and population data for the family and the device.
Definition: Sites.hpp:45
const Array< const Site > & getSites(void) const
Returns the sites for this family.
Definition: Sites.hpp:127
T * begin(void)
Returns the non-constant begin iterator.
Definition: Array.hpp:95
boost::shared_ptr< PrimitiveStructure > PrimitiveStructureSharedPtr
Shared pointer encapsulation of a PrimitiveStructure.
Encapsulation of a static array.
Definition: Array.hpp:39
const string & getName(void) const
Returns the name of the primitive.

+ Here is the call graph for this function:

torc::packer::BOOST_AUTO_TEST_CASE ( PrimitiveStructureUnitTest  )

Unit test for the PrimitiveStructure class.

Definition at line 35 of file PrimitiveStructureUnitTest.cpp.

35  {
36 
37  using namespace torc::architecture;
38  // open and initialize a database
39 // DDB ddb("xc7v285t");
40 // DDB ddb("xc6vlx75t");
41  DDB ddb("xc5vlx30");
42 // DDB ddb("xc4vlx15");
43 // DDB ddb("xc2vp4");
44 // DDB ddb("xc2v40");
45 // DDB ddb("xcv50e");
46 // DDB ddb("xcv50");
47  // look up the logic sites in the device
48  const Sites& sites = ddb.getSites();
49  // define a vector of PrimitiveStructure objects
50  typedef std::map<std::string, PrimitiveStructureSharedPtr> PrimitiveStructuresSharedPtrMap;
51  PrimitiveStructuresSharedPtrMap primitiveStructures;
52  // look up the primitive def types
53  typedef const Array<const PrimitiveDef> PrimitiveDefArray;
54  PrimitiveDefArray& primitiveDefs = sites.getSiteTypes();
55  PrimitiveDefArray::const_iterator p = primitiveDefs.begin();
56  PrimitiveDefArray::const_iterator e = primitiveDefs.end();
57  while(p < e) {
58  // create a PrimitiveStructure object for this PrimitiveDef
59  PrimitiveStructureSharedPtr primitiveStructurePtr(new PrimitiveStructure(&*p++));
60  const torc::architecture::PrimitiveDef* primitiveDefPtr
61  = primitiveStructurePtr->getPrimitiveDefPtr();
62  const std::string& primitiveDefName = primitiveDefPtr->getName();
63  // insert the PrimitiveStructure into the map
64  primitiveStructures[primitiveDefName] = primitiveStructurePtr;
65  }
66 
67  // iterate through the PrimitiveStructure entries in the map
68  // (just to make sure we can read out what we put in)
69  PrimitiveStructuresSharedPtrMap::iterator psp = primitiveStructures.begin();
70  PrimitiveStructuresSharedPtrMap::iterator pse = primitiveStructures.end();
71  while(psp != pse) {
72  // look up the PrimitiveDef name and the PrimitiveStructure object
73  std::string primitiveDefName = psp->first;
74  PrimitiveStructureSharedPtr primitiveStructurePtr = psp->second;
75  (void) primitiveStructurePtr;
76  // const torc::architecture::PrimitiveDef* primitiveDefPtr
77  // = primitiveStructurePtr->getPrimitiveDefPtr();
78  // std::cout << "PrimitiveDef: " << primitiveDefName << std::endl;
79  psp++;
80  }
81 
82 }
Device database, including complete wiring and logic support.
Definition: DDB.hpp:42
Encapsulation of primitive site definition, with associated connections, elements, and pins.
std::string string
Site type and population data for the family and the device.
Definition: Sites.hpp:45
const Array< const Site > & getSites(void) const
Returns the sites for this family.
Definition: Sites.hpp:127
T * begin(void)
Returns the non-constant begin iterator.
Definition: Array.hpp:95
boost::shared_ptr< PrimitiveStructure > PrimitiveStructureSharedPtr
Shared pointer encapsulation of a PrimitiveStructure.
Encapsulation of a static array.
Definition: Array.hpp:39
const string & getName(void) const
Returns the name of the primitive.

+ Here is the call graph for this function:

torc::packer::BOOST_AUTO_TEST_CASE ( UnpackerUnitTest  )

Unit test for the PrimitiveStructure class.

Definition at line 39 of file UnpackerUnitTest.cpp.

39  {
40 
41  std::string xdls[] = {
42  "torc/router/TraceRegressionTest.Virtex5.xdl",
43  "",
44  "torc/router/PathFinderRouter/PathFinderRegression.Virtex5.Test1.xdl",
45  "regression/PathFinderRegression.Virtex5.Test1.xdl",
46  "system.xdl",
47  "regression/cae_fpga_routed.xdl",
48  "regression/counter.xdl",
49  "regression/DesignUnitTest.reference.xdl",
50  "regression/PathFinderRegression.Virtex5.Test1.xdl",
51  "regression/TraceRegressionTest.Virtex5.xdl",
52  "regression/TraceRegressionTest.VirtexTbuf.xdl",
53  "regression/TraceVirtex5Test.xdl",
54  "regression/Virtex5UnitTest.reference.xdl",
55  "regression/a.xdl",
56  "regression/audio_test.xdl",
57  "regression/bitstreamTest.xdl",
58  "regression/blinker.xdl",
59  "regression/collatz1.xdl",
60  "regression/config_with_trailing_embedded_newline.xdl",
61  "regression/counter.xdl",
62  "regression/fullroutetest3_noio.xdl",
63  "regression/hardnets.xdl",
64  "regression/input.xdl",
65  "regression/loop154@24816_1_test0.xdl",
66  "regression/loop154@24816_1_test1.xdl",
67  "regression/minimips.xdl",
68  "regression/neil.xdl",
69  "regression/path276@24816_16.xdl",
70  "regression/pathfindertest1.xdl",
71  "regression/pathfindertest1_constrained.xdl",
72  "regression/pathfindertest1_onenet.xdl",
73  "regression/pathfindertest2.xdl",
74  "regression/powerandglobal.xdl",
75  "regression/prng_v0.xdl",
76  "regression/rfft.par.xdl",
77  "regression/routingtest1.xdl",
78  "regression/test.xdl",
79  "regression/test_noroute.xdl",
80  "regression/testsys_nopips.xdl",
81 // "regression/testsystem.xdl",
82  "regression/top_map.xdl",
83  "regression/twonet.xdl",
84 // "regression/xc5vlx30ff676-1.xdl",
85 // "regression/xc5vlx330tff1738-1.xdl",
86  "regression/xc5vlx50ff676_base_io_single_test.xdl",
87  ""
88  };
89 
90  // create the appropriate file paths
92  / "torc" / "router" / "PathFinderRouter" / "PathFinderRegression.Virtex5.Test1.xdl";
94  / "regression" / "UnpackerUnitTest.xdl";
95 std::cout << referencePath << std::endl;
96 
97  for(int i = 0; xdls[i].size(); i++) {
98  referencePath = xdls[i];
99  std::cerr << "Unpacking " << referencePath << std::endl;
100 
101  // import the XDL design
102  std::fstream fileStream(referencePath.string().c_str());
103  BOOST_REQUIRE(fileStream.good());
105  importer(fileStream, referencePath.string());
106 
107  // look up the design
108  torc::physical::DesignSharedPtr mDesignPtr = importer.getDesignPtr();
109  BOOST_REQUIRE(mDesignPtr.get() != 0);
110 
111  // invoking the unpacker
112  torc::packer::Unpacker unpacker(mDesignPtr);
113  unpacker.unpack();
114 
115  // export the XDL design
116  std::fstream xdlExport(generatedPath.string().c_str(), std::ios_base::out);
117  torc::physical::XdlExporter fileExporter(xdlExport);
118  fileExporter(mDesignPtr);
119  }
120 
121 }
DesignSharedPtr getDesignPtr(void)
Returns a shared pointer for the design.
std::string string
Architecture aware importer from XDL format into a physical design.
boost::filesystem::path path
boost::shared_ptr< Design > DesignSharedPtr
Shared pointer encapsulation of a Design.
static const boost::filesystem::path & getExecutablePath(void)
Returns the absolute path to the executable directory.
Physical design exporter for XDL.
Definition: XdlExporter.hpp:31

+ Here is the call graph for this function:

torc::packer::BOOST_AUTO_TEST_CASE ( PrimitiveStructureInstancePinsUnitTest  )

Unit test for the PrimitiveStructure class.

Definition at line 87 of file PrimitiveStructureUnitTest.cpp.

87  {
88 
89  using namespace torc::architecture;
90  // create the appropriate file paths
92  / "torc" / "physical" / "DesignUnitTest.reference.xdl";
94  / "regression" / "DesignUnitTest.generated.xdl";
95 
96  // import the XDL design
97  std::fstream fileStream(referencePath.string().c_str());
98  BOOST_REQUIRE(fileStream.good());
99  XdlImporter importer;
100  importer(fileStream, referencePath.string());
101 
102  // look up the design (and do something with it ...)
103  torc::physical::DesignSharedPtr designPtr = importer.getDesignPtr();
104  BOOST_REQUIRE(designPtr.get() != 0);
105 
106  // look up the device database (and do something with it ...)
107  DDB* ddbPtr = importer.releaseDDBPtr();
108 
109  // look up the logic sites in the device
110  const Sites& sites = ddbPtr->getSites();
111  // define a vector of PrimitiveStructure objects
112  typedef std::map<std::string, PrimitiveStructureSharedPtr> PrimitiveStructuresSharedPtrMap;
113  PrimitiveStructuresSharedPtrMap primitiveStructures;
114  // look up the primitive def types
115  typedef const Array<const PrimitiveDef> PrimitiveDefArray;
116  PrimitiveDefArray& primitiveDefs = sites.getSiteTypes();
117  PrimitiveDefArray::const_iterator p = primitiveDefs.begin();
118  PrimitiveDefArray::const_iterator e = primitiveDefs.end();
119  while(p < e) {
120  // create a PrimitiveStructure object for this PrimitiveDef
121  PrimitiveStructureSharedPtr primitiveStructurePtr(new PrimitiveStructure(&*p++));
122  const torc::architecture::PrimitiveDef* primitiveDefPtr
123  = primitiveStructurePtr->getPrimitiveDefPtr();
124  const std::string& primitiveDefName = primitiveDefPtr->getName();
125  // insert the PrimitiveStructure into the map
126  primitiveStructures[primitiveDefName] = primitiveStructurePtr;
127  }
128 
129  // look up a sample instance
131  = designPtr->findInstance("blink");
132  if(instancePtrIterator == designPtr->instancesEnd()) return;
133  torc::physical::InstanceSharedPtr instancePtr = *instancePtrIterator;
134  PrimitiveStructureSharedPtr primitiveStructurePtr = primitiveStructures[instancePtr->getType()];
135  const PrimitiveDef* primitiveDefPtr = primitiveStructurePtr->getPrimitiveDefPtr();
136  if(primitiveDefPtr == 0) return; // this should not happen for valid instances
137  const PrimitivePinArray& primitivePins = primitiveDefPtr->getPins();
138 
144 
145  // iterate over the instance pins
146  InstancePinSharedPtrVector inputPins;
147  InstancePinSharedPtrVector outputPins;
148  Instance::InstancePinSharedPtrConstIterator ipp = instancePtr->pinsBegin();
149  Instance::InstancePinSharedPtrConstIterator ipe = instancePtr->pinsEnd();
150  while(ipp != ipe) {
151  // look up the instance pin
152  InstancePinSharedPtr instancePinPtr = ipp++->second;
153  const std::string& pinName = instancePinPtr->getPinName();
154  NetSharedPtr netPtr = instancePinPtr->getParentWeakPtr().lock();
155  std::cout << " found " << pinName << " connected to net " << netPtr->getName() << ": ";
156  // determine whether the pin is an output
157  PinIndex pinIndex = primitiveDefPtr->findPinIndexByName(pinName);
158  if(static_cast<boost::int32_t>(pinIndex) < 0) continue; // this shouldn't happen
159  const PrimitivePin& primitivePin = primitivePins[pinIndex];
160  if(primitivePin.isInput()) inputPins.push_back(instancePinPtr);
161  if(primitivePin.isOutput()) outputPins.push_back(instancePinPtr);
162  std::cout << (primitivePin.isInput() ? "INPUT" : (primitivePin.isOutput() ? "OUTPUT" : ""))
163  << std::endl;
164  }
165 
166  // iterate over the input pins
167  InstancePinSharedPtrVector::const_iterator ip;
168  InstancePinSharedPtrVector::const_iterator ie;
169  ip = inputPins.begin();
170  ie = inputPins.end();
171  while(ip != ie) {
172  InstancePinSharedPtr instancePinPtr = *ip++;
173  //std::cout << " found INPUT " << instancePinPtr->getPinName() << std::endl;
174  }
175  // iterate over the output pins
176  ip = outputPins.begin();
177  ie = outputPins.end();
178  while(ip != ie) {
179  InstancePinSharedPtr instancePinPtr = *ip++;
180  //std::cout << " found OUTPUT " << instancePinPtr->getPinName() << std::endl;
181  }
182 
183 }
bool isOutput(void) const
Returns true if this pin is a primitive output.
Device database, including complete wiring and logic support.
Definition: DDB.hpp:42
DesignSharedPtr getDesignPtr(void)
Returns a shared pointer for the design.
Encapsulation of primitive site definition, with associated connections, elements, and pins.
std::vector< InstancePinSharedPtr > InstancePinSharedPtrVector
Vector of InstancePin shared pointers.
bool isInput(void) const
Returns true if this pin is a primitive input.
Encapsulation of a pin index in an unsigned 32-bit integer.
PinIndex findPinIndexByName(const std::string &inName) const
Returns the pin index corresponding to the given pin name, or PinIndex::undefined() if the pin name d...
boost::shared_ptr< class InstancePin > InstancePinSharedPtr
Shared pointer encapsulation of an InstancePin.
std::string string
Architecture aware importer from XDL format into a physical design.
std::vector< InstancePinSharedPtr > InstancePinSharedPtrVector
Vector of InstancePin shared pointers.
Physical design instance.
boost::shared_ptr< Net > NetSharedPtr
Site type and population data for the family and the device.
Definition: Sites.hpp:45
const Array< const Site > & getSites(void) const
Returns the sites for this family.
Definition: Sites.hpp:127
boost::shared_ptr< Net > NetSharedPtr
Shared pointer encapsulation of a Net.
PrimitivePinArray & getPins(void)
Returns a non-constant array of element pins. This function should only be used by the Sites class d...
boost::filesystem::path path
boost::shared_ptr< Instance > InstanceSharedPtr
Shared pointer encapsulation of an Instance.
boost::shared_ptr< Design > DesignSharedPtr
Shared pointer encapsulation of a Design.
Encapsulation of a primitive pin's name and flags. Primitive pins are logic site inputs or outputs...
T * begin(void)
Returns the non-constant begin iterator.
Definition: Array.hpp:95
boost::shared_ptr< PrimitiveStructure > PrimitiveStructureSharedPtr
Shared pointer encapsulation of a PrimitiveStructure.
static const boost::filesystem::path & getExecutablePath(void)
Returns the absolute path to the executable directory.
Encapsulation of a static array.
Definition: Array.hpp:39
boost::shared_ptr< InstancePin > InstancePinSharedPtr
Shared pointer encapsulation of an InstancePin.
InstanceSharedPtrVector::iterator InstanceSharedPtrIterator
Non-constant iterator to Instance shared pointers.
Definition: Circuit.hpp:74
const string & getName(void) const
Returns the name of the primitive.

+ Here is the call graph for this function:

Variable Documentation

const std::string torc::packer::cByInvOutUsedElementName = "BYINVOUTUSED"

The name of the BYINVOUTUSED slice element.

Definition at line 29 of file Virtex2PrimitiveStructure.cpp.

const std::string torc::packer::cSliceLTypeName = "SLICEL"

The type name of slice primitives.

Definition at line 28 of file Virtex5PrimitiveStructure.cpp.

const std::string torc::packer::cSliceMTypeName = "SLICEM"

Definition at line 29 of file Virtex5PrimitiveStructure.cpp.

const std::string torc::packer::cSliceTypeName = "SLICE"

The type name of slice primitives.

Definition at line 27 of file Virtex2PrimitiveStructure.cpp.