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