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

Go to the source code of this file.

Functions

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

Variables

CompoundSettingMap gCompoundSettingsMap
 
const std::string kNameSeparator = "-"
 
const std::string kFamily = "Virtex5"
 
const std::string kConfigOff = "#OFF"
 
const std::string kArchitectureName = "Virtex5"
 
const std::string kXDLExtension = ".xdl"
 

Function Documentation

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

Definition at line 36 of file SharedFunctions.cpp.

36  {
37 
38  if(siteType.compare("DSP48E") == 0) {
39  if(elementName.compare("PATTERN") == 0 || elementName.compare("MASK") == 0) {
40  return true;
41  }
42  }
43  return false;
44 }
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 46 of file SharedFunctions.cpp.

46  {
47 
48  std::vector<std::string> acascregCompound;
49  acascregCompound.push_back("AREG");
50  gCompoundSettingsMap["ACASCREG"] = acascregCompound;
51 
52  std::vector<std::string> bcascregCompound;
53  bcascregCompound.push_back("BREG");
54  gCompoundSettingsMap["BCASCREG"] = bcascregCompound;
55 }
CompoundSettingMap gCompoundSettingsMap

Variable Documentation

CompoundSettingMap gCompoundSettingsMap

Definition at line 18 of file SharedFunctions.cpp.

const std::string kArchitectureName = "Virtex5"

Definition at line 22 of file SharedFunctions.cpp.

const std::string kConfigOff = "#OFF"

Definition at line 21 of file SharedFunctions.cpp.

const std::string kFamily = "Virtex5"

Definition at line 20 of file SharedFunctions.cpp.

const std::string kNameSeparator = "-"

Definition at line 19 of file SharedFunctions.cpp.

const std::string kXDLExtension = ".xdl"

Definition at line 23 of file SharedFunctions.cpp.