- Timestamp:
- Dec 10, 2008, 7:31:39 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/IPs/systemC/processor/Morpheo/Behavioural/Generic/Shifter/src/Shifter.cpp
r82 r88 14 14 15 15 16 #undef FUNCTION 17 #define FUNCTION "Shifter::Shifter" 16 18 Shifter::Shifter ( 17 19 #ifdef SYSTEMC … … 29 31 ,_usage (usage) 30 32 { 31 #ifdef SYSTEMC 33 34 #if DEBUG_Shifter == true 35 log_printf(INFO,Shifter,FUNCTION,_("<%s> Parameters"),_name.c_str()); 36 37 std::cout << *param << std::endl; 38 #endif 39 32 40 allocation (); 33 #endif34 41 35 42 #ifdef STATISTICS 36 // Allocation of statistics 37 statistics_declaration(param_statistics); 43 if (usage_is_set(_usage,USE_STATISTICS)) 44 { 45 // Allocation of statistics 46 statistics_declaration(param_statistics); 47 } 38 48 #endif 39 49 40 50 #ifdef VHDL 41 // generate the vhdl 42 vhdl(); 51 if (usage_is_set(_usage,USE_VHDL)) 52 { 53 // generate the vhdl 54 vhdl(); 55 } 43 56 #endif 44 57 45 58 #ifdef SYSTEMC 59 if (usage_is_set(_usage,USE_SYSTEMC)) 60 { 46 61 #if (defined(STATISTICS) || defined (VHDL_TESTBENCH)) 47 62 SC_METHOD (transition); … … 91 106 } 92 107 #endif 93 108 } 94 109 #endif 95 110 }; 96 111 112 #undef FUNCTION 113 #define FUNCTION "Shifter::~Shifter" 97 114 Shifter::~Shifter (void) 98 115 { 99 #ifdef SYSTEMC 100 deallocation (); 116 #ifdef STATISTICS 117 if (usage_is_set(_usage,USE_STATISTICS)) 118 delete _stat; 101 119 #endif 102 120 103 #ifdef STATISTICS 104 delete _stat; 105 #endif 121 deallocation (); 106 122 }; 107 123
Note: See TracChangeset
for help on using the changeset viewer.