- Timestamp:
- Dec 10, 2008, 7:31:39 PM (16 years ago)
- Location:
- trunk/IPs/systemC/processor/Morpheo/Behavioural/Generic/Sort
- Files:
-
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/IPs/systemC/processor/Morpheo/Behavioural/Generic/Sort/SelfTest/Makefile
r81 r88 24 24 library_clean : Sort_library_clean 25 25 26 local_clean : 27 26 28 include $(DIR_COMPONENT)/Makefile.deps 27 29 include $(DIR_MORPHEO)/Behavioural/Makefile.flags -
trunk/IPs/systemC/processor/Morpheo/Behavioural/Generic/Sort/SelfTest/src/test.cpp
r82 r88 31 31 #endif 32 32 33 Tusage_t _usage = USE_ALL; 34 35 // _usage = usage_unset(_usage,USE_SYSTEMC ); 36 // _usage = usage_unset(_usage,USE_VHDL ); 37 // _usage = usage_unset(_usage,USE_VHDL_TESTBENCH ); 38 // _usage = usage_unset(_usage,USE_VHDL_TESTBENCH_ASSERT); 39 // _usage = usage_unset(_usage,USE_POSITION ); 40 // _usage = usage_unset(_usage,USE_STATISTICS ); 41 // _usage = usage_unset(_usage,USE_INFORMATION ); 42 33 43 Sort * _Sort = new Sort (name.c_str(), 34 44 #ifdef STATISTICS … … 36 46 #endif 37 47 _param, 38 USE_ALL);48 _usage); 39 49 40 50 #ifdef SYSTEMC … … 154 164 tab [ptr]._val = false; 155 165 156 LABEL("OUTPUT [%d] %d - %d",i, out_OUTPUT_VAL [i]->read(), out_OUTPUT_DATA [i]->read(), out_OUTPUT_INDEX [i]->read());166 LABEL("OUTPUT [%d] %d %d - %d",i, out_OUTPUT_VAL [i]->read(), out_OUTPUT_DATA [i]->read(), out_OUTPUT_INDEX [i]->read()); 157 167 158 168 TEST(Tcontrol_t,out_OUTPUT_VAL [i]->read(),find); -
trunk/IPs/systemC/processor/Morpheo/Behavioural/Generic/Sort/include/Parameters.h
r81 r88 42 42 public : ~Parameters () ; 43 43 44 public : void copy (void); 45 44 46 public : Parameters_test msg_error (void); 45 47 -
trunk/IPs/systemC/processor/Morpheo/Behavioural/Generic/Sort/src/Parameters.cpp
r81 r88 55 55 }; 56 56 57 #undef FUNCTION 58 #define FUNCTION "Sort::copy" 59 void Parameters::copy (void) 60 { 61 log_printf(FUNC,Sort,FUNCTION,"Begin"); 62 log_printf(FUNC,Sort,FUNCTION,"End"); 63 }; 64 57 65 }; // end namespace sort 58 66 }; // end namespace generic -
trunk/IPs/systemC/processor/Morpheo/Behavioural/Generic/Sort/src/Sort.cpp
r81 r88 35 35 log_printf(FUNC,Sort,FUNCTION,"Begin"); 36 36 37 #if DEBUG_Sort == true 38 log_printf(INFO,Sort,FUNCTION,_("<%s> Parameters"),_name.c_str()); 39 40 std::cout << *param << std::endl; 41 #endif 42 37 43 log_printf(INFO,Sort,FUNCTION,"Allocation"); 38 44 … … 44 50 45 51 #ifdef STATISTICS 46 if ( _usage & USE_STATISTICS)52 if (usage_is_set(_usage,USE_STATISTICS)) 47 53 { 48 54 log_printf(INFO,Sort,FUNCTION,"Allocation of statistics"); … … 53 59 54 60 #ifdef VHDL 55 if ( _usage & USE_VHDL)61 if (usage_is_set(_usage,USE_VHDL)) 56 62 { 57 63 // generate the vhdl … … 63 69 64 70 #ifdef SYSTEMC 65 if ( _usage & USE_SYSTEMC)71 if (usage_is_set(_usage,USE_SYSTEMC)) 66 72 { 67 73 log_printf(INFO,Sort,FUNCTION,"Method - transition"); … … 117 123 118 124 #ifdef STATISTICS 119 if ( _usage & USE_STATISTICS)125 if (usage_is_set(_usage,USE_STATISTICS)) 120 126 { 121 127 statistics_deallocation(); -
trunk/IPs/systemC/processor/Morpheo/Behavioural/Generic/Sort/src/Sort_allocation.cpp
r81 r88 13 13 namespace generic { 14 14 namespace sort { 15 16 17 15 18 16 #undef FUNCTION … … 75 73 76 74 #ifdef POSITION 77 _component->generate_file(); 75 if (usage_is_set(_usage,USE_POSTION)) 76 _component->generate_file(); 78 77 #endif 79 78 -
trunk/IPs/systemC/processor/Morpheo/Behavioural/Generic/Sort/src/Sort_deallocation.cpp
r81 r88 20 20 log_printf(FUNC,Sort,FUNCTION,"Begin"); 21 21 22 if ( _usage & USE_SYSTEMC)22 if (usage_is_set(_usage,USE_SYSTEMC)) 23 23 { 24 24 delete in_CLOCK ; -
trunk/IPs/systemC/processor/Morpheo/Behavioural/Generic/Sort/src/Sort_end_cycle.cpp
r81 r88 22 22 23 23 #ifdef STATISTICS 24 _stat->end_cycle(); 24 if (usage_is_set(_usage,USE_STATISTICS)) 25 _stat->end_cycle(); 25 26 #endif 26 27 … … 28 29 // Evaluation before read the ouput signal 29 30 // sc_start(0); 30 _interfaces->testbench(); 31 if (usage_is_set(_usage,USE_VHDL_TESTBENCH)) 32 _interfaces->testbench(); 31 33 #endif 32 34
Note: See TracChangeset
for help on using the changeset viewer.