Changeset 52 for sources/src/port_dependency_ext.h
- Timestamp:
- Jan 22, 2013, 4:23:22 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sources/src/port_dependency_ext.h
r1 r52 1 1 /*------------------------------------------------------------\ 2 | |3 | Tool : systemcass |4 | |5 | File : port_dependancy_ext.h |6 | |7 | Author : Buchmann Richard |8 | |9 | Date : 12_08_2004 |10 | |11 \------------------------------------------------------------*/2 | | 3 | Tool : systemcass | 4 | | 5 | File : port_dependancy_ext.h | 6 | | 7 | Author : Buchmann Richard | 8 | | 9 | Date : 12_08_2004 | 10 | | 11 \------------------------------------------------------------*/ 12 12 13 13 /* … … 40 40 41 41 // Declare dependancy 42 extern void set_port_dependency (const sc_port_base* source,const sc_port_base& destination);42 extern void set_port_dependency(const sc_port_base * source, const sc_port_base & destination); 43 43 44 44 template<typename T, size_t N1, size_t N2> 45 inline 46 void 47 set_port_dependency (sc_in<T> (&source)[N1], 48 sc_out<T> (&destination)[N2]) 49 { 50 int i; 51 for (i = 0; i < N1; ++i) 52 { 53 int j; 54 for (j = 0; j < N2; ++j) 55 { 56 set_port_dependency ((const sc_port_base*) &(source[i]), (const 57 sc_port_base&) (destination[j])); 45 inline void set_port_dependency(sc_in<T> (&source)[N1], sc_out<T> (&destination)[N2]) { 46 int i; 47 for (i = 0; i < N1; ++i) { 48 int j; 49 for (j = 0; j < N2; ++j) { 50 set_port_dependency ((const sc_port_base *) &(source[i]), (const sc_port_base&) (destination[j])); 51 } 58 52 } 59 }60 53 } 61 54 … … 63 56 64 57 #endif 58 59 /* 60 # Local Variables: 61 # tab-width: 4; 62 # c-basic-offset: 4; 63 # c-file-offsets:((innamespace . 0)(inline-open . 0)); 64 # indent-tabs-mode: nil; 65 # End: 66 # 67 # vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=4:softtabstop=4 68 */ 69
Note: See TracChangeset
for help on using the changeset viewer.