/*------------------------------------------------------------\ | | | Tool : systemcass | | | | File : process_dependency.h | | | | Author : Buchmann Richard | | | | Date : 09_07_2004 | | | \------------------------------------------------------------*/ #ifndef MODULE_DEPENDENCY_H #define MODULE_DEPENDENCY_H #include "signal_dependency.h" namespace sc_core { // Signal Dependency Graph struct ProcessDependency { const method_process_t *source; const method_process_t *destination; bool operator < (const ProcessDependency &) const; }; typedef std::set ProcessDependencyGraph; typedef std::list ProcessDependencyList; // Convert Port Dependency Graph to Signal Dependency Graph extern ProcessDependencyGraph* MakeProcessDependencyGraph (const SignalDependencyGraph&); extern ProcessDependencyList* MakeProcessDependencyList (const SignalDependencyGraph&); // Dump to dot file extern bool ProcessDependencyGraph2dot (const char *name, const ProcessDependencyGraph&); extern bool ProcessDependencyList2dot (const char *name, const ProcessDependencyList&); } // end of sc_core namespace #endif