torc-master
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
build/SharedFunctions.cpp File Reference
+ Include dependency graph for build/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 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 18 of file build/SharedFunctions.cpp.

18  {
19 
20  CompoundSettingMap::const_iterator pElement = gCompoundSettingsMap.find(elementName);
21  // If element found in the compound settings map
22  if(pElement != gCompoundSettingsMap.end()) {
23  return true;
24  }
25  return false;
26 }
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 = "Virtex5"

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

const std::string kConfigOff = "#OFF"

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

const std::string kFamily = "Virtex5"

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 = ".xdl"

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