- Timestamp:
- Sep 6, 2007, 6:30:49 PM (17 years ago)
- Location:
- trunk/IPs/systemC/processor/Morpheo/Behavioural/New_Component/src
- Files:
-
- 16 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/IPs/systemC/processor/Morpheo/Behavioural/New_Component/src/New_Component.cpp
r41 r53 12 12 @NAMESPACE_BEGIN 13 13 14 #undef FUNCTION 15 #define FUNCTION "@COMPONENT::@COMPONENT" 14 16 #ifdef SYSTEMC 15 17 @COMPONENT::@COMPONENT (sc_module_name name, … … 18 20 #endif 19 21 #ifdef STATISTICS 20 morpheo::behavioural::Parameters_Statisticsparam_statistics,22 morpheo::behavioural::Parameters_Statistics * param_statistics, 21 23 #endif 22 morpheo::behavioural::@NAMESPACE_USE::Parametersparam ):24 morpheo::behavioural::@NAMESPACE_USE::Parameters * param ): 23 25 _name (name) 24 26 ,_param (param) … … 27 29 // #endif 28 30 { 29 log_printf(FUNC,@COMPONENT, "@COMPONENT","Begin");31 log_printf(FUNC,@COMPONENT,FUNCTION,"Begin"); 30 32 31 33 #ifdef SYSTEMC 32 log_printf(INFO,@COMPONENT, "@COMPONENT","Allocation");34 log_printf(INFO,@COMPONENT,FUNCTION,"Allocation"); 33 35 34 36 allocation (); … … 36 38 37 39 #ifdef STATISTICS 38 log_printf(INFO,@COMPONENT, "@COMPONENT","Allocation of statistics");40 log_printf(INFO,@COMPONENT,FUNCTION,"Allocation of statistics"); 39 41 40 42 // Allocation of statistics … … 46 48 #ifdef VHDL 47 49 // generate the vhdl 48 log_printf(INFO,@COMPONENT, "@COMPONENT","Generate the vhdl");50 log_printf(INFO,@COMPONENT,FUNCTION,"Generate the vhdl"); 49 51 50 52 vhdl(); … … 53 55 #ifdef SYSTEMC 54 56 //#if defined(STATISTICS) or defined(VHDL_TESTBENCH) 55 log_printf(INFO,@COMPONENT, "@COMPONENT","Method - transition");57 log_printf(INFO,@COMPONENT,FUNCTION,"Method - transition"); 56 58 57 59 SC_METHOD (transition); … … 65 67 66 68 #endif 67 log_printf(FUNC,@COMPONENT, "@COMPONENT","End");69 log_printf(FUNC,@COMPONENT,FUNCTION,"End"); 68 70 }; 69 71 72 #undef FUNCTION 73 #define FUNCTION "@COMPONENT::~@COMPONENT" 70 74 @COMPONENT::~@COMPONENT (void) 71 75 { 72 log_printf(FUNC,@COMPONENT, "~@COMPONENT","Begin");76 log_printf(FUNC,@COMPONENT,FUNCTION,"Begin"); 73 77 74 78 #ifdef STATISTICS 75 log_printf(INFO,@COMPONENT, "~@COMPONENT","Generate Statistics file");79 log_printf(INFO,@COMPONENT,FUNCTION,"Generate Statistics file"); 76 80 77 81 _stat->generate_file(statistics(0)); … … 81 85 82 86 #ifdef SYSTEMC 83 log_printf(INFO,@COMPONENT, "~@COMPONENT","Deallocation");87 log_printf(INFO,@COMPONENT,FUNCTION,"Deallocation"); 84 88 85 89 deallocation (); 86 90 #endif 87 91 88 log_printf(FUNC,@COMPONENT, "~@COMPONENT","End");92 log_printf(FUNC,@COMPONENT,FUNCTION,"End"); 89 93 }; 90 94 -
trunk/IPs/systemC/processor/Morpheo/Behavioural/New_Component/src/New_Component_allocation.cpp
r50 r53 13 13 @NAMESPACE_BEGIN 14 14 15 16 #undef FUNCTION 17 #define FUNCTION "@COMPONENT::allocation" 15 18 void @COMPONENT::allocation (void) 16 19 { 17 20 string rename; 18 21 19 log_printf(FUNC,@COMPONENT, "allocation","Begin");22 log_printf(FUNC,@COMPONENT,FUNCTION,"Begin"); 20 23 21 24 _component = new Component (); … … 49 52 #endif 50 53 51 log_printf(FUNC,@COMPONENT, "allocation","End");54 log_printf(FUNC,@COMPONENT,FUNCTION,"End"); 52 55 }; 53 56 -
trunk/IPs/systemC/processor/Morpheo/Behavioural/New_Component/src/New_Component_deallocation.cpp
r42 r53 1 #undef FUNCTION 2 #define FUNCTION "@COMPONENT::" 3 1 4 #ifdef SYSTEMC 2 5 /* … … 13 16 @NAMESPACE_BEGIN 14 17 18 #undef FUNCTION 19 #define FUNCTION "@COMPONENT::deallocation" 15 20 void @COMPONENT::deallocation (void) 16 21 { 17 log_printf(FUNC,@COMPONENT, "deallocation","Begin");22 log_printf(FUNC,@COMPONENT,FUNCTION,"Begin"); 18 23 19 24 //#if defined(STATISTICS) or defined(VHDL_TESTBENCH) 20 delete in_CLOCK;25 delete in_CLOCK ; 21 26 //#endif 22 delete in_NRESET;27 delete in_NRESET; 23 28 24 29 // ~~~~~[ Component ]~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ … … 26 31 delete _component; 27 32 28 log_printf(FUNC,@COMPONENT, "deallocation","End");33 log_printf(FUNC,@COMPONENT,FUNCTION,"End"); 29 34 }; 30 35 -
trunk/IPs/systemC/processor/Morpheo/Behavioural/New_Component/src/New_Component_statistics.cpp
r2 r53 13 13 @NAMESPACE_BEGIN 14 14 15 #undef FUNCTION 16 #define FUNCTION "@COMPONENT::statistics" 15 17 string @COMPONENT::statistics (uint32_t depth) 16 18 { 17 log_printf(FUNC,@COMPONENT, "statistics","Begin");19 log_printf(FUNC,@COMPONENT,FUNCTION,"Begin"); 18 20 19 21 string txt = _stat->print(depth); 20 22 21 log_printf(FUNC,@COMPONENT, "statistics","End");23 log_printf(FUNC,@COMPONENT,FUNCTION,"End"); 22 24 23 25 return txt; -
trunk/IPs/systemC/processor/Morpheo/Behavioural/New_Component/src/New_Component_transition.cpp
r15 r53 14 14 @NAMESPACE_BEGIN 15 15 16 #undef FUNCTION 17 #define FUNCTION "@COMPONENT::transition" 16 18 void @COMPONENT::transition (void) 17 19 { 18 log_printf(FUNC,@COMPONENT, "transition","Begin");20 log_printf(FUNC,@COMPONENT,FUNCTION,"Begin"); 19 21 20 22 #ifdef STATISTICS … … 26 28 #endif 27 29 28 log_printf(FUNC,@COMPONENT, "transition","End");30 log_printf(FUNC,@COMPONENT,FUNCTION,"End"); 29 31 }; 30 32 -
trunk/IPs/systemC/processor/Morpheo/Behavioural/New_Component/src/New_Component_vhdl.cpp
r50 r53 14 14 @NAMESPACE_BEGIN 15 15 16 #undef FUNCTION 17 #define FUNCTION "@COMPONENT::vhdl" 16 18 void @COMPONENT::vhdl (void) 17 19 { 18 log_printf(FUNC,@COMPONENT, "vhdl","Begin");20 log_printf(FUNC,@COMPONENT,FUNCTION,"Begin"); 19 21 20 22 Vhdl * vhdl = new Vhdl (_name); … … 30 32 delete vhdl; 31 33 32 log_printf(FUNC,@COMPONENT, "vhdl","End");34 log_printf(FUNC,@COMPONENT,FUNCTION,"End"); 33 35 }; 34 36 -
trunk/IPs/systemC/processor/Morpheo/Behavioural/New_Component/src/New_Component_vhdl_body.cpp
r50 r53 13 13 @NAMESPACE_BEGIN 14 14 15 #undef FUNCTION 16 #define FUNCTION "@COMPONENT::vhdl_body" 15 17 void @COMPONENT::vhdl_body (Vhdl * & vhdl) 16 18 { 17 log_printf(FUNC,@COMPONENT, "vhdl_body","Begin");19 log_printf(FUNC,@COMPONENT,FUNCTION,"Begin"); 18 20 vhdl->set_body (""); 19 log_printf(FUNC,@COMPONENT, "vhdl_body","End");21 log_printf(FUNC,@COMPONENT,FUNCTION,"End"); 20 22 }; 21 23 -
trunk/IPs/systemC/processor/Morpheo/Behavioural/New_Component/src/New_Component_vhdl_declaration.cpp
r50 r53 13 13 @NAMESPACE_BEGIN 14 14 15 #undef FUNCTION 16 #define FUNCTION "@COMPONENT::vhdl_declaration" 15 17 void @COMPONENT::vhdl_declaration (Vhdl * & vhdl) 16 18 { 17 log_printf(FUNC,@COMPONENT, "vhdl_declaration","Begin");18 log_printf(FUNC,@COMPONENT, "vhdl_declaration","End");19 log_printf(FUNC,@COMPONENT,FUNCTION,"Begin"); 20 log_printf(FUNC,@COMPONENT,FUNCTION,"End"); 19 21 }; 20 22 -
trunk/IPs/systemC/processor/Morpheo/Behavioural/New_Component/src/New_Component_vhdl_testbench_transition.cpp
r44 r53 13 13 @NAMESPACE_BEGIN 14 14 15 #undef FUNCTION 16 #define FUNCTION "@COMPONENT::vhdl_testbench_transition" 15 17 void @COMPONENT::vhdl_testbench_transition () 16 18 { 17 log_printf(FUNC,@COMPONENT, "vhdl_testbench_transition","Begin");19 log_printf(FUNC,@COMPONENT,FUNCTION,"Begin"); 18 20 19 21 // Evaluation before read the ouput signal … … 22 24 _interfaces->testbench(); 23 25 24 log_printf(FUNC,@COMPONENT, "vhdl_testbench_transition","End");26 log_printf(FUNC,@COMPONENT,FUNCTION,"End"); 25 27 }; 26 28 -
trunk/IPs/systemC/processor/Morpheo/Behavioural/New_Component/src/Parameters.cpp
r15 r53 12 12 @NAMESPACE_BEGIN 13 13 14 #undef FUNCTION 15 #define FUNCTION "@COMPONENT::Parameters" 14 16 Parameters::Parameters () 15 17 { 16 log_printf(FUNC,@COMPONENT, "Parameters","Begin");18 log_printf(FUNC,@COMPONENT,FUNCTION,"Begin"); 17 19 test(); 18 log_printf(FUNC,@COMPONENT, "Parameters","End");20 log_printf(FUNC,@COMPONENT,FUNCTION,"End"); 19 21 }; 20 22 23 #undef FUNCTION 24 #define FUNCTION "@COMPONENT::Parameters (copy)" 21 25 Parameters::Parameters (Parameters & param) 22 26 { 23 log_printf(FUNC,@COMPONENT, "Parameters (copy)","Begin");27 log_printf(FUNC,@COMPONENT,FUNCTION,"Begin"); 24 28 test(); 25 log_printf(FUNC,@COMPONENT, "Parameters (copy)","End");29 log_printf(FUNC,@COMPONENT,FUNCTION,"End"); 26 30 }; 27 31 32 #undef FUNCTION 33 #define FUNCTION "@COMPONENT::~Parameters" 28 34 Parameters::~Parameters () 29 35 { 30 log_printf(FUNC,@COMPONENT, "~Parameters","Begin");31 log_printf(FUNC,@COMPONENT, "~Parameters","End");36 log_printf(FUNC,@COMPONENT,FUNCTION,"Begin"); 37 log_printf(FUNC,@COMPONENT,FUNCTION,"End"); 32 38 }; 33 39 -
trunk/IPs/systemC/processor/Morpheo/Behavioural/New_Component/src/Parameters_msg_error.cpp
r2 r53 15 15 @NAMESPACE_BEGIN 16 16 17 #undef FUNCTION 18 #define FUNCTION "@COMPONENT::msg_error" 17 19 string Parameters::msg_error(void) 18 20 { 19 log_printf(FUNC,@COMPONENT, "msg_error","Begin");21 log_printf(FUNC,@COMPONENT,FUNCTION,"Begin"); 20 22 21 23 string msg = ""; … … 23 25 return msg; 24 26 25 log_printf(FUNC,@COMPONENT, "msg_error","End");27 log_printf(FUNC,@COMPONENT,FUNCTION,"End"); 26 28 }; 27 29 -
trunk/IPs/systemC/processor/Morpheo/Behavioural/New_Component/src/Parameters_print.cpp
r15 r53 14 14 @NAMESPACE_BEGIN 15 15 16 #undef FUNCTION 17 #define FUNCTION "@COMPONENT::print" 16 18 string Parameters::print (uint32_t depth) 17 19 { 18 log_printf(FUNC,@COMPONENT, "print","Begin");20 log_printf(FUNC,@COMPONENT,FUNCTION,"Begin"); 19 21 20 22 XML xml ("@COMPONENT_LOWER"); 21 23 22 24 xml.balise_open("@COMPONENT_LOWER"); 23 // xml.singleton_begin("size_data"); xml.attribut("value",toString(_size_data)); xml.singleton_end(); 24 // xml.singleton_begin("nb_port "); xml.attribut("value",toString(_nb_port )); xml.singleton_end(); 25 // xml.singleton_begin(""); xml.attribut("value",toString(_)); xml.singleton_end(); 25 26 xml.balise_close(); 26 27 27 log_printf(FUNC,@COMPONENT, "print","End");28 log_printf(FUNC,@COMPONENT,FUNCTION,"End"); 28 29 29 30 return xml.get_body(depth); 30 31 }; 31 32 33 #undef FUNCTION 34 #define FUNCTION "@COMPONENT::operator<<" 32 35 ostream& operator<< (ostream& output_stream , 33 36 morpheo::behavioural::@NAMESPACE_USE::Parameters & x) 34 37 { 38 log_printf(FUNC,@COMPONENT,FUNCTION,"Begin"); 39 35 40 output_stream << x.print(0); 36 41 42 log_printf(FUNC,@COMPONENT,FUNCTION,"End"); 43 37 44 return output_stream; 38 45 }; -
trunk/IPs/systemC/processor/Morpheo/Behavioural/New_Component/src/Statistics.cpp
r2 r53 13 13 @NAMESPACE_BEGIN 14 14 15 Statistics::Statistics (string name , 16 morpheo::behavioural::Parameters_Statistics parameters_statistics , 17 Parameters parameters 15 #undef FUNCTION 16 #define FUNCTION "@COMPONENT::Statistics" 17 Statistics::Statistics (string name , 18 morpheo::behavioural::Parameters_Statistics * parameters_statistics , 19 Parameters * parameters 18 20 ) : 19 21 morpheo::behavioural::Statistics(name , … … 21 23 _parameters(parameters) 22 24 { 23 log_printf(FUNC,@COMPONENT, "Statistics","Begin");24 log_printf(FUNC,@COMPONENT, "Statistics","End");25 log_printf(FUNC,@COMPONENT,FUNCTION,"Begin"); 26 log_printf(FUNC,@COMPONENT,FUNCTION,"End"); 25 27 }; 26 28 29 #undef FUNCTION 30 #define FUNCTION "@COMPONENT::~Statistics" 27 31 Statistics::~Statistics () 28 32 { 29 log_printf(FUNC,@COMPONENT, "~Statistics","Begin");30 log_printf(FUNC,@COMPONENT, "~Statistics","End");33 log_printf(FUNC,@COMPONENT,FUNCTION,"Begin"); 34 log_printf(FUNC,@COMPONENT,FUNCTION,"End"); 31 35 }; 32 36 -
trunk/IPs/systemC/processor/Morpheo/Behavioural/New_Component/src/Statistics_add.cpp
r2 r53 16 16 @NAMESPACE_BEGIN 17 17 18 #undef FUNCTION 19 #define FUNCTION "@COMPONENT::add" 18 20 void Statistics::add () 19 21 { 20 log_printf(FUNC,@COMPONENT, "add","Begin");21 log_printf(FUNC,@COMPONENT, "add","End");22 log_printf(FUNC,@COMPONENT,FUNCTION,"Begin"); 23 log_printf(FUNC,@COMPONENT,FUNCTION,"End"); 22 24 }; 23 25 -
trunk/IPs/systemC/processor/Morpheo/Behavioural/New_Component/src/Statistics_print.cpp
r2 r53 16 16 @NAMESPACE_BEGIN 17 17 18 #undef FUNCTION 19 #define FUNCTION "@COMPONENT::print" 18 20 string Statistics::print (uint32_t depth) 19 21 { 20 log_printf(FUNC,@COMPONENT, "print","Begin");22 log_printf(FUNC,@COMPONENT,FUNCTION,"Begin"); 21 23 22 24 string tab = string(depth,'\t'); … … 27 29 << tab << "</@COMPONENT_LOWER>" << endl; 28 30 29 log_printf(FUNC,@COMPONENT, "print","End");31 log_printf(FUNC,@COMPONENT,FUNCTION,"End"); 30 32 31 33 return msg.str(); 32 34 }; 33 35 36 #undef FUNCTION 37 #define FUNCTION "@COMPONENT::operator<<" 34 38 ostream& operator<< (ostream& output_stream , 35 39 morpheo::behavioural::@NAMESPACE_USE::Statistics & x) 36 40 { 41 log_printf(FUNC,@COMPONENT,FUNCTION,"Begin"); 42 37 43 output_stream << x.print(0); 44 45 log_printf(FUNC,@COMPONENT,FUNCTION,"End"); 38 46 39 47 return output_stream; -
trunk/IPs/systemC/processor/Morpheo/Behavioural/New_Component/src/Statistics_print_body.cpp
r2 r53 16 16 @NAMESPACE_BEGIN 17 17 18 #undef FUNCTION 19 #define FUNCTION "@COMPONENT::print_body" 18 20 string Statistics::print_body (uint32_t depth) 19 21 { 20 log_printf(FUNC,@COMPONENT, "print_body","Begin");22 log_printf(FUNC,@COMPONENT,FUNCTION,"Begin"); 21 23 22 24 string tab = string(depth,'\t'); … … 25 27 msg << tab << ""; 26 28 27 log_printf(FUNC,@COMPONENT, "print_body","End");29 log_printf(FUNC,@COMPONENT,FUNCTION,"End"); 28 30 29 31 return msg.str();
Note: See TracChangeset
for help on using the changeset viewer.