- Timestamp:
- Apr 14, 2009, 8:39:12 PM (15 years ago)
- Location:
- trunk/IPs/systemC/processor/Morpheo/Behavioural/Generic/Queue/src
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/IPs/systemC/processor/Morpheo/Behavioural/Generic/Queue/src/Parameters.cpp
r101 r113 21 21 bool have_port_ptr_write, 22 22 bool have_port_ptr_read ): 23 behavioural::Parameters("Queue"), 23 24 _size_queue (size_queue), 24 25 _size_data (size_data ), -
trunk/IPs/systemC/processor/Morpheo/Behavioural/Generic/Queue/src/Queue.cpp
r88 r113 33 33 ,_usage (usage) 34 34 { 35 log_printf(FUNC,Queue,FUNCTION,"Begin"); 35 log_begin(Queue,FUNCTION); 36 37 // #if DEBUG_Core == true 38 // log_printf(INFO,Core,FUNCTION,_("<%s> Parameters"),_name.c_str()); 36 39 37 #if DEBUG_Core == true 38 log_printf(INFO,Core,FUNCTION,_("<%s> Parameters"),_name.c_str()); 40 // std::cout << *param << std::endl; 41 // #endif 39 42 40 std::cout << *param << std::endl; 41 #endif 42 43 log_printf(INFO,Queue,FUNCTION,"Allocation"); 43 log_printf(INFO,Queue,FUNCTION,_("<%s> Allocation"),_name.c_str()); 44 44 allocation (); 45 45 … … 47 47 if (usage_is_set(_usage,USE_STATISTICS)) 48 48 { 49 log_printf(INFO,Queue,FUNCTION, "Allocation of statistics");49 log_printf(INFO,Queue,FUNCTION,_("<%s> Allocation of statistics"),_name.c_str()); 50 50 51 51 statistics_declaration(param_statistics); … … 57 57 { 58 58 // generate the vhdl 59 log_printf(INFO,Queue,FUNCTION, "Generate the vhdl");59 log_printf(INFO,Queue,FUNCTION,_("<%s> Generate the vhdl"),_name.c_str()); 60 60 61 61 vhdl(); … … 66 66 if (usage_is_set(_usage,USE_SYSTEMC)) 67 67 { 68 log_printf(INFO,Queue,FUNCTION, "Method - transition");68 log_printf(INFO,Queue,FUNCTION,_("<%s> Method - transition"),_name.c_str()); 69 69 70 70 SC_METHOD (transition); … … 76 76 # endif 77 77 78 log_printf(INFO,Queue,FUNCTION, "Method - genMoore");78 log_printf(INFO,Queue,FUNCTION,_("<%s> Method - genMoore"),_name.c_str()); 79 79 80 80 SC_METHOD (genMoore); … … 88 88 #endif 89 89 } 90 log_ printf(FUNC,Queue,FUNCTION,"End");90 log_end(Queue,FUNCTION); 91 91 }; 92 92 … … 95 95 Queue::~Queue (void) 96 96 { 97 log_ printf(FUNC,Queue,FUNCTION,"Begin");97 log_begin(Queue,FUNCTION); 98 98 99 99 #ifdef STATISTICS 100 100 if (usage_is_set(_usage,USE_STATISTICS)) 101 101 { 102 log_printf(INFO,Queue,FUNCTION, "Generate Statistics file");102 log_printf(INFO,Queue,FUNCTION,_("<%s> Generate Statistics file"),_name.c_str()); 103 103 104 104 delete _stat; … … 106 106 #endif 107 107 108 log_printf(INFO,Queue,FUNCTION, "Deallocation");108 log_printf(INFO,Queue,FUNCTION,_("<%s> Deallocation"),_name.c_str()); 109 109 deallocation (); 110 110 111 log_ printf(FUNC,Queue,FUNCTION,"End");111 log_end(Queue,FUNCTION); 112 112 }; 113 113 -
trunk/IPs/systemC/processor/Morpheo/Behavioural/Generic/Queue/src/Queue_allocation.cpp
r112 r113 9 9 #include "Behavioural/include/Allocation.h" 10 10 11 namespace morpheo 11 namespace morpheo { 12 12 namespace behavioural { 13 13 namespace generic { 14 14 namespace queue { 15 16 17 15 18 16 #undef FUNCTION … … 25 23 26 24 Entity * entity = _component->set_entity (_name 27 , "Queue"25 ,_param->_type 28 26 #ifdef POSITION 29 27 ,COMBINATORY … … 111 109 }; // end namespace queue 112 110 }; // end namespace generic 113 114 111 }; // end namespace behavioural 115 112 }; // end namespace morpheo -
trunk/IPs/systemC/processor/Morpheo/Behavioural/Generic/Queue/src/Queue_deallocation.cpp
r101 r113 21 21 log_printf(FUNC,Queue,FUNCTION,"Begin"); 22 22 23 if (usage_is_set(_usage,USE_SYSTEMC))23 // if (usage_is_set(_usage,USE_SYSTEMC)) 24 24 { 25 delete in_CLOCK;26 delete in_NRESET;25 DELETE0_SIGNAL( in_CLOCK ,1); 26 DELETE0_SIGNAL( in_NRESET,1); 27 27 28 28 DELETE0_SIGNAL( in_INSERT_VAL ,1); … … 41 41 if (_param->_have_port_ptr_read ) 42 42 DELETE0_SIGNAL(out_PTR_READ ,_param->_size_ptr); 43 } 43 44 44 // ~~~~~[ Component ]~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 45 if (usage_is_set(_usage,USE_SYSTEMC)) 46 { 47 // ~~~~~[ Component ]~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 45 48 delete _queue_control; 46 49 delete _queue_data; -
trunk/IPs/systemC/processor/Morpheo/Behavioural/Generic/Queue/src/Queue_statistics_declaration.cpp
r81 r113 21 21 22 22 _stat = new Stat (static_cast<std::string>(_name), 23 "Queue",23 _param->_type, 24 24 param_statistics); 25 25
Note: See TracChangeset
for help on using the changeset viewer.