torc-master
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
torc::bitstream::LibGenFactory Class Reference

Helper class for bitstreams. More...

#include <LibGenFactory.hpp>

Static Public Member Functions

static AssemblerLibGenSharedPtr newLibGenPtr (string inFamily, path inXdlGenerationFolder)
 

Detailed Description

Helper class for bitstreams.

Definition at line 39 of file LibGenFactory.hpp.

Member Function Documentation

static AssemblerLibGenSharedPtr torc::bitstream::LibGenFactory::newLibGenPtr ( string  inFamily,
path  inXdlGenerationFolder 
)
inlinestatic

Definition at line 41 of file LibGenFactory.hpp.

41  {
42  AssemblerLibGenSharedPtr libGenPtr;
43  path harnessFolder("torc/bitstream/assembler/build/harness");
44  // instantiate the appropriate bitstream
45  if(boost::iequals(inFamily, "virtex5")) {
46  libGenPtr = AssemblerLibGenSharedPtr(new Virtex5LibGen("xc5vlx110t", harnessFolder, inXdlGenerationFolder));
47  } else if( boost::iequals(inFamily, "virtex7") || boost::iequals(inFamily, "artix7") ||
48  boost::iequals(inFamily, "kintex7") || boost::iequals(inFamily, "zynq7") ) {
49  libGenPtr = AssemblerLibGenSharedPtr(new Virtex7LibGen("xc7a100t", harnessFolder, inXdlGenerationFolder));
50  } else {
51  std::cout << "WARNING: Unsupported device" << std::endl;
52  }
53  return libGenPtr;
54  }
boost::shared_ptr< AssemblerLibGen > AssemblerLibGenSharedPtr
boost::filesystem::path path

+ Here is the caller graph for this function:


The documentation for this class was generated from the following file: