Changeset 88 for trunk/IPs/systemC/processor/Morpheo/Behavioural/Generic/Select/Select_Priority_Fixed
- Timestamp:
- Dec 10, 2008, 7:31:39 PM (16 years ago)
- Location:
- trunk/IPs/systemC/processor/Morpheo/Behavioural/Generic/Select/Select_Priority_Fixed
- Files:
-
- 9 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/IPs/systemC/processor/Morpheo/Behavioural/Generic/Select/Select_Priority_Fixed/SelfTest/Makefile
r81 r88 23 23 library_clean : Select_Priority_Fixed_library_clean 24 24 25 local_clean : 26 25 27 include ../Makefile.deps 26 28 include $(DIR_MORPHEO)/Behavioural/Makefile.flags -
trunk/IPs/systemC/processor/Morpheo/Behavioural/Generic/Select/Select_Priority_Fixed/SelfTest/src/test.cpp
r82 r88 18 18 cout << "<" << name << "> : Simulation SystemC" << endl; 19 19 20 21 20 #ifdef STATISTICS 22 21 morpheo::behavioural::Parameters_Statistics * _param_stat = new morpheo::behavioural::Parameters_Statistics (5,50); 23 22 #endif 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 Select_Priority_Fixed * _Select_Priority_Fixed = new Select_Priority_Fixed 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/Select/Select_Priority_Fixed/include/Parameters.h
r81 r88 31 31 bool encoding_one_hot, 32 32 bool encoding_compact); 33 public : Parameters (Parameters & param) ;33 // public : Parameters (Parameters & param) ; 34 34 public : ~Parameters () ; 35 35 36 public : void copy (void); 37 36 38 public : Parameters_test msg_error (void); 39 37 40 public : std::string print (uint32_t depth); 38 41 public : friend std::ostream& operator<< (std::ostream& output_stream, -
trunk/IPs/systemC/processor/Morpheo/Behavioural/Generic/Select/Select_Priority_Fixed/include/Select_Priority_Fixed.h
r82 r88 95 95 public : ~Select_Priority_Fixed (void); 96 96 97 #ifdef SYSTEMC98 97 private : void allocation (void); 99 98 private : void deallocation (void); 100 99 100 #ifdef SYSTEMC 101 101 # if defined(STATISTICS) or defined(VHDL_TESTBENCH) 102 102 public : void transition (void); -
trunk/IPs/systemC/processor/Morpheo/Behavioural/Generic/Select/Select_Priority_Fixed/src/Parameters.cpp
r81 r88 28 28 }; 29 29 30 Parameters::Parameters (Parameters & param):31 _nb_entity (param._nb_entity ),32 _encoding_one_hot (param._encoding_one_hot),33 _encoding_compact (param._encoding_compact),34 _size_entity (param._size_entity )35 {36 log_printf(FUNC,Select_Priority_Fixed,"Parameters","Begin");37 test();38 log_printf(FUNC,Select_Priority_Fixed,"Parameters","End");39 };30 // Parameters::Parameters (Parameters & param): 31 // _nb_entity (param._nb_entity ), 32 // _encoding_one_hot (param._encoding_one_hot), 33 // _encoding_compact (param._encoding_compact), 34 // _size_entity (param._size_entity ) 35 // { 36 // log_printf(FUNC,Select_Priority_Fixed,"Parameters","Begin"); 37 // test(); 38 // log_printf(FUNC,Select_Priority_Fixed,"Parameters","End"); 39 // }; 40 40 41 41 Parameters::~Parameters () … … 43 43 log_printf(FUNC,Select_Priority_Fixed,"~Parameters","Begin"); 44 44 log_printf(FUNC,Select_Priority_Fixed,"~Parameters","End"); 45 }; 46 47 void Parameters::copy (void) 48 { 49 log_printf(FUNC,Select_Priority_Fixed,"copy","Begin"); 50 log_printf(FUNC,Select_Priority_Fixed,"copy","End"); 45 51 }; 46 52 -
trunk/IPs/systemC/processor/Morpheo/Behavioural/Generic/Select/Select_Priority_Fixed/src/Select_Priority_Fixed.cpp
r81 r88 2 2 * $Id$ 3 3 * 4 * [ 4 * [ Description ] 5 5 * 6 6 */ … … 33 33 log_printf(FUNC,Select_Priority_Fixed,"Select_Priority_Fixed","Begin"); 34 34 35 #if DEBUG_Select_Priority_Fixed == true 36 log_printf(INFO,Select_Priority_Fixed,FUNCTION,_("<%s> Parameters"),_name.c_str()); 37 38 std::cout << *param << std::endl; 39 #endif 40 35 41 log_printf(INFO,Select_Priority_Fixed,"Select_Priority_Fixed","Allocation"); 36 42 allocation (); 37 43 38 44 #ifdef STATISTICS 39 if ( _usage & USE_STATISTICS)45 if (usage_is_set(_usage,USE_STATISTICS)) 40 46 { 41 47 log_printf(INFO,Select_Priority_Fixed,"Select_Priority_Fixed","Allocation of statistics"); … … 46 52 47 53 #ifdef VHDL 48 // generate the vhdl 49 log_printf(INFO,Select_Priority_Fixed,"Select_Priority_Fixed","Generate the vhdl"); 50 51 vhdl(); 54 if (usage_is_set(_usage,USE_VHDL) 55 { 56 // generate the vhdl 57 log_printf(INFO,Select_Priority_Fixed,"Select_Priority_Fixed","Generate the vhdl"); 58 59 vhdl(); 60 } 52 61 #endif 53 62 54 63 #ifdef SYSTEMC 55 if (_usage & USE_SYSTEMC)56 {64 if (usage_is_set(_usage,USE_SYSTEMC)) 65 { 57 66 # if defined(STATISTICS) or defined(VHDL_TESTBENCH) 58 67 log_printf(INFO,Select_Priority_Fixed,"Select_Priority_Fixed","Method - transition"); … … 96 105 97 106 #ifdef STATISTICS 98 if ( _usage & USE_STATISTICS)107 if (usage_is_set(_usage,USE_STATISTICS)) 99 108 { 100 109 log_printf(INFO,Select_Priority_Fixed,"~Select_Priority_Fixed","Generate Statistics file"); … … 104 113 #endif 105 114 106 #ifdef SYSTEMC107 115 log_printf(INFO,Select_Priority_Fixed,"~Select_Priority_Fixed","Deallocation"); 108 109 116 deallocation (); 110 #endif111 117 112 118 log_printf(FUNC,Select_Priority_Fixed,"~Select_Priority_Fixed","End"); -
trunk/IPs/systemC/processor/Morpheo/Behavioural/Generic/Select/Select_Priority_Fixed/src/Select_Priority_Fixed_allocation.cpp
r81 r88 1 #ifdef SYSTEMC2 1 /* 3 2 * $Id$ … … 30 29 _interfaces = entity->set_interfaces(); 31 30 32 // ~~~~~[ 31 // ~~~~~[ Interface : "" ]~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 33 32 34 33 Interface_fifo * interface = _interfaces->set_interface("" … … 63 62 64 63 #ifdef POSITION 65 _component->generate_file(); 64 if (usage_is_set(_usage,USE_POSITION)) 65 _component->generate_file(); 66 66 #endif 67 67 … … 74 74 }; // end namespace behavioural 75 75 }; // end namespace morpheo 76 #endif -
trunk/IPs/systemC/processor/Morpheo/Behavioural/Generic/Select/Select_Priority_Fixed/src/Select_Priority_Fixed_deallocation.cpp
r81 r88 1 #ifdef SYSTEMC2 1 /* 3 2 * $Id$ … … 20 19 log_printf(FUNC,Select_Priority_Fixed,"deallocation","Begin"); 21 20 22 if ( _usage & USE_SYSTEMC)21 if (usage_is_set(_usage,USE_SYSTEMC)) 23 22 { 24 23 delete in_CLOCK; … … 48 47 }; // end namespace behavioural 49 48 }; // end namespace morpheo 50 #endif -
trunk/IPs/systemC/processor/Morpheo/Behavioural/Generic/Select/Select_Priority_Fixed/src/Select_Priority_Fixed_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.