- Timestamp:
- Aug 4, 2010, 10:09:03 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/IPs/systemC/processor/Morpheo/Behavioural/include/Signal.h
r139 r142 187 187 log_printf(FUNC,Behavioural,FUNCTION,"End"); 188 188 } 189 190 191 #undef FUNCTION 192 #define FUNCTION "Signal::alloc" 193 void dealloc (void) 194 { 195 log_printf(FUNC,Behavioural,FUNCTION,"Begin"); 196 197 switch (_direction) 198 { 199 case INTERNAL : 200 switch (_type_info) 201 { 202 case BOOL : delete (static_cast<sc_signal <bool > *>(_sc_signal_map)); break; 203 case UINT8_T : delete (static_cast<sc_signal <uint8_t > *>(_sc_signal_map)); break; 204 case UINT16_T : delete (static_cast<sc_signal <uint16_t> *>(_sc_signal_map)); break; 205 case UINT32_T : delete (static_cast<sc_signal <uint32_t> *>(_sc_signal_map)); break; 206 case UINT64_T : delete (static_cast<sc_signal <uint64_t> *>(_sc_signal_map)); break; 207 default : throw (ErrorMorpheo ("Signal \""+_name+"\" : type unknow.\n")); 208 } 209 default : throw (ErrorMorpheo ("Signal \""+_name+"\" : invalid direction.\n")); 210 211 212 } 213 214 log_printf(FUNC,Behavioural,FUNCTION,"End"); 215 } 216 189 190 public : void dealloc (void); 217 191 #ifdef VHDL 218 192 public : void set_port (Vhdl * & vhdl);
Note: See TracChangeset
for help on using the changeset viewer.