19 #ifndef TORC_ROUTER_ROUTUTILITIES_HPP
20 #define TORC_ROUTER_ROUTUTILITIES_HPP
30 #include <boost/unordered_map.hpp>
31 #include <boost/any.hpp>
80 boost::unordered_map<boost::uint32_t, boost::any>
mProperties;
90 for (p = netsbegin; p != netsend; p++) {
96 pinPtr != (*p)->sourcesEnd(); pinPtr++) {
101 std::cout <<
"BAD IMPORT: " << (*p)->getName() <<
" - "
102 << (*pinPtr)->getPinName() << std::endl;
106 pinPtr != (*p)->sinksEnd(); pinPtr++) {
110 std::cout <<
"BAD IMPORT: " << (*p)->getName() <<
" - "
111 << (*pinPtr)->getPinName() << std::endl;
117 routenets.push_back(
RouteNet(name, sources, sinks));
126 for (p = netsbegin; p != netsend; p++) {
127 if (!((*p)->getName() == routenets[i].getName())) {
128 std::cout <<
"Name mismatch for corresponding entry: "
129 << (*p)->getName() <<
" " << routenets[i].getName() << std::endl;
134 for (
unsigned int j = 0; j < routeNodes.size(); j++) {
135 Arc arc = routeNodes[j]->getArc();
159 #endif // TORC_ROUTER_ROUTEUTILITIES_HPP
string mName
Name of the net.
Encapsulation of an arc between two tilewires.
std::vector< Tilewire > TilewireVector
Vector of Tilewire objects.
boost::unordered_map< boost::uint32_t, boost::any > mProperties
Net annotation structure.
std::vector< RouteNode * > RouteNodePtrVector
Vector of RouteNode pointers.
Device database, including complete wiring and logic support.
void design2routenets(NetSharedPtrIterator netsbegin, NetSharedPtrIterator netsend, RouteNetVector &routenets)
std::vector< RouteNet > RouteNetVector
Vector of RouteNet objects.
const char * mWireName
The wire name.
InstancePinSharedPtrVector::iterator InstancePinSharedPtrIterator
Non-constant iterator to InstancePin shared pointer objects.
torc::physical::Circuit::NetSharedPtrIterator NetSharedPtrIterator
void routenets2design(RouteNetVector &routenets, NetSharedPtrIterator netsbegin, NetSharedPtrIterator netsend, architecture::DDB &ddb)
RouteNodePtrVector::iterator RouteNodePtrIterator
ArcVector::const_iterator ArcConstIterator
std::vector< Arc > ArcVector
Vector of Arc objects.
ArcVector::iterator ArcIterator
const Tilewire & getSourceTilewire(void) const
Returns the source tilewire.
architecture::ArcVector ArcVector
const Tilewire & getSinkTilewire(void) const
Returns the sink tilewire.
torc::physical::Net::InstancePinSharedPtrConstIterator InstancePinSharedPtrConstIterator
const char * mTileName
The tile name.
Main torc::physical namespace header.
Encapsulation of a device tile and wire pair.
ArcVector mArcs
Vector of arcs representing net connectivity.
static torc::physical::Pip newPip(const string &inTileName, const string &inSourceWireName, const string &inSinkWireName, EPipDirection inPipDirection, RoutethroughSharedPtr inRoutethroughPtr=RoutethroughSharedPtr())
Construct a pip and return it.
boost::shared_ptr< Net > NetSharedPtr
Shared pointer encapsulation of a Net.
Verbose encapsulation of a wire's information.
architecture::TilewireVector TilewireVector
torc::physical::NetSharedPtr NetSharedPtr
TilewireVector mSources
Vector of net source Tilewires.
TilewireVector::const_iterator TilewireConstIterator
Header for the Tilewire class.
InstancePinSharedPtrVector::const_iterator InstancePinSharedPtrConstIterator
Constant iterator to InstancePin shared pointer objects.
torc::physical::Net::InstancePinSharedPtrIterator InstancePinSharedPtrIterator
NetSharedPtrVector::iterator NetSharedPtrIterator
Non-constant iterator to Net shared pointers.
std::vector< NetSharedPtr > NetSharedPtrVector
Physical design programmable interconnect point.
#define INSTANCE_PIN_PHYSICAL_TO_ARCHITECTURE(x)
Reinterpret the given torc::physical::InstancePinSharedPtr as a torc::architecture::InstancePinShared...
torc::physical::Circuit::NetSharedPtrConstIterator NetSharedPtrConstIterator
TilewireVector::iterator TilewireIterator
RouteNodePtrVector mRouteNodes
Vector of RouteNodes representing net connectivity.
Header for the DDB class.
static const Tilewire sInvalid
RouteUtilities()
Constructor.
std::string string
Imported type names.
RouteNodePtrVector::const_iterator RouteNodePtrConstIterator
Header for the XdlImporter class.
TilewireVector mSinks
Vector of net sink Tilewires.
architecture::Tilewire Tilewire
NetSharedPtrVector::const_iterator NetSharedPtrConstIterator
Constant iterator to Net shared pointers.
Header for the Net class.