torc-master
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
AssemblerLibGenExample.cpp File Reference

Implementation of class to encapsulate micro-bitstream library generation code. More...

+ Include dependency graph for AssemblerLibGenExample.cpp:

Go to the source code of this file.

Functions

int main (int argc, char **argv)
 

Detailed Description

Implementation of class to encapsulate micro-bitstream library generation code.

Author
Ritesh Kumar Soni

Definition in file AssemblerLibGenExample.cpp.

Function Documentation

int main ( int  argc,
char **  argv 
)

Definition at line 25 of file AssemblerLibGenExample.cpp.

25  {
26 
27  if(argc != 4) {
28  std::cerr << "Invalid arguments. Usage: " << argv[0]
29  << " <device> <harness_folder> <xdl_generation_folder>" << std::endl;
30  exit(-1);
31  }
32  // get the part number
33  std::string partNumber = argv[1];
34  boost::filesystem::path harnessFolder = argv[2];
35  boost::filesystem::path xdlGenerationFolder = argv[3];
36  // Initialize the DirectoryTree class
37  torc::common::DirectoryTree directoryTree(argv[0]);
38 
40  = torc::bitstream::LibGenFactory::newLibGenPtr(partNumber, xdlGenerationFolder);
41  libGen->generateLogicXdls();
42  libGen->generateWireXdls();
43  libGen->generateBitstreams();
44  libGen->compressBitFiles();
45  libGen->stitchMicroBitstreams();
46 }
boost::shared_ptr< AssemblerLibGen > AssemblerLibGenSharedPtr
std::string string
Encapsulation of filesystem paths that are used by the library.
boost::filesystem::path path
static AssemblerLibGenSharedPtr newLibGenPtr(string inFamily, path inXdlGenerationFolder)

+ Here is the call graph for this function: