torc-master
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
UnpackTest.cpp File Reference
+ Include dependency graph for UnpackTest.cpp:

Go to the source code of this file.

Functions

int main (int argc, char *argv[])
 

Function Documentation

int main ( int  argc,
char *  argv[] 
)

Definition at line 26 of file UnpackTest.cpp.

26  {
27 
28  if (argc != 2) {
29  std::cout << "Usage: " << argv[0] << " <input xdlfile>" << std::endl;
30  return 1;
31  }
32 
33  ifstream inp(argv[1]);
34  cout<<"Reading xdl file ....................."<<endl;
36  importer(inp, "");
37  torc::physical::DesignSharedPtr designPtr = importer.getDesignPtr();
38 
40  cout<<"Unpacking ............................"<<endl;
41  torc::physical::DesignSharedPtr dp = unpacker(designPtr);
42  string unpackName = argv[1];
43  unpackName += "_unpack";
44  ofstream outp(unpackName.c_str());
45  torc::physical::XdlExporter fileExporter(outp);
46  fileExporter(dp);
47  cout<<"Extracting combinational paths ......."<<endl;
48  // test combinational paths
50  combPtr->setPatchCounts(dp);
53  cout<<"Done ................................."<<endl;
54  /*while(rnb<rne){
55  cout<<(*rnb)->getName()<<":"<<endl;
56  size_t n=(*rnb)->getSuperNet()->getSourceCount() + (*rnb)->getSuperNet()->getSinkCount();
57  for(size_t i=0; i<n; ++i)
58  cout<<"\n"<<(*rnb)->getPathCount(i)<<endl;
59  ++rnb;
60  }*/
61  return 0;
62 }
DesignSharedPtr getDesignPtr(void)
Returns a shared pointer for the design.
RoutingNetSharedPtrVector::const_iterator RoutingNetSharedPtrConstIterator
Constant iterator to Routing Net shared pointers.
boost::shared_ptr< Design > DesignSharedPtr
Shared pointer encapsulation of a Design.
Importer from XDL format into a physical design.
static CombinationalPathSharedPtr newCombinationalPathPtr()
Create and return a new CombinationalPath object.
Definition: RcFactory.hpp:62
boost::shared_ptr< CombinationalPath > CombinationalPathSharedPtr
Shared pointer encapsulation of a CombinationalPath.
Physical design exporter for XDL.
Definition: XdlExporter.hpp:31

+ Here is the call graph for this function: