torc-master
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
SharedFunctions.hpp File Reference
#include <iostream>
#include <vector>
#include <map>
#include <stdint.h>
+ Include dependency graph for SharedFunctions.hpp:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Typedefs

typedef std::map< const
std::string, std::vector
< std::string > > 
CompoundSettingMap
 
typedef std::map< const
std::string, std::vector
< uint32_t > > 
ConfigBitMap
 
typedef std::map< const
std::string, ConfigBitMap
ElementConfigMap
 
typedef std::map< const
std::string, ElementConfigMap
TiletypeElementMap
 

Functions

bool elementNeedsCompoundSetting (std::string elementName)
 
bool DSPMaskOrPatternConfig (const std::string &siteType, const std::string &elementName)
 
void InitializeCompoundSettingsMap ()
 

Variables

const std::string kNameSeparator
 
const std::string kFamily
 
const std::string kConfigOff
 
const std::string kArchitectureName
 
const std::string kXDLExtension
 
CompoundSettingMap gCompoundSettingsMap
 

Typedef Documentation

typedef std::map<const std::string, std::vector<std::string> > CompoundSettingMap

Definition at line 25 of file SharedFunctions.hpp.

typedef std::map<const std::string, std::vector<uint32_t> > ConfigBitMap

Definition at line 26 of file SharedFunctions.hpp.

typedef std::map<const std::string, ConfigBitMap> ElementConfigMap

Definition at line 27 of file SharedFunctions.hpp.

typedef std::map<const std::string, ElementConfigMap> TiletypeElementMap

Definition at line 28 of file SharedFunctions.hpp.

Function Documentation

bool DSPMaskOrPatternConfig ( const std::string &  siteType,
const std::string &  elementName 
)

Definition at line 28 of file build/SharedFunctions.cpp.

28  {
29 
30  if(siteType.compare("DSP48E") == 0) {
31  if(elementName.compare("PATTERN") == 0 || elementName.compare("MASK") == 0) {
32  return true;
33  }
34  }
35  return false;
36 }

+ Here is the caller graph for this function:

bool elementNeedsCompoundSetting ( std::string  elementName)

Definition at line 26 of file SharedFunctions.cpp.

26  {
27 
28  CompoundSettingMap::const_iterator pElement = gCompoundSettingsMap.find(elementName);
29  // If element found in the compound settings map
30  if(pElement != gCompoundSettingsMap.end()) {
31  return true;
32  }
33  return false;
34 }
CompoundSettingMap gCompoundSettingsMap

+ Here is the caller graph for this function:

void InitializeCompoundSettingsMap ( )

Definition at line 38 of file build/SharedFunctions.cpp.

38  {
39 
40  std::vector<std::string> acascregCompound;
41  acascregCompound.push_back("AREG");
42  gCompoundSettingsMap["ACASCREG"] = acascregCompound;
43 
44  std::vector<std::string> bcascregCompound;
45  bcascregCompound.push_back("BREG");
46  gCompoundSettingsMap["BCASCREG"] = bcascregCompound;
47 }
CompoundSettingMap gCompoundSettingsMap

+ Here is the caller graph for this function:

Variable Documentation

CompoundSettingMap gCompoundSettingsMap

Definition at line 10 of file build/SharedFunctions.cpp.

const std::string kArchitectureName

Definition at line 14 of file build/SharedFunctions.cpp.

const std::string kConfigOff

Definition at line 13 of file build/SharedFunctions.cpp.

const std::string kFamily

Definition at line 12 of file build/SharedFunctions.cpp.

const std::string kNameSeparator

Definition at line 11 of file build/SharedFunctions.cpp.

const std::string kXDLExtension

Definition at line 15 of file build/SharedFunctions.cpp.