- Timestamp:
- Dec 10, 2008, 7:31:39 PM (16 years ago)
- Location:
- trunk/IPs/systemC/processor/Morpheo/Behavioural/Generic/Queue
- Files:
-
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/IPs/systemC/processor/Morpheo/Behavioural/Generic/Queue/SelfTest/Makefile
r81 r88 24 24 library_clean : Queue_library_clean 25 25 26 local_clean : 27 26 28 include ../Makefile.deps 27 29 include $(DIR_MORPHEO)/Behavioural/Makefile.flags -
trunk/IPs/systemC/processor/Morpheo/Behavioural/Generic/Queue/SelfTest/src/test.cpp
r82 r88 22 22 #endif 23 23 24 Tusage_t _usage = USE_ALL; 25 26 // _usage = usage_unset(_usage,USE_SYSTEMC ); 27 // _usage = usage_unset(_usage,USE_VHDL ); 28 // _usage = usage_unset(_usage,USE_VHDL_TESTBENCH ); 29 // _usage = usage_unset(_usage,USE_VHDL_TESTBENCH_ASSERT); 30 // _usage = usage_unset(_usage,USE_POSITION ); 31 // _usage = usage_unset(_usage,USE_STATISTICS ); 32 // _usage = usage_unset(_usage,USE_INFORMATION ); 33 24 34 Queue * _Queue = new Queue 25 35 (name.c_str(), … … 28 38 #endif 29 39 _param, 30 USE_ALL);40 _usage); 31 41 32 42 #ifdef SYSTEMC -
trunk/IPs/systemC/processor/Morpheo/Behavioural/Generic/Queue/include/Parameters.h
r81 r88 29 29 public : Parameters (uint32_t size_queue, 30 30 uint32_t size_data ); 31 public : Parameters (Parameters & param) ;31 // public : Parameters (Parameters & param) ; 32 32 public : ~Parameters () ; 33 34 public : void copy (void); 33 35 34 36 public : Parameters_test msg_error (void); -
trunk/IPs/systemC/processor/Morpheo/Behavioural/Generic/Queue/src/Parameters.cpp
r81 r88 26 26 }; 27 27 28 // #undef FUNCTION 29 // #define FUNCTION "Queue::Parameters (copy)" 30 // Parameters::Parameters (Parameters & param): 31 // _size_queue (param._size_queue), 32 // _size_data (param._size_data ) 33 // { 34 // log_printf(FUNC,Queue,FUNCTION,"Begin"); 35 // test(); 36 // log_printf(FUNC,Queue,FUNCTION,"End"); 37 // }; 38 28 39 #undef FUNCTION 29 #define FUNCTION "Queue::Parameters (copy)" 30 Parameters::Parameters (Parameters & param): 31 _size_queue (param._size_queue), 32 _size_data (param._size_data ) 40 #define FUNCTION "Queue::~Parameters" 41 Parameters::~Parameters () 33 42 { 34 43 log_printf(FUNC,Queue,FUNCTION,"Begin"); 35 test();36 44 log_printf(FUNC,Queue,FUNCTION,"End"); 37 45 }; 38 46 39 47 #undef FUNCTION 40 #define FUNCTION "Queue:: ~Parameters"41 Parameters::~Parameters ()48 #define FUNCTION "Queue::copy" 49 void Parameters::copy (void) 42 50 { 43 51 log_printf(FUNC,Queue,FUNCTION,"Begin"); -
trunk/IPs/systemC/processor/Morpheo/Behavioural/Generic/Queue/src/Queue.cpp
r81 r88 35 35 log_printf(FUNC,Queue,FUNCTION,"Begin"); 36 36 37 #if DEBUG_Core == true 38 log_printf(INFO,Core,FUNCTION,_("<%s> Parameters"),_name.c_str()); 39 40 std::cout << *param << std::endl; 41 #endif 42 37 43 log_printf(INFO,Queue,FUNCTION,"Allocation"); 38 44 allocation (); 39 45 40 46 #ifdef STATISTICS 41 if ( _usage & USE_STATISTICS)47 if (usage_is_set(_usage,USE_STATISTICS)) 42 48 { 43 49 log_printf(INFO,Queue,FUNCTION,"Allocation of statistics"); … … 48 54 49 55 #ifdef VHDL 50 if ( _usage & USE_VHDL)56 if (usage_is_set(_usage,USE_VHDL)) 51 57 { 52 58 // generate the vhdl … … 58 64 59 65 #ifdef SYSTEMC 60 if ( _usage & USE_SYSTEMC)66 if (usage_is_set(_usage,USE_SYSTEMC)) 61 67 { 62 68 log_printf(INFO,Queue,FUNCTION,"Method - transition"); … … 92 98 93 99 #ifdef STATISTICS 94 if ( _usage & USE_STATISTICS)100 if (usage_is_set(_usage,USE_STATISTICS)) 95 101 { 96 102 log_printf(INFO,Queue,FUNCTION,"Generate Statistics file"); -
trunk/IPs/systemC/processor/Morpheo/Behavioural/Generic/Queue/src/Queue_allocation.cpp
r81 r88 75 75 } 76 76 77 if (usage_is_set(_usage,USE_SYSTEMC)) 78 { 77 79 // ~~~~~[ Register ]~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 78 80 _queue_control = new morpheo::behavioural::generic::queue_control::Queue_Control::Queue_Control(_param->_size_queue); 79 81 _queue_data = new Tdata_t [_param->_size_queue]; 82 } 80 83 81 84 // ~~~~~[ Component ]~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 82 85 83 86 #ifdef POSITION 84 _component->generate_file(); 87 if (usage_is_set(_usage,USE_POSITION)) 88 _component->generate_file(); 85 89 #endif 86 90 -
trunk/IPs/systemC/processor/Morpheo/Behavioural/Generic/Queue/src/Queue_deallocation.cpp
r81 r88 20 20 log_printf(FUNC,Queue,FUNCTION,"Begin"); 21 21 22 if ( _usage & USE_SYSTEMC)22 if (usage_is_set(_usage,USE_SYSTEMC)) 23 23 { 24 24 delete in_CLOCK ; … … 33 33 delete out_RETIRE_DATA; 34 34 35 // ~~~~~[ Component ]~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 36 delete _queue_control; 37 delete _queue_data; 35 38 } 36 // ~~~~~[ Component ]~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 37 delete _queue_control; 38 delete _queue_data; 39 39 40 delete _component; 40 41 -
trunk/IPs/systemC/processor/Morpheo/Behavioural/Generic/Queue/src/Queue_end_cycle.cpp
r81 r88 21 21 22 22 #ifdef STATISTICS 23 _stat->end_cycle(); 23 if (usage_is_set(_usage,USE_STATISTICS)) 24 _stat->end_cycle(); 24 25 #endif 25 26 … … 27 28 // Evaluation before read the ouput signal 28 29 // sc_start(0); 29 _interfaces->testbench(); 30 if (usage_is_set(_usage,USE_VHDL_TESTBENCH)) 31 _interfaces->testbench(); 30 32 #endif 31 33
Note: See TracChangeset
for help on using the changeset viewer.