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

Helper class for bitstreams. More...

#include <AssemblerFactory.hpp>

Static Public Member Functions

static AssemblerSharedPtr newAssemblerPtr (torc::physical::DesignSharedPtr xdlDesignPtr, torc::architecture::DDB &inDB)
 

Detailed Description

Helper class for bitstreams.

Definition at line 36 of file AssemblerFactory.hpp.

Member Function Documentation

static AssemblerSharedPtr torc::bitstream::AssemblerFactory::newAssemblerPtr ( torc::physical::DesignSharedPtr  xdlDesignPtr,
torc::architecture::DDB inDB 
)
inlinestatic

Definition at line 38 of file AssemblerFactory.hpp.

38  {
39  AssemblerSharedPtr assemblerPtr;
40 
41  // read the header and determine the device family
42  DeviceDesignator designator(xdlDesignPtr->getDevice());
43 
44  // instantiate the appropriate bitstream
45  switch(designator.getFamily()) {
47  assemblerPtr = AssemblerSharedPtr(new Virtex5Assembler(inDB)); break;
52  assemblerPtr = AssemblerSharedPtr(new Virtex7Assembler(inDB)); break;
58  default:
59  std::cerr << "Device " << xdlDesignPtr->getDevice() << " not supported." << std::endl;
60  return assemblerPtr;
61  }
62  return assemblerPtr;
63  }
torc::common::DeviceDesignator DeviceDesignator
boost::shared_ptr< Assembler > AssemblerSharedPtr
Typedef for shared pointer of Assembler class.
Definition: Assembler.hpp:345

+ Here is the caller graph for this function:


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