Changeset 123 for trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_Execute_loop/Execute_loop/Multi_Execute_unit
- Timestamp:
- Jun 8, 2009, 10:43:30 PM (15 years ago)
- Location:
- trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_Execute_loop/Execute_loop/Multi_Execute_unit/Execute_unit
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_Execute_loop/Execute_loop/Multi_Execute_unit/Execute_unit/Functionnal_unit/src/Functionnal_unit.cpp
r116 r123 42 42 allocation (); 43 43 44 #if DEBUG_Functionnal_unit == true45 log_printf(INFO,Functionnal_unit,FUNCTION,_("<%s> Parameters"),_name.c_str());44 // #if DEBUG_Functionnal_unit == true 45 // log_printf(INFO,Functionnal_unit,FUNCTION,_("<%s> Parameters"),_name.c_str()); 46 46 47 std::cout << *param << std::endl;48 #endif47 // std::cout << *param << std::endl; 48 // #endif 49 49 50 50 #ifdef STATISTICS -
trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_Execute_loop/Execute_loop/Multi_Execute_unit/Execute_unit/Functionnal_unit/src/Functionnal_unit_genMealy.cpp
r118 r123 31 31 // Can out if : have an instruction and is finish (latence == 0) 32 32 internal_EXECUTE_OUT_VAL = (reg_BUSY_OUT and (_execute_operation_out->_timing._latence == 0)); 33 34 PORT_WRITE(out_EXECUTE_OUT_VAL, internal_EXECUTE_OUT_VAL);35 33 } 36 34 … … 50 48 (internal_EXECUTE_OUT_VAL and PORT_READ(in_EXECUTE_OUT_ACK))); 51 49 } 52 53 PORT_WRITE(out_EXECUTE_IN_ACK , internal_EXECUTE_IN_ACK);54 50 } 55 51 } 52 else 53 { 54 // RESET 55 internal_EXECUTE_IN_ACK = 0; 56 internal_EXECUTE_OUT_VAL = 0; 57 } 58 59 // Write Output 60 PORT_WRITE(out_EXECUTE_IN_ACK , internal_EXECUTE_IN_ACK); 61 PORT_WRITE(out_EXECUTE_OUT_VAL, internal_EXECUTE_OUT_VAL); 56 62 57 63 log_end(Functionnal_unit,FUNCTION); -
trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_Execute_loop/Execute_loop/Multi_Execute_unit/Execute_unit/Functionnal_unit/src/Functionnal_unit_genMoore.cpp
r116 r123 26 26 log_function(Functionnal_unit,FUNCTION,_name.c_str()); 27 27 28 if (PORT_READ(in_NRESET)) 28 29 { 29 30 if (_param->_have_port_context_id) -
trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_Execute_loop/Execute_loop/Multi_Execute_unit/Execute_unit/Load_store_unit/src/Load_store_unit.cpp
r111 r123 39 39 log_printf(FUNC,Load_store_unit,FUNCTION,"Begin"); 40 40 41 #if DEBUG_Load_store_unit == true42 log_printf(INFO,Load_store_unit,FUNCTION,_("<%s> Parameters"),_name.c_str());43 44 std::cout << *param << std::endl;45 #endif41 // #if DEBUG_Load_store_unit == true 42 // log_printf(INFO,Load_store_unit,FUNCTION,_("<%s> Parameters"),_name.c_str()); 43 44 // std::cout << *param << std::endl; 45 // #endif 46 46 47 47 #ifdef SYSTEMC -
trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_Execute_loop/Execute_loop/Multi_Execute_unit/Execute_unit/Load_store_unit/src/Load_store_unit_function_speculative_load_commit_genMealy_insert.cpp
r101 r123 35 35 ack [i] = 0; 36 36 37 if (PORT_READ(in_NRESET)) 38 { 37 39 // find first valid entry 38 40 // store queue is never full (pointer is manage by rename stage) … … 49 51 } 50 52 } 53 } 54 else 55 { 56 internal_MEMORY_IN_ACK = 0; 57 // internal_MEMORY_IN_PORT = i; 58 } 51 59 52 60 for (uint32_t i=0; i<_param->_nb_inst_memory; i++) -
trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_Execute_loop/Execute_loop/Multi_Execute_unit/Execute_unit/Load_store_unit/src/Load_store_unit_function_speculative_load_commit_genMoore.cpp
r122 r123 27 27 log_function(Load_store_unit,FUNCTION,_name.c_str()); 28 28 29 if (PORT_READ(in_NRESET)) 30 { 29 31 // ~~~~~[ Interface "memory_out" ]~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 30 32 … … 140 142 141 143 // write output 142 PORT_WRITE(out_MEMORY_OUT_VAL [0], internal_MEMORY_OUT_VAL);143 144 144 if (_param->_have_port_context_id) 145 145 PORT_WRITE(out_MEMORY_OUT_CONTEXT_ID [0], memory_out_context_id ); … … 171 171 // ~~~~~[ Interface "dache_req" ]~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 172 172 173 Tcontext_t dcache_req_context_id ;174 Tpacket_t dcache_req_packet_id ;175 Tdcache_address_t dcache_req_address ;176 Tdcache_type_t dcache_req_type ;177 Tdcache_data_t dcache_req_wdata ;173 Tcontext_t dcache_req_context_id = 0; 174 Tpacket_t dcache_req_packet_id = 0; 175 Tdcache_address_t dcache_req_address = 0; 176 Tdcache_type_t dcache_req_type = 0; 177 Tdcache_data_t dcache_req_wdata = 0; 178 178 179 179 log_printf(TRACE,Load_store_unit,FUNCTION," * Test DCACHE_REQ"); … … 241 241 } 242 242 243 PORT_WRITE(out_DCACHE_REQ_VAL [0], internal_DCACHE_REQ_VAL);244 243 if (_param->_have_port_dcache_context_id) 245 244 PORT_WRITE(out_DCACHE_REQ_CONTEXT_ID[0], dcache_req_context_id); … … 248 247 PORT_WRITE(out_DCACHE_REQ_TYPE [0], dcache_req_type ); 249 248 PORT_WRITE(out_DCACHE_REQ_WDATA [0], dcache_req_wdata ); 250 249 } 250 else 251 { 252 // Reset 253 internal_MEMORY_OUT_VAL = 0; 254 // internal_MEMORY_OUT_PTR =0 255 // internal_MEMORY_OUT_SELECT_QUEUE = SELECT_STORE_QUEUE; 256 257 internal_DCACHE_REQ_VAL = 0; 258 internal_SPECULATIVE_ACCESS_QUEUE_PTR_READ = 0; 259 // internal_DCACHE_REQ_SELECT_QUEUE = SELECT_LOAD_QUEUE_SPECULATIVE; 260 } 261 262 // Write output 263 PORT_WRITE(out_MEMORY_OUT_VAL [0], internal_MEMORY_OUT_VAL); 264 PORT_WRITE(out_DCACHE_REQ_VAL [0], internal_DCACHE_REQ_VAL); 265 266 251 267 log_end(Load_store_unit,FUNCTION); 252 268 }; -
trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_Execute_loop/Execute_loop/Multi_Execute_unit/Execute_unit/Load_store_unit/src/Load_store_unit_genMoore.cpp
r81 r123 26 26 log_printf(FUNC,Load_store_unit,FUNCTION,"Begin"); 27 27 28 // if (PORT_READ(in_NRESET)) 28 29 (this->*function_genMoore) (); 29 30
Note: See TracChangeset
for help on using the changeset viewer.