- Timestamp:
- Apr 14, 2009, 8:39:12 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/IPs/systemC/processor/Morpheo/Behavioural/Generic/Counter/src/Counter.cpp
r88 r113 13 13 namespace counter { 14 14 15 15 #undef FUNCTION 16 #define FUNCTION "Counter::Counter" 16 17 Counter::Counter 17 18 ( … … 24 25 morpheo::behavioural::Parameters_Statistics * param_statistics, 25 26 #endif 26 morpheo::behavioural::generic::counter::Parameters param,27 morpheo::behavioural::generic::counter::Parameters * param, 27 28 Tusage_t usage): 28 29 _name (name), … … 30 31 _usage (usage) 31 32 { 32 log_ printf(FUNC,Counter,"Counter","Begin");33 log_begin(Counter,FUNCTION); 33 34 34 #if DEBUG_Counter == true35 log_printf(INFO,Counter,FUNCTION,_("<%s> Parameters"),_name.c_str());35 // #if DEBUG_Counter == true 36 // log_printf(INFO,Counter,FUNCTION,_("<%s> Parameters"),_name.c_str()); 36 37 37 std::cout <<param << std::endl;38 #endif38 // std::cout << *param << std::endl; 39 // #endif 39 40 40 41 log_printf(INFO,Core,FUNCTION,_("<%s> Allocation"),_name.c_str()); … … 76 77 SC_METHOD (genMealy); 77 78 dont_initialize (); 78 for (uint32_t i=0; i<_param ._nb_port; i++)79 for (uint32_t i=0; i<_param->_nb_port; i++) 79 80 sensitive << *(in_COUNTER_DATA [i]) 80 81 << *(in_COUNTER_ADDSUB [i]); … … 82 83 #ifdef SYSTEMCASS_SPECIFIC 83 84 // List dependency information 84 for (uint32_t i=0; i<_param ._nb_port; i++)85 for (uint32_t i=0; i<_param->_nb_port; i++) 85 86 { 86 87 (*(out_COUNTER_DATA [i])) (*(in_COUNTER_DATA [i])); … … 91 92 92 93 #endif 93 log_ printf(FUNC,Counter,"Counter","End");94 log_end(Counter,FUNCTION); 94 95 }; 95 96 97 #undef FUNCTION 98 #define FUNCTION "Counter::~Counter" 96 99 Counter::~Counter (void) 97 100 { 98 log_ printf(FUNC,Counter,"~Counter","Begin");101 log_begin(Counter,FUNCTION); 99 102 100 103 #ifdef STATISTICS … … 108 111 deallocation (); 109 112 110 log_ printf(FUNC,Counter,"~Counter","End");113 log_end(Counter,FUNCTION); 111 114 }; 112 115
Note: See TracChangeset
for help on using the changeset viewer.