|
Last change
on this file since 30 was
1,
checked in by buchmann, 18 years ago
|
|
Initial import from CVS repository
|
|
File size:
1.6 KB
|
| Line | |
|---|
| 1 | /*------------------------------------------------------------\ |
|---|
| 2 | | | |
|---|
| 3 | | Tool : systemcass | |
|---|
| 4 | | | |
|---|
| 5 | | File : process_dependency.h | |
|---|
| 6 | | | |
|---|
| 7 | | Author : Buchmann Richard | |
|---|
| 8 | | | |
|---|
| 9 | | Date : 09_07_2004 | |
|---|
| 10 | | | |
|---|
| 11 | \------------------------------------------------------------*/ |
|---|
| 12 | #ifndef MODULE_DEPENDENCY_H |
|---|
| 13 | #define MODULE_DEPENDENCY_H |
|---|
| 14 | |
|---|
| 15 | #include "signal_dependency.h" |
|---|
| 16 | |
|---|
| 17 | namespace sc_core { |
|---|
| 18 | |
|---|
| 19 | // Signal Dependency Graph |
|---|
| 20 | struct ProcessDependency { |
|---|
| 21 | const method_process_t *source; |
|---|
| 22 | const method_process_t *destination; |
|---|
| 23 | bool operator < (const ProcessDependency &) const; |
|---|
| 24 | }; |
|---|
| 25 | |
|---|
| 26 | typedef std::set<ProcessDependency> ProcessDependencyGraph; |
|---|
| 27 | typedef std::list<const method_process_t*> ProcessDependencyList; |
|---|
| 28 | |
|---|
| 29 | // Convert Port Dependency Graph to Signal Dependency Graph |
|---|
| 30 | extern ProcessDependencyGraph* MakeProcessDependencyGraph (const SignalDependencyGraph&); |
|---|
| 31 | extern ProcessDependencyList* MakeProcessDependencyList (const SignalDependencyGraph&); |
|---|
| 32 | |
|---|
| 33 | // Dump to dot file |
|---|
| 34 | extern bool ProcessDependencyGraph2dot (const char *name, const ProcessDependencyGraph&); |
|---|
| 35 | extern bool ProcessDependencyList2dot (const char *name, const ProcessDependencyList&); |
|---|
| 36 | |
|---|
| 37 | } // end of sc_core namespace |
|---|
| 38 | |
|---|
| 39 | #endif |
|---|
| 40 | |
|---|
Note: See
TracBrowser
for help on using the repository browser.