- Timestamp:
- Sep 28, 2007, 2:58:08 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/IPs/systemC/processor/Morpheo/Behavioural/include/Interface.h
r44 r57 25 25 #include "Common/include/ErrorMorpheo.h" 26 26 #include "Common/include/Debug.h" 27 #include "Behavioural/include/Usage.h" 27 28 28 29 using namespace std; … … 38 39 protected : const direction_t _direction ; 39 40 protected : const localisation_t _localisation ; 41 #endif 42 protected : const Tusage_t _usage; 43 44 #ifdef POSITION 40 45 protected : string _comment ; 41 46 #endif … … 59 64 ,localisation_t localisation 60 65 #endif 66 ,Tusage_t usage=USE_ALL 61 67 ); 62 68 … … 97 103 98 104 Signal * sig = set_signal (name, IN , size, presence_port); 99 sc_in_clk * port = new sc_in_clk (sig->_name.c_str()); 100 101 sig->alloc<bool> (static_cast<void *>(port)); 105 sc_in_clk * port; 106 107 if (_usage & USE_SYSTEMC) 108 { 109 port = new sc_in_clk (sig->_name.c_str()); 110 sig->alloc<bool> (static_cast<void *>(port)); 111 } 112 else 113 { 114 port = NULL; 115 } 102 116 103 117 log_printf(FUNC,Behavioural,"set_signal_clk","End"); … … 118 132 119 133 Signal * sig = set_signal (name, IN , size, presence_port); 120 sc_in <T> * port = new sc_in <T> (sig->_name.c_str()); 121 122 sig->alloc<T> (static_cast<void *>(port)); 134 sc_in <T> * port; 135 136 if (_usage & USE_SYSTEMC) 137 { 138 port = new sc_in <T> (sig->_name.c_str()); 139 sig->alloc<T> (static_cast<void *>(port)); 140 } 141 else 142 { 143 port = NULL; 144 } 123 145 124 146 log_printf(FUNC,Behavioural,"set_signal_in","End"); … … 139 161 140 162 Signal * sig = set_signal (name, OUT , size, presence_port); 141 sc_out <T> * port = new sc_out <T> (sig->_name.c_str()); 142 143 sig->alloc<T> (static_cast<void *>(port)); 163 sc_out <T> * port; 164 165 if (_usage & USE_SYSTEMC) 166 { 167 port = new sc_out <T> (sig->_name.c_str()); 168 sig->alloc<T> (static_cast<void *>(port)); 169 } 170 else 171 { 172 port = NULL; 173 } 144 174 145 175 log_printf(FUNC,Behavioural,"set_signal_out","End"); … … 155 185 156 186 Signal * sig = set_signal (name, INTERNAL , size, PORT_VHDL_NO_TESTBENCH_NO); 157 sc_signal <T> * port = new sc_signal <T> (sig->_name.c_str()); 158 159 sig->alloc<T> (static_cast<void *>(port)); 187 sc_signal <T> * port; 188 189 if (_usage & USE_SYSTEMC) 190 { 191 port = new sc_signal <T> (sig->_name.c_str()); 192 sig->alloc<T> (static_cast<void *>(port)); 193 } 194 else 195 { 196 port = NULL; 197 } 160 198 161 199 log_printf(FUNC,Behavioural,"set_signal_internal","End");
Note: See TracChangeset
for help on using the changeset viewer.