Changeset 88 for trunk/IPs/systemC/processor/Morpheo/Behavioural/Generic/RegisterFile/RegisterFile_Multi_Banked/src/RegisterFile_Multi_Banked.cpp
- Timestamp:
- Dec 10, 2008, 7:31:39 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/IPs/systemC/processor/Morpheo/Behavioural/Generic/RegisterFile/RegisterFile_Multi_Banked/src/RegisterFile_Multi_Banked.cpp
r82 r88 14 14 namespace registerfile_multi_banked { 15 15 16 #undef FUNCTION 17 #define FUNCTION "RegisterFile_Multi_Banked::RegisterFile_Multi_Banked" 16 18 RegisterFile_Multi_Banked::RegisterFile_Multi_Banked 17 19 ( … … 30 32 ,_usage (usage) 31 33 { 32 log_printf(FUNC,RegisterFile_Multi_Banked, "RegisterFile_Multi_Banked","Begin");34 log_printf(FUNC,RegisterFile_Multi_Banked,FUNCTION,"Begin"); 33 35 34 #if def SYSTEMC35 log_printf(INFO,RegisterFile_Multi_Banked, "RegisterFile_Multi_Banked","Allocation");36 #if DEBUG_RegisterFile_Multi_Banked == true 37 log_printf(INFO,RegisterFile_Multi_Banked,FUNCTION,_("<%s> Parameters"),_name.c_str()); 36 38 39 std::cout << *param << std::endl; 40 #endif 41 42 log_printf(INFO,RegisterFile_Multi_Banked,FUNCTION,"Allocation"); 43 37 44 allocation (); 38 #endif39 45 40 46 #ifdef STATISTICS 41 log_printf(INFO,RegisterFile_Multi_Banked,"RegisterFile_Multi_Banked","Allocation of statistics"); 42 43 // Allocation of statistics 44 statistics_declaration(param_statistics); 47 if (usage_is_set(_usage,USE_STATISTICS)) 48 { 49 log_printf(INFO,RegisterFile_Multi_Banked,FUNCTION,"Allocation of statistics"); 50 51 // Allocation of statistics 52 statistics_declaration(param_statistics); 53 } 45 54 #endif 46 55 47 56 #ifdef VHDL 48 // generate the vhdl 49 log_printf(INFO,RegisterFile_Multi_Banked,"RegisterFile_Multi_Banked","Generate the vhdl"); 50 51 vhdl(); 57 if (usage_is_set(_usage,USE_VHDL)) 58 { 59 // generate the vhdl 60 log_printf(INFO,RegisterFile_Multi_Banked,FUNCTION,"Generate the vhdl"); 61 62 vhdl(); 63 } 52 64 #endif 53 65 54 66 #ifdef SYSTEMC 67 if (usage_is_set(_usage,USE_SYSTEMC)) 68 { 55 69 // Function pointer 56 70 if (_param->_crossbar == FULL_CROSSBAR) … … 67 81 } 68 82 69 log_printf(INFO,RegisterFile_Multi_Banked, "RegisterFile_Multi_Banked","Method - transition");83 log_printf(INFO,RegisterFile_Multi_Banked,FUNCTION,"Method - transition"); 70 84 71 85 SC_METHOD (transition); … … 77 91 #endif 78 92 79 log_printf(INFO,RegisterFile_Multi_Banked, "RegisterFile_Multi_Banked","Method - genMealy_write");93 log_printf(INFO,RegisterFile_Multi_Banked,FUNCTION,"Method - genMealy_write"); 80 94 81 95 SC_METHOD (genMealy_read); … … 129 143 } 130 144 #endif 131 145 } 132 146 #endif 133 log_printf(FUNC,RegisterFile_Multi_Banked, "RegisterFile_Multi_Banked","End");147 log_printf(FUNC,RegisterFile_Multi_Banked,FUNCTION,"End"); 134 148 }; 135 149 150 #undef FUNCTION 151 #define FUNCTION "RegisterFile_Multi_Banked::~RegisterFile_Multi_Banked" 136 152 RegisterFile_Multi_Banked::~RegisterFile_Multi_Banked (void) 137 153 { 138 log_printf(FUNC,RegisterFile_Multi_Banked, "~RegisterFile_Multi_Banked","Begin");154 log_printf(FUNC,RegisterFile_Multi_Banked,FUNCTION,"Begin"); 139 155 140 156 #ifdef STATISTICS 141 log_printf(INFO,RegisterFile_Multi_Banked,"~RegisterFile_Multi_Banked","Generate Statistics file"); 142 143 delete _stat; 157 if (usage_is_set(_usage,USE_STATISTICS)) 158 { 159 log_printf(INFO,RegisterFile_Multi_Banked,FUNCTION,"Generate Statistics file"); 160 delete _stat; 161 } 144 162 #endif 145 163 146 #ifdef SYSTEMC 147 log_printf(INFO,RegisterFile_Multi_Banked,"~RegisterFile_Multi_Banked","Deallocation");164 log_printf(INFO,RegisterFile_Multi_Banked,FUNCTION,"Deallocation"); 165 deallocation (); 148 166 149 deallocation (); 150 #endif 151 152 log_printf(FUNC,RegisterFile_Multi_Banked,"~RegisterFile_Multi_Banked","End"); 167 log_printf(FUNC,RegisterFile_Multi_Banked,FUNCTION,"End"); 153 168 }; 154 169
Note: See TracChangeset
for help on using the changeset viewer.