Last change
on this file since 56 was
52,
checked in by meunier, 12 years ago
|
Code formatting in all source files.
|
File size:
1.9 KB
|
Rev | Line | |
---|
[1] | 1 | /*------------------------------------------------------------\ |
---|
| 2 | | | |
---|
| 3 | | Tool : systemcass | |
---|
| 4 | | | |
---|
| 5 | | File : signal_dependancy.h | |
---|
| 6 | | | |
---|
| 7 | | Author : Buchmann Richard | |
---|
| 8 | | | |
---|
| 9 | | Date : 09_07_2004 | |
---|
| 10 | | | |
---|
| 11 | \------------------------------------------------------------*/ |
---|
[52] | 12 | |
---|
[1] | 13 | #ifndef SIGNAL_DEPENDENCY_H |
---|
| 14 | #define SIGNAL_DEPENDENCY_H |
---|
| 15 | |
---|
| 16 | #include <set> |
---|
[52] | 17 | |
---|
[1] | 18 | #include "sc_fwd.h" |
---|
| 19 | #include "entity.h" // equi_t |
---|
| 20 | #include "graph.h" |
---|
| 21 | #include "port_dependency.h" |
---|
| 22 | |
---|
| 23 | namespace sc_core { |
---|
| 24 | |
---|
[52] | 25 | |
---|
[1] | 26 | // Signal Dependency Graph |
---|
| 27 | struct SignalDependency { |
---|
[52] | 28 | const method_process_t * method; |
---|
| 29 | const equi_t * source; |
---|
| 30 | const equi_t * destination; |
---|
| 31 | bool operator < (const SignalDependency & a) const; |
---|
[1] | 32 | }; |
---|
| 33 | |
---|
[52] | 34 | |
---|
[1] | 35 | typedef std::set<SignalDependency> SignalDependencyGraph; |
---|
| 36 | |
---|
[52] | 37 | |
---|
[1] | 38 | // Convert Port Dependency Graph to Signal Dependency Graph |
---|
[52] | 39 | extern SignalDependencyGraph * MakeSignalDependencyGraph(const PortDependencyGraph & = get_port_dependency_graph()); |
---|
[1] | 40 | |
---|
| 41 | // Checking |
---|
[52] | 42 | extern bool Check(const SignalDependencyGraph &); |
---|
| 43 | extern bool Check(const method_process_list_t &, const SignalDependencyGraph &); |
---|
[1] | 44 | |
---|
| 45 | // Dump |
---|
[52] | 46 | extern bool SignalDependencyGraph2dot(const char * name, const SignalDependencyGraph &); |
---|
| 47 | extern bool SignalDependencyOrder2txt(const char * name, const strong_component_list_t &); |
---|
[1] | 48 | |
---|
| 49 | } // end of sc_core namespace |
---|
| 50 | |
---|
| 51 | #endif |
---|
| 52 | |
---|
[52] | 53 | /* |
---|
| 54 | # Local Variables: |
---|
| 55 | # tab-width: 4; |
---|
| 56 | # c-basic-offset: 4; |
---|
| 57 | # c-file-offsets:((innamespace . 0)(inline-open . 0)); |
---|
| 58 | # indent-tabs-mode: nil; |
---|
| 59 | # End: |
---|
| 60 | # |
---|
| 61 | # vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=4:softtabstop=4 |
---|
| 62 | */ |
---|
| 63 | |
---|
Note: See
TracBrowser
for help on using the repository browser.