Changeset 68 for trunk/IPs/systemC/processor/Morpheo/Behavioural/New_Component/src/New_Component.cpp
- Timestamp:
- Dec 8, 2007, 5:12:36 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/IPs/systemC/processor/Morpheo/Behavioural/New_Component/src/New_Component.cpp
r66 r68 2 2 * $Id$ 3 3 * 4 * [ 4 * [ Description ] 5 5 * 6 6 */ … … 40 40 41 41 #ifdef STATISTICS 42 log_printf(INFO,@COMPONENT,FUNCTION,"Allocation of statistics"); 43 44 // Allocation of statistics 45 _stat = new Statistics (static_cast<string>(_name), 46 param_statistics , 47 param); 42 if (_usage & USE_STATISTICS) 43 { 44 log_printf(INFO,@COMPONENT,FUNCTION,"Allocation of statistics"); 45 46 // Allocation of statistics 47 _stat = new Statistics (static_cast<string>(_name), 48 param_statistics , 49 param); 50 } 48 51 #endif 49 52 50 53 #ifdef VHDL 51 // generate the vhdl 52 log_printf(INFO,@COMPONENT,FUNCTION,"Generate the vhdl"); 53 54 vhdl(); 54 if (_usage & USE_VHDL) 55 { 56 // generate the vhdl 57 log_printf(INFO,@COMPONENT,FUNCTION,"Generate the vhdl"); 58 59 vhdl(); 60 } 55 61 #endif 56 62 57 63 #ifdef SYSTEMC 58 //#if defined(STATISTICS) or defined(VHDL_TESTBENCH) 59 log_printf(INFO,@COMPONENT,FUNCTION,"Method - transition"); 64 if (_usage & USE_SYSTEMC) 65 { 66 log_printf(INFO,@COMPONENT,FUNCTION,"Method - transition"); 60 67 61 SC_METHOD (transition); 62 dont_initialize (); 63 sensitive << (*(in_CLOCK)).pos(); 64 //#endif 65 66 #ifdef SYSTEMCASS_SPECIFIC 67 // List dependency information 68 #endif 69 68 SC_METHOD (transition); 69 dont_initialize (); 70 sensitive << (*(in_CLOCK)).pos(); 71 72 # ifdef SYSTEMCASS_SPECIFIC 73 // List dependency information 74 # endif 75 70 76 #endif 77 } 71 78 log_printf(FUNC,@COMPONENT,FUNCTION,"End"); 72 79 }; 73 80 74 81 #undef FUNCTION 75 82 #define FUNCTION "@COMPONENT::~@COMPONENT" … … 79 86 80 87 #ifdef STATISTICS 81 log_printf(INFO,@COMPONENT,FUNCTION,"Generate Statistics file"); 82 83 _stat->generate_file(statistics(0)); 84 delete _stat; 88 if (_usage & USE_STATISTICS) 89 { 90 log_printf(INFO,@COMPONENT,FUNCTION,"Generate Statistics file"); 91 92 _stat->generate_file(statistics(0)); 93 delete _stat; 94 } 85 95 #endif 86 96
Note: See TracChangeset
for help on using the changeset viewer.