- Timestamp:
- Sep 28, 2007, 2:58:08 PM (17 years ago)
- Location:
- trunk/IPs/systemC/processor/Morpheo/Behavioural/New_Component
- Files:
-
- 1 deleted
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/IPs/systemC/processor/Morpheo/Behavioural/New_Component/include/New_Component.h
r53 r57 16 16 #include "Common/include/ToString.h" 17 17 #include "Common/include/Debug.h" 18 #include "Behavioural/include/Types.h" 18 19 19 20 #include "Behavioural/@DIRECTORY/include/Parameters.h" 20 #include "Behavioural/@DIRECTORY/include/Types.h"21 21 #ifdef STATISTICS 22 22 #include "Behavioural/@DIRECTORY/include/Statistics.h" … … 26 26 #include "Behavioural/include/Vhdl.h" 27 27 #endif 28 #include "Behavioural/include/Usage.h" 28 29 29 30 using namespace std; … … 31 32 namespace morpheo { 32 33 namespace behavioural { 34 33 35 @NAMESPACE_BEGIN 34 36 … … 41 43 // Parameters 42 44 protected : const string _name; 45 protected : const Parameters * _param; 46 private : const Tusage_t _usage; 43 47 44 protected : const Parameters * _param;45 48 //#ifdef STATISTICS 46 49 // protected : const morpheo::behavioural::Parameters_Statistics * _param_statistics; … … 72 75 SC_HAS_PROCESS (@COMPONENT); 73 76 #endif 74 public : @COMPONENT ( 77 public : @COMPONENT 78 ( 75 79 #ifdef SYSTEMC 76 80 sc_module_name name, 77 81 #else 78 82 string name, 79 83 #endif 80 84 #ifdef STATISTICS 81 85 morpheo::behavioural::Parameters_Statistics * param_statistics, 82 86 #endif 83 Parameters * param ); 87 Parameters * param, 88 morpheo::behavioural::Tusage_t usage=USE_ALL 89 ); 84 90 public : ~@COMPONENT (void); 85 91 86 #ifdef SYSTEMC87 92 private : void allocation (void); 88 93 private : void deallocation (void); 89 94 95 #ifdef SYSTEMC 90 96 //#if defined(STATISTICS) or defined(VHDL_TESTBENCH) 91 97 public : void transition (void); -
trunk/IPs/systemC/processor/Morpheo/Behavioural/New_Component/src/New_Component.cpp
r53 r57 14 14 #undef FUNCTION 15 15 #define FUNCTION "@COMPONENT::@COMPONENT" 16 @COMPONENT::@COMPONENT 17 ( 16 18 #ifdef SYSTEMC 17 @COMPONENT::@COMPONENT (sc_module_name name,19 sc_module_name name, 18 20 #else 19 @COMPONENT::@COMPONENT (string name,21 string name, 20 22 #endif 21 23 #ifdef STATISTICS 22 24 morpheo::behavioural::Parameters_Statistics * param_statistics, 23 25 #endif 24 morpheo::behavioural::@NAMESPACE_USE::Parameters * param ): 25 _name (name) 26 ,_param (param) 26 morpheo::behavioural::@NAMESPACE_USE::Parameters * param, 27 morpheo::behavioural::Tusage_t usage 28 ): 29 _name (name) 30 ,_param (param) 31 ,_usage (usage) 27 32 // #ifdef STATISTICS 28 33 // ,_param_statistics (param_statistics) … … 31 36 log_printf(FUNC,@COMPONENT,FUNCTION,"Begin"); 32 37 33 #ifdef SYSTEMC34 38 log_printf(INFO,@COMPONENT,FUNCTION,"Allocation"); 35 36 39 allocation (); 37 #endif38 40 39 41 #ifdef STATISTICS … … 80 82 81 83 _stat->generate_file(statistics(0)); 82 83 84 delete _stat; 84 85 #endif 85 86 86 #ifdef SYSTEMC87 87 log_printf(INFO,@COMPONENT,FUNCTION,"Deallocation"); 88 89 88 deallocation (); 90 #endif91 89 92 90 log_printf(FUNC,@COMPONENT,FUNCTION,"End"); -
trunk/IPs/systemC/processor/Morpheo/Behavioural/New_Component/src/New_Component_allocation.cpp
r53 r57 1 #ifdef SYSTEMC2 1 /* 3 2 * $Id$ … … 58 57 }; // end namespace behavioural 59 58 }; // end namespace morpheo 60 #endif -
trunk/IPs/systemC/processor/Morpheo/Behavioural/New_Component/src/New_Component_deallocation.cpp
r53 r57 1 #undef FUNCTION2 #define FUNCTION "@COMPONENT::"3 4 #ifdef SYSTEMC5 1 /* 6 2 * $Id$ … … 37 33 }; // end namespace behavioural 38 34 }; // end namespace morpheo 39 #endif -
trunk/IPs/systemC/processor/Morpheo/Behavioural/New_Component/src/Parameters_msg_error.cpp
r53 r57 6 6 */ 7 7 8 #include "Behavioural/include/Types.h" 8 9 #include "Behavioural/@DIRECTORY/include/Parameters.h" 9 #include "Behavioural/@DIRECTORY/include/Types.h"10 10 #include <sstream> 11 11 using namespace std;
Note: See TracChangeset
for help on using the changeset viewer.