sdf3cost.cc File Reference

#include "sdf3cost.h"
#include "base/base.h"
#include "../../sdf.h"
Include dependency graph for sdf3cost.cc:

Classes

struct  _Settings

Typedefs

typedef struct _Settings Settings

Functions

void helpMessage (ostream &out)
void parseCommandLine (int argc, char **argv)
CNodeloadArchitectureGraphFromFile (CString &file, CString &module)
CNodeloadSystemUsageFromFile (CString &file, CString &module)
CNodeloadMessagesSetFromFile (CString &file, CString &module)
void parseSettingsFile (CString module, CString type)
void setDefaults ()
void initSettings (int argc, char **argv)
void outputNetworkUsageAsXML (SetOfNoCScheduleProblems &problems, ostream &out)
void outputNetworkBindingAsXML (SetOfNoCScheduleProblems &problems, ostream &out)
bool solveSchedulingProblems (ostream &out)
int main (int argc, char **argv)

Variables

Settings settings

Typedef Documentation

typedef struct _Settings Settings

Settings Struct to store program settings.


Function Documentation

void helpMessage ( ostream &  out  ) 

helpMessage () Function prints help message for the tool.

References DOTTED_VERSION, and TOOL.

void initSettings ( int  argc,
char **  argv 
)

initSettings () The function initializes the program settings.

References MODULE, parseCommandLine(), parseSettingsFile(), setDefaults(), and SETTINGS_TYPE.

Here is the call graph for this function:

CNode* loadArchitectureGraphFromFile ( CString file,
CString module 
)

loadArchitectureGraphFromFile () The function returns a pointer to an XML data structures contained in the supplied file that describes the platform.

References CGetAttribute(), CGetChildNode(), CGetRootNode(), and CParseFile().

Here is the call graph for this function:

CNode* loadMessagesSetFromFile ( CString file,
CString module 
)

loadMessagesSetFromFile () The function returns a pointer to an XML data structures contained in the supplied file that describes the messages that must be scheduled on the arhicteture.

References CGetAttribute(), CGetChildNode(), CGetRootNode(), and CParseFile().

Referenced by initSettings(), and parseSettingsFile().

Here is the call graph for this function:

CNode* loadSystemUsageFromFile ( CString file,
CString module 
)

loadSystemUsageFromFile () The function returns a pointer to an XML data structures contained in the supplied file that describes the used resources by other applications.

References CGetAttribute(), CGetChildNode(), CGetRootNode(), and CParseFile().

Referenced by parseSettingsFile().

Here is the call graph for this function:

int main ( int  argc,
char **  argv 
)

main () It does none of the hard work, but it is very needed...

References initSettings(), MaxPlusAnalysis::out, Settings::outputFile, and solveSchedulingProblems().

Here is the call graph for this function:

void outputNetworkBindingAsXML ( SetOfNoCScheduleProblems problems,
ostream &  out 
)

outputNetworkBindingAsXML () Output the binding of messages to the interconnect as XML.

References CAddAttribute(), CAddNode(), CNewDoc(), CNewNode(), SetOfNoCScheduleProblems::createNetworkMappingNode(), and CSaveFile().

Referenced by solveSchedulingProblems().

Here is the call graph for this function:

void outputNetworkUsageAsXML ( SetOfNoCScheduleProblems problems,
ostream &  out 
)

outputNetworkUsageAsXML () Output the usage of the interconnect as XML.

References CAddAttribute(), CAddNode(), CNewDoc(), CNewNode(), SetOfNoCScheduleProblems::createNetworkUsageNode(), and CSaveFile().

Referenced by solveSchedulingProblems().

Here is the call graph for this function:

void parseCommandLine ( int  argc,
char **  argv 
)

parseCommandLine () The function parses the command line arguments and add info to the supplied settings structure.

References helpMessage(), Settings::nocMappingAlgo, Settings::outputFile, and Settings::settingsFile.

Here is the call graph for this function:

bool solveSchedulingProblems ( ostream &  out  ) 

solveSchedulingProblems () The function constructs a scheduling problem and tries to solve it using the requested scheduler.

References Settings::maxDetour, Settings::maxNrRipups, Settings::maxNrTries, Settings::nocMappingAlgo, outputNetworkBindingAsXML(), outputNetworkUsageAsXML(), printTimer(), NoCScheduler::schedule(), startTimer(), stopTimer(), Settings::xmlArchGraph, and Settings::xmlSystemUsage.

Referenced by main().

Here is the call graph for this function:


Variable Documentation

settings Program settings.