Changeset 75 for trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_Execute_loop/Execute_loop/Register_unit/Register_unit_Glue
- Timestamp:
- Jan 31, 2008, 6:46:41 PM (16 years ago)
- Location:
- trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_Execute_loop/Execute_loop/Register_unit/Register_unit_Glue
- Files:
-
- 6 deleted
- 7 edited
- 2 moved
Legend:
- Unmodified
- Added
- Removed
-
trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_Execute_loop/Execute_loop/Register_unit/Register_unit_Glue/include/Parameters.h
r60 r75 50 50 public : ~Parameters () ; 51 51 52 public : string msg_error(void);52 public : std::string msg_error (void); 53 53 54 public : st ring print (uint32_t depth);55 public : friend ostream& operator<< (ostream& output_stream,56 54 public : std::string print (uint32_t depth); 55 public : friend std::ostream& operator<< (std::ostream& output_stream, 56 morpheo::behavioural::core::multi_execute_loop::execute_loop::register_unit::register_unit_glue::Parameters & x); 57 57 }; 58 58 -
trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_Execute_loop/Execute_loop/Register_unit/Register_unit_Glue/include/Register_unit_Glue.h
r61 r75 20 20 #include "Behavioural/Core/Multi_Execute_loop/Execute_loop/Register_unit/Register_unit_Glue/include/Parameters.h" 21 21 #ifdef STATISTICS 22 #include "Behavioural/ Core/Multi_Execute_loop/Execute_loop/Register_unit/Register_unit_Glue/include/Statistics.h"22 #include "Behavioural/include/Stat.h" 23 23 #endif 24 24 #include "Behavioural/include/Component.h" … … 27 27 #endif 28 28 #include "Behavioural/include/Usage.h" 29 30 using namespace std;31 29 32 30 namespace morpheo { … … 47 45 // -----[ fields ]---------------------------------------------------- 48 46 // Parameters 49 protected : const st ring _name;47 protected : const std::string _name; 50 48 protected : const Parameters * _param; 51 49 private : const Tusage_t _usage; 52 50 53 //#ifdef STATISTICS 54 // protected : const morpheo::behavioural::Parameters_Statistics * _param_statistics; 55 //#endif 56 57 #ifdef STATISTICS 58 private : Statistics * _stat; 51 #ifdef STATISTICS 52 public : Stat * _stat; 59 53 #endif 60 54 … … 169 163 sc_module_name name, 170 164 #else 171 st ring name,165 std::string name, 172 166 #endif 173 167 #ifdef STATISTICS … … 183 177 184 178 #ifdef SYSTEMC 185 //#if defined(STATISTICS) or defined(VHDL_TESTBENCH)186 179 public : void transition (void); 187 180 public : void genMealy_gpr_read (void); … … 199 192 public : void genMealy_insert (void); 200 193 public : void genMealy_retire (void); 201 202 //#endif203 194 #endif 204 #ifdef STATISTICS 205 public : string statistics (uint32_t depth); 195 196 #ifdef STATISTICS 197 public : void statistics_declaration (morpheo::behavioural::Parameters_Statistics * param_statistics); 206 198 #endif 207 199 … … 212 204 #endif 213 205 214 #if def VHDL_TESTBENCH215 private : void vhdl_testbench_transition(void);206 #if defined(STATISTICS) or defined(VHDL_TESTBENCH) 207 private : void end_cycle (void); 216 208 #endif 217 209 }; -
trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_Execute_loop/Execute_loop/Register_unit/Register_unit_Glue/src/Parameters_msg_error.cpp
r60 r75 9 9 #include "Behavioural/Core/Multi_Execute_loop/Execute_loop/Register_unit/Register_unit_Glue/include/Parameters.h" 10 10 #include <sstream> 11 using namespace std;12 11 13 12 namespace morpheo { … … 22 21 #undef FUNCTION 23 22 #define FUNCTION "Register_unit_Glue::msg_error" 24 st ring Parameters::msg_error(void)23 std::string Parameters::msg_error(void) 25 24 { 26 25 log_printf(FUNC,Register_unit_Glue,FUNCTION,"Begin"); 27 26 28 st ring msg = "";27 std::string msg = ""; 29 28 30 29 return msg; -
trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_Execute_loop/Execute_loop/Register_unit/Register_unit_Glue/src/Parameters_print.cpp
r60 r75 8 8 #include "Behavioural/Core/Multi_Execute_loop/Execute_loop/Register_unit/Register_unit_Glue/include/Parameters.h" 9 9 #include "Behavioural/include/XML.h" 10 using namespace std;11 10 12 11 namespace morpheo { … … 21 20 #undef FUNCTION 22 21 #define FUNCTION "Register_unit_Glue::print" 23 st ring Parameters::print (uint32_t depth)22 std::string Parameters::print (uint32_t depth) 24 23 { 25 24 log_printf(FUNC,Register_unit_Glue,FUNCTION,"Begin"); … … 56 55 #undef FUNCTION 57 56 #define FUNCTION "Register_unit_Glue::operator<<" 58 ostream& operator<< (ostream& output_stream ,59 57 std::ostream& operator<< (std::ostream& output_stream , 58 morpheo::behavioural::core::multi_execute_loop::execute_loop::register_unit::register_unit_glue::Parameters & x) 60 59 { 61 60 log_printf(FUNC,Register_unit_Glue,FUNCTION,"Begin"); -
trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_Execute_loop/Execute_loop/Register_unit/Register_unit_Glue/src/Register_unit_Glue.cpp
r61 r75 24 24 sc_module_name name, 25 25 #else 26 st ring name,26 std::string name, 27 27 #endif 28 28 #ifdef STATISTICS … … 35 35 ,_param (param) 36 36 ,_usage (usage) 37 // #ifdef STATISTICS38 // ,_param_statistics (param_statistics)39 // #endif40 37 { 41 38 log_printf(FUNC,Register_unit_Glue,FUNCTION,"Begin"); … … 48 45 49 46 // Allocation of statistics 50 _stat = new Statistics (static_cast<string>(_name), 51 param_statistics , 52 param); 47 statistics_declaration(param_statistics); 53 48 #endif 54 49 … … 549 544 log_printf(INFO,Register_unit_Glue,FUNCTION,"Generate Statistics file"); 550 545 551 _stat->generate_file(statistics(0));552 546 delete _stat; 553 547 #endif -
trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_Execute_loop/Execute_loop/Register_unit/Register_unit_Glue/src/Register_unit_Glue_allocation.cpp
r60 r75 22 22 void Register_unit_Glue::allocation (void) 23 23 { 24 string rename;25 26 24 log_printf(FUNC,Register_unit_Glue,FUNCTION,"Begin"); 27 25 -
trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_Execute_loop/Execute_loop/Register_unit/Register_unit_Glue/src/Register_unit_Glue_end_cycle.cpp
r60 r75 1 #if def VHDL_TESTBENCH1 #if defined(STATISTICS) or defined(VHDL_TESTBENCH) 2 2 /* 3 3 * $Id$ … … 17 17 namespace register_unit_glue { 18 18 19 20 19 #undef FUNCTION 21 #define FUNCTION "Register_unit_Glue:: vhdl_testbench_transition"22 void Register_unit_Glue::vhdl_testbench_transition()20 #define FUNCTION "Register_unit_Glue::end_cycle" 21 void Register_unit_Glue::end_cycle () 23 22 { 24 23 log_printf(FUNC,Register_unit_Glue,FUNCTION,"Begin"); 25 24 25 #ifdef STATISTICS 26 _stat->end_cycle(); 27 #endif 28 29 #ifdef VHDL_TESTBENCH 26 30 // Evaluation before read the ouput signal 27 // sc_start(0); 28 31 // sc_start(0); 29 32 _interfaces->testbench(); 33 #endif 30 34 31 35 log_printf(FUNC,Register_unit_Glue,FUNCTION,"End"); -
trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_Execute_loop/Execute_loop/Register_unit/Register_unit_Glue/src/Register_unit_Glue_statistics_declaration.cpp
r60 r75 17 17 namespace register_unit_glue { 18 18 19 20 19 #undef FUNCTION 21 #define FUNCTION "Register_unit_Glue::statistics "22 string Register_unit_Glue::statistics (uint32_t depth)20 #define FUNCTION "Register_unit_Glue::statistics_declaration" 21 void Register_unit_Glue::statistics_declaration (morpheo::behavioural::Parameters_Statistics * param_statistics) 23 22 { 24 23 log_printf(FUNC,Register_unit_Glue,FUNCTION,"Begin"); 25 24 26 string txt = _stat->print(depth); 25 _stat = new Stat (static_cast<std::string>(_name), 26 "Register_unit_Glue", 27 param_statistics); 27 28 28 29 log_printf(FUNC,Register_unit_Glue,FUNCTION,"End"); 29 30 return txt;31 30 }; 32 31 -
trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_Execute_loop/Execute_loop/Register_unit/Register_unit_Glue/src/Register_unit_Glue_transition.cpp
r60 r75 1 1 #ifdef SYSTEMC 2 //#if defined(STATISTICS) or defined(VHDL_TESTBENCH)3 2 /* 4 3 * $Id$ … … 25 24 log_printf(FUNC,Register_unit_Glue,FUNCTION,"Begin"); 26 25 27 #ifdef STATISTICS 28 _stat->add(); 29 #endif 30 31 #ifdef VHDL_TESTBENCH 32 vhdl_testbench_transition (); 26 #if defined(STATISTICS) or defined(VHDL_TESTBENCH) 27 end_cycle(); 33 28 #endif 34 29 … … 45 40 }; // end namespace morpheo 46 41 #endif 47 //#endif
Note: See TracChangeset
for help on using the changeset viewer.