Changeset 123 for trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_Execute_loop/Execute_loop
- Timestamp:
- Jun 8, 2009, 10:43:30 PM (16 years ago)
- Location:
- trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_Execute_loop/Execute_loop
- Files:
-
- 45 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_Execute_loop/Execute_loop/Execute_loop_Glue/src/Execute_loop_Glue.cpp
r88 r123 39 39 usage_environment(_usage); 40 40 41 #if DEBUG_Execute_loop_Glue == true42 log_printf(INFO,Execute_loop_Glue,FUNCTION,_("<%s> Parameters"),_name.c_str());41 // #if DEBUG_Execute_loop_Glue == true 42 // log_printf(INFO,Execute_loop_Glue,FUNCTION,_("<%s> Parameters"),_name.c_str()); 43 43 44 std::cout << *param << std::endl;45 #endif44 // std::cout << *param << std::endl; 45 // #endif 46 46 47 47 log_printf(INFO,Execute_loop_Glue,FUNCTION,_("<%s> : Allocation"),_name.c_str()); -
trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_Execute_loop/Execute_loop/Execute_loop_Glue/src/Execute_loop_Glue_genMealy_gpr_write.cpp
r88 r123 23 23 log_begin(Execute_loop_Glue,FUNCTION); 24 24 25 if (PORT_READ(in_NRESET)) 26 { 25 27 for (uint32_t i=0; i<_param->_nb_gpr_write; i++) 26 28 { … … 45 47 PORT_WRITE(out_GPR_WRITE_READ_UNIT_DATA [i],data ); 46 48 } 49 } 50 else 51 { 52 for (uint32_t i=0; i<_param->_nb_gpr_write; i++) 53 { 54 PORT_WRITE(out_GPR_WRITE_WRITE_UNIT_ACK [i],0); 55 PORT_WRITE(out_GPR_WRITE_REGISTER_FILE_VAL [i],0); 56 PORT_WRITE(out_GPR_WRITE_READ_UNIT_VAL [i],0); 57 } 58 } 47 59 48 60 log_end(Execute_loop_Glue,FUNCTION); -
trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_Execute_loop/Execute_loop/Execute_loop_Glue/src/Execute_loop_Glue_genMealy_spr_write.cpp
r88 r123 23 23 log_begin(Execute_loop_Glue,FUNCTION); 24 24 25 if (PORT_READ(in_NRESET)) 26 { 25 27 for (uint32_t i=0; i<_param->_nb_spr_write; i++) 26 28 { … … 45 47 PORT_WRITE(out_SPR_WRITE_READ_UNIT_DATA [i],data ); 46 48 } 49 } 50 else 51 { 52 for (uint32_t i=0; i<_param->_nb_spr_write; i++) 53 { 54 PORT_WRITE(out_SPR_WRITE_WRITE_UNIT_ACK [i],0); 55 PORT_WRITE(out_SPR_WRITE_REGISTER_FILE_VAL [i],0); 56 PORT_WRITE(out_SPR_WRITE_READ_UNIT_VAL [i],0); 57 } 58 } 47 59 48 60 log_end(Execute_loop_Glue,FUNCTION); -
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 -
trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_Execute_loop/Execute_loop/Multi_Read_unit/Read_unit/Read_queue/src/Read_queue.cpp
r88 r123 36 36 log_printf(FUNC,Read_queue,"Read_queue","Begin"); 37 37 38 #if DEBUG_Read_queue == true39 log_printf(INFO,Read_queue,FUNCTION,_("<%s> Parameters"),_name.c_str());40 41 std::cout << *param << std::endl;42 #endif38 // #if DEBUG_Read_queue == true 39 // log_printf(INFO,Read_queue,FUNCTION,_("<%s> Parameters"),_name.c_str()); 40 41 // std::cout << *param << std::endl; 42 // #endif 43 43 44 44 #ifdef SYSTEMC -
trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_Execute_loop/Execute_loop/Multi_Read_unit/Read_unit/Read_queue/src/Read_queue_genMealy_read_queue_out_gpr.cpp
r88 r123 25 25 log_function(Read_queue,FUNCTION,_name.c_str()); 26 26 27 if (PORT_READ(in_NRESET)) 28 { 27 29 internal_READ_QUEUE_OUT_DATA_RA_VAL = (// Previous value 28 30 _queue_head->_data_ra_val or … … 102 104 103 105 // Affectation out port 106 PORT_WRITE(out_READ_QUEUE_OUT_DATA_RA ,internal_READ_QUEUE_OUT_DATA_RA ); 107 PORT_WRITE(out_READ_QUEUE_OUT_DATA_RB ,internal_READ_QUEUE_OUT_DATA_RB ); 108 } 109 else 110 { 111 internal_READ_QUEUE_OUT_DATA_RA_VAL = 0; 112 internal_READ_QUEUE_OUT_DATA_RB_VAL = 0; 113 // internal_READ_QUEUE_OUT_DATA_RA = 0; 114 // internal_READ_QUEUE_OUT_DATA_RB = 0; 115 } 116 104 117 PORT_WRITE(out_READ_QUEUE_OUT_DATA_RA_VAL,internal_READ_QUEUE_OUT_DATA_RA_VAL); 105 118 PORT_WRITE(out_READ_QUEUE_OUT_DATA_RB_VAL,internal_READ_QUEUE_OUT_DATA_RB_VAL); 106 PORT_WRITE(out_READ_QUEUE_OUT_DATA_RA ,internal_READ_QUEUE_OUT_DATA_RA );107 PORT_WRITE(out_READ_QUEUE_OUT_DATA_RB ,internal_READ_QUEUE_OUT_DATA_RB );108 119 109 120 log_end(Read_queue,FUNCTION); -
trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_Execute_loop/Execute_loop/Multi_Read_unit/Read_unit/Read_queue/src/Read_queue_genMealy_read_queue_out_spr.cpp
r88 r123 25 25 log_function(Read_queue,FUNCTION,_name.c_str()); 26 26 27 if (PORT_READ(in_NRESET)) 28 { 27 29 internal_READ_QUEUE_OUT_DATA_RC_VAL = (// Previous value 28 30 _queue_head->_data_rc_val or … … 72 74 73 75 // Affectation out port 76 PORT_WRITE(out_READ_QUEUE_OUT_DATA_RC ,internal_READ_QUEUE_OUT_DATA_RC ); 77 } 78 else 79 { 80 internal_READ_QUEUE_OUT_DATA_RC_VAL = 0; 81 // internal_READ_QUEUE_OUT_DATA_RC 82 } 83 74 84 PORT_WRITE(out_READ_QUEUE_OUT_DATA_RC_VAL,internal_READ_QUEUE_OUT_DATA_RC_VAL); 75 PORT_WRITE(out_READ_QUEUE_OUT_DATA_RC ,internal_READ_QUEUE_OUT_DATA_RC );76 85 77 86 log_end(Read_queue,FUNCTION); -
trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_Execute_loop/Execute_loop/Multi_Read_unit/Read_unit/Read_queue/src/Read_queue_genMealy_read_queue_out_val.cpp
r88 r123 25 25 log_function(Read_queue,FUNCTION,_name.c_str()); 26 26 27 if (PORT_READ(in_NRESET)) 28 { 27 29 internal_READ_QUEUE_OUT_READ_RA_VAL = (// Previous value 28 30 _queue_head->_read_ra_val and … … 98 100 99 101 100 PORT_WRITE(out_READ_QUEUE_OUT_VAL, internal_READ_QUEUE_OUT_VAL);101 102 102 log_printf(TRACE,Read_queue,FUNCTION," * internal_READ_QUEUE_OUT_VAL : %d",internal_READ_QUEUE_OUT_VAL); 103 103 log_printf(TRACE,Read_queue,FUNCTION," * _queue->empty() : %d",_queue->empty()); … … 111 111 log_printf(TRACE,Read_queue,FUNCTION," * _queue_head->_read_rc_val : %d",_queue_head->_read_rc_val); 112 112 log_printf(TRACE,Read_queue,FUNCTION," * in_SPR_READ_ACK [0] : %d",PORT_READ(in_SPR_READ_ACK [0])); 113 } 114 else 115 { 116 internal_READ_QUEUE_OUT_VAL = 0; 117 } 118 119 PORT_WRITE(out_READ_QUEUE_OUT_VAL, internal_READ_QUEUE_OUT_VAL); 113 120 114 121 log_end(Read_queue,FUNCTION); -
trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_Execute_loop/Execute_loop/Multi_Read_unit/Read_unit/Read_queue/src/Read_queue_genMoore.cpp
r122 r123 25 25 log_function(Read_queue,FUNCTION,_name.c_str()); 26 26 27 if (PORT_READ(in_NRESET)) 28 { 27 29 bool not_full = _queue->size() < _param->_size_queue; 28 30 bool not_empty = not _queue->empty(); … … 84 86 PORT_WRITE (out_SPR_READ_OOO_ENGINE_ID [0], _queue_head->_ooo_engine_id); 85 87 PORT_WRITE (out_SPR_READ_NUM_REG [0], _queue_head->_num_reg_rc); 86 88 } 89 else 90 { 91 // Reset 92 93 PORT_WRITE (out_READ_QUEUE_IN_ACK , 0); 94 PORT_WRITE (out_GPR_READ_VAL [0], 0); 95 PORT_WRITE (out_GPR_READ_VAL [1], 0); 96 PORT_WRITE (out_SPR_READ_VAL [0], 0); 97 98 } 99 87 100 log_end(Read_queue,FUNCTION); 88 101 }; -
trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_Execute_loop/Execute_loop/Multi_Read_unit/Read_unit/Read_queue/src/Read_queue_transition.cpp
r122 r123 43 43 // Init, else error in registerfile 44 44 _queue_head->_ooo_engine_id = 0; 45 // not necessary 46 _queue_head->_read_ra_val = false; 47 _queue_head->_read_rb_val = false; 48 _queue_head->_read_rc_val = false; 49 50 _queue_head->_data_ra_val = false; 51 _queue_head->_data_rb_val = false; 52 _queue_head->_data_rc_val = false; 53 54 _queue_head->_num_reg_ra = 0; 55 _queue_head->_num_reg_rb = 0; 56 _queue_head->_num_reg_rc = 0; 45 57 } 46 58 else -
trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_Execute_loop/Execute_loop/Multi_Read_unit/Read_unit/Reservation_station/src/Reservation_station.cpp
r88 r123 39 39 log_printf(FUNC,Reservation_station,FUNCTION,"Begin"); 40 40 41 #if DEBUG_Reservation_station == true42 log_printf(INFO,Reservation_station,FUNCTION,_("<%s> Parameters"),_name.c_str());41 // #if DEBUG_Reservation_station == true 42 // log_printf(INFO,Reservation_station,FUNCTION,_("<%s> Parameters"),_name.c_str()); 43 43 44 std::cout << *param << std::endl;45 #endif44 // 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_Read_unit/Read_unit/Reservation_station/src/Reservation_station_genMoore.cpp
r122 r123 27 27 log_function(Reservation_station,FUNCTION,_name.c_str()); 28 28 29 if (PORT_READ(in_NRESET)) 30 { 29 31 // ~~~~~[ Interface "insert" ]~~~~~~~~~~~~~~~~~~~~~~~~ 30 32 … … 36 38 internal_INSERT_ACK = not _queue_control->full(); 37 39 #endif 38 PORT_WRITE(out_INSERT_ACK, internal_INSERT_ACK);39 40 40 41 // ~~~~~[ Interface "retire" ]~~~~~~~~~~~~~~~~~~~~~~~ … … 92 93 93 94 internal_RETIRE_VAL [i] = val; 94 PORT_WRITE(out_RETIRE_VAL [i], val);95 95 96 96 if (val) … … 128 128 } 129 129 } 130 } 131 else 132 { 133 // Reset 134 internal_INSERT_ACK = 0; 135 // internal_INSERT_SLOT 136 137 for (uint32_t i=0; i<_param->_nb_inst_retire; i++) 138 { 139 internal_RETIRE_VAL [i] = 0; 140 // internal_RETIRE_SLOT [i]; 141 } 142 } 143 144 // Write Output 145 PORT_WRITE(out_INSERT_ACK , internal_INSERT_ACK); 146 for (uint32_t i=0; i<_param->_nb_inst_retire; i++) 147 PORT_WRITE(out_RETIRE_VAL [i], internal_RETIRE_VAL [i]); 130 148 131 149 log_end(Reservation_station,FUNCTION); -
trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_Execute_loop/Execute_loop/Multi_Read_unit/Read_unit/src/Read_unit.cpp
r88 r123 38 38 log_printf(FUNC,Read_unit,FUNCTION,"Begin"); 39 39 40 #if DEBUG_Read_unit == true41 log_printf(INFO,Read_unit,FUNCTION,_("<%s> Parameters"),_name.c_str());40 // #if DEBUG_Read_unit == true 41 // log_printf(INFO,Read_unit,FUNCTION,_("<%s> Parameters"),_name.c_str()); 42 42 43 std::cout << *param << std::endl;44 #endif43 // std::cout << *param << std::endl; 44 // #endif 45 45 46 46 log_printf(INFO,Read_unit,FUNCTION,"Allocation"); -
trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_Execute_loop/Execute_loop/Multi_Write_unit/Write_unit/Execute_queue/src/Execute_queue_genMoore.cpp
r101 r123 26 26 log_function(Execute_queue,FUNCTION,_name.c_str()); 27 27 28 if (PORT_READ(in_NRESET)) 29 { 28 30 // -----[ Interface "execute_queue_in" ]-------------------------------- 29 31 { 30 32 internal_EXECUTE_QUEUE_IN_ACK = _queue->size() < _param->_size_queue; 31 32 PORT_WRITE(out_EXECUTE_QUEUE_IN_ACK, internal_EXECUTE_QUEUE_IN_ACK);33 33 } 34 34 35 35 // -----[ Interface "execute_queue_out" ]-------------------------------- 36 36 { 37 // TODO : make a genMealy version38 37 internal_EXECUTE_QUEUE_OUT_VAL = (not _queue->empty()); 39 38 40 PORT_WRITE(out_EXECUTE_QUEUE_OUT_VAL, internal_EXECUTE_QUEUE_OUT_VAL);41 42 39 if (internal_EXECUTE_QUEUE_OUT_VAL) 43 40 { … … 59 56 } 60 57 } 58 } 59 else 60 { 61 // Reset 62 internal_EXECUTE_QUEUE_IN_ACK = 0; 63 internal_EXECUTE_QUEUE_OUT_VAL = 0; 64 } 65 66 // Write output 67 PORT_WRITE(out_EXECUTE_QUEUE_IN_ACK , internal_EXECUTE_QUEUE_IN_ACK); 68 PORT_WRITE(out_EXECUTE_QUEUE_OUT_VAL, internal_EXECUTE_QUEUE_OUT_VAL); 61 69 62 70 log_end(Execute_queue,FUNCTION); -
trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_Execute_loop/Execute_loop/Multi_Write_unit/Write_unit/Write_queue/src/Write_queue_genMealy_bypass.cpp
r118 r123 26 26 log_function(Write_queue,FUNCTION,_name.c_str()); 27 27 28 if (PORT_READ(in_NRESET)) 29 { 28 30 Tcontrol_t val = PORT_READ(in_WRITE_QUEUE_IN_VAL); 29 31 … … 36 38 PORT_WRITE(out_BYPASS_WRITE_SPR_NUM_REG [0], PORT_READ(in_WRITE_QUEUE_IN_NUM_REG_RE )); // RE 37 39 PORT_WRITE(out_BYPASS_WRITE_SPR_DATA [0], PORT_READ(in_WRITE_QUEUE_IN_DATA_RE )); 38 39 // -----[ Interface "bypass_write" ]---------------------------------- 40 } 41 else 42 { 43 PORT_WRITE(out_BYPASS_WRITE_GPR_VAL [0], 0); 44 PORT_WRITE(out_BYPASS_WRITE_SPR_VAL [0], 0); 45 } 40 46 41 47 log_end(Write_queue,FUNCTION); -
trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_Execute_loop/Execute_loop/Multi_Write_unit/Write_unit/Write_queue/src/Write_queue_genMealy_write.cpp
r118 r123 26 26 log_function(Write_queue,FUNCTION,_name.c_str()); 27 27 28 if (PORT_READ(in_NRESET)) 29 { 28 30 // -----[ Interface "bypass_write" ]---------------------------------- 29 31 // in genMoore … … 91 93 } 92 94 } 95 } 96 else 97 { 98 internal_WRITE_QUEUE_OUT_VAL = 0; 99 } 100 101 PORT_WRITE(out_WRITE_QUEUE_OUT_VAL, internal_WRITE_QUEUE_OUT_VAL); 93 102 94 103 log_end(Write_queue,FUNCTION); -
trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_Execute_loop/Execute_loop/Multi_Write_unit/Write_unit/Write_queue/src/Write_queue_genMoore.cpp
r118 r123 26 26 log_function(Write_queue,FUNCTION,_name.c_str()); 27 27 28 if (PORT_READ(in_NRESET)) 29 { 28 30 // -----[ Interface "bypass_write" ]---------------------------------- 29 31 { … … 71 73 { 72 74 internal_WRITE_QUEUE_IN_ACK = _queue->size() < _param->_size_queue; 73 74 PORT_WRITE(out_WRITE_QUEUE_IN_ACK, internal_WRITE_QUEUE_IN_ACK);75 75 } 76 76 … … 85 85 internal_SPR_WRITE_VAL = val and _queue->front()->_write_re; 86 86 87 PORT_WRITE(out_GPR_WRITE_VAL [0], internal_GPR_WRITE_VAL);88 PORT_WRITE(out_SPR_WRITE_VAL [0], internal_SPR_WRITE_VAL);89 90 87 if (val) 91 88 { … … 110 107 ); 111 108 112 PORT_WRITE(out_WRITE_QUEUE_OUT_VAL, internal_WRITE_QUEUE_OUT_VAL);113 114 109 if (internal_WRITE_QUEUE_OUT_VAL) 115 110 { … … 133 128 134 129 } // end WRITE_QUEUE_SCHEME_MOORE 130 } 131 else 132 { 133 // Reset 134 internal_WRITE_QUEUE_IN_ACK = 0; 135 internal_WRITE_QUEUE_OUT_VAL = 0; 136 internal_GPR_WRITE_VAL = 0; 137 internal_SPR_WRITE_VAL = 0; 138 139 } 140 141 // Write output 142 PORT_WRITE(out_WRITE_QUEUE_IN_ACK , internal_WRITE_QUEUE_IN_ACK); 143 PORT_WRITE(out_WRITE_QUEUE_OUT_VAL, internal_WRITE_QUEUE_OUT_VAL); 144 145 PORT_WRITE(out_GPR_WRITE_VAL [0] , internal_GPR_WRITE_VAL); 146 PORT_WRITE(out_SPR_WRITE_VAL [0] , internal_SPR_WRITE_VAL); 147 135 148 log_end(Write_queue,FUNCTION); 136 149 }; -
trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_Execute_loop/Execute_loop/Network/Execution_unit_to_Write_unit/src/Execution_unit_to_Write_unit.cpp
r88 r123 38 38 log_printf(FUNC,Execution_unit_to_Write_unit,FUNCTION,"Begin"); 39 39 40 #if DEBUG_Execution_unit_to_Write_unit == true41 log_printf(INFO,Execution_unit_to_Write_unit,FUNCTION,_("<%s> Parameters"),_name.c_str());42 43 std::cout << *param << std::endl;44 #endif40 // #if DEBUG_Execution_unit_to_Write_unit == true 41 // log_printf(INFO,Execution_unit_to_Write_unit,FUNCTION,_("<%s> Parameters"),_name.c_str()); 42 43 // std::cout << *param << std::endl; 44 // #endif 45 45 46 46 log_printf(INFO,Execution_unit_to_Write_unit,FUNCTION,"Allocation"); -
trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_Execute_loop/Execute_loop/Network/Execution_unit_to_Write_unit/src/Execution_unit_to_Write_unit_genMealy.cpp
r97 r123 24 24 log_printf(FUNC,Execution_unit_to_Write_unit,FUNCTION,"Begin"); 25 25 26 if (PORT_READ(in_NRESET)) 27 { 26 28 bool write_unit_use [_param->_nb_write_unit]; 27 29 … … 96 98 PORT_WRITE(out_WRITE_UNIT_IN_VAL[i], write_unit_use[i]); 97 99 } 100 } 101 else 102 { 103 for (uint32_t i=0; i<_param->_nb_execute_unit; i++) 104 for (uint32_t j=0; j<_param->_nb_execute_unit_port[i]; j++) 105 PORT_WRITE(out_EXECUTE_UNIT_OUT_ACK [i][j], 0); 106 107 for (uint32_t i=0; i<_param->_nb_write_unit; i++) 108 PORT_WRITE(out_WRITE_UNIT_IN_VAL[i], 0); 109 } 98 110 99 111 log_printf(FUNC,Execution_unit_to_Write_unit,FUNCTION,"End"); -
trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_Execute_loop/Execute_loop/Network/Read_unit_to_Execution_unit/src/Read_unit_to_Execution_unit.cpp
r88 r123 38 38 log_printf(FUNC,Read_unit_to_Execution_unit,FUNCTION,"Begin"); 39 39 40 #if DEBUG_Read_unit_to_Execution_unit == true41 log_printf(INFO,Read_unit_to_Execution_unit,FUNCTION,_("<%s> Parameters"),_name.c_str());42 43 std::cout << *param << std::endl;44 #endif40 // #if DEBUG_Read_unit_to_Execution_unit == true 41 // log_printf(INFO,Read_unit_to_Execution_unit,FUNCTION,_("<%s> Parameters"),_name.c_str()); 42 43 // std::cout << *param << std::endl; 44 // #endif 45 45 46 46 log_printf(INFO,Read_unit_to_Execution_unit,FUNCTION,"Allocation"); -
trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_Execute_loop/Execute_loop/Network/Read_unit_to_Execution_unit/src/Read_unit_to_Execution_unit_genMealy.cpp
r122 r123 25 25 log_function(Read_unit_to_Execution_unit,FUNCTION,_name.c_str()); 26 26 27 if (PORT_READ(in_NRESET)) 28 { 27 29 bool execute_unit_use [_param->_nb_execute_unit][_param->_max_nb_execute_unit_port]; 28 30 … … 106 108 for (uint32_t j=0; j<_param->_nb_execute_unit_port[i]; j++) 107 109 PORT_WRITE(out_EXECUTE_UNIT_IN_VAL[i][j], execute_unit_use[i][j]); 110 } 111 else 112 { 108 113 114 for (uint32_t i=0; i<_param->_nb_read_unit; i++) 115 for (uint32_t j=0; j<_param->_nb_read_unit_port[i]; j++) 116 PORT_WRITE(out_READ_UNIT_OUT_ACK [i][j], 0); 117 118 for (uint32_t i=0; i<_param->_nb_execute_unit; i++) 119 for (uint32_t j=0; j<_param->_nb_execute_unit_port[i]; j++) 120 PORT_WRITE(out_EXECUTE_UNIT_IN_VAL[i][j], 0); 121 122 } 123 109 124 log_end(Read_unit_to_Execution_unit,FUNCTION); 110 125 }; -
trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_Execute_loop/Execute_loop/Register_unit/Register_unit_Glue/src/Register_unit_Glue.cpp
r88 r123 38 38 log_printf(FUNC,Register_unit_Glue,FUNCTION,"Begin"); 39 39 40 #if DEBUG_Register_unit_Glue == true41 log_printf(INFO,Register_unit_Glue,FUNCTION,_("<%s> Parameters"),_name.c_str());42 43 std::cout << *param << std::endl;44 #endif40 // #if DEBUG_Register_unit_Glue == true 41 // log_printf(INFO,Register_unit_Glue,FUNCTION,_("<%s> Parameters"),_name.c_str()); 42 43 // std::cout << *param << std::endl; 44 // #endif 45 45 46 46 log_printf(INFO,Register_unit_Glue,FUNCTION,"Allocation"); -
trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_Execute_loop/Execute_loop/Register_unit/Register_unit_Glue/src/Register_unit_Glue_genMealy_gpr_read.cpp
r88 r123 26 26 log_function(Register_unit_Glue,FUNCTION,_name.c_str()); 27 27 28 // if (not PORT_READ(in_NRESET)) 29 // { 30 // for (uint32_t j=0; j<_param->_nb_gpr_read; j++) 31 // PORT_WRITE(out_GPR_READ_ACK [j], 0); 32 // } 33 // else 28 if (PORT_READ(in_NRESET)) 34 29 { 35 30 for (uint32_t j=0; j<_param->_nb_gpr_read; j++) … … 44 39 PORT_WRITE(out_GPR_READ_DATA_VAL [j], PORT_READ(in_GPR_READ_STATUS_DATA_VAL [ooo_engine_id][j])); 45 40 } 41 } 42 else 43 { 44 for (uint32_t j=0; j<_param->_nb_gpr_read; j++) 45 PORT_WRITE(out_GPR_READ_ACK [j], 0); 46 46 } 47 47 -
trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_Execute_loop/Execute_loop/Register_unit/Register_unit_Glue/src/Register_unit_Glue_genMealy_gpr_read_registerfile.cpp
r88 r123 26 26 log_function(Register_unit_Glue,FUNCTION,_name.c_str()); 27 27 28 // if (not PORT_READ(in_NRESET)) 29 // { 30 // for (uint32_t j=0; j<_param->_nb_gpr_read; j++) 31 // for (uint32_t i=0; i<_param->_nb_ooo_engine; i++) 32 // PORT_WRITE(out_GPR_READ_REGISTERFILE_VAL [i][j],0); 33 // } 34 // else 28 if (PORT_READ(in_NRESET)) 35 29 { 36 30 for (uint32_t j=0; j<_param->_nb_gpr_read; j++) … … 49 43 } 50 44 } 45 else 46 { 47 for (uint32_t j=0; j<_param->_nb_gpr_read; j++) 48 for (uint32_t i=0; i<_param->_nb_ooo_engine; i++) 49 PORT_WRITE(out_GPR_READ_REGISTERFILE_VAL [i][j],0); 50 } 51 51 52 52 log_end(Register_unit_Glue,FUNCTION); -
trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_Execute_loop/Execute_loop/Register_unit/Register_unit_Glue/src/Register_unit_Glue_genMealy_gpr_read_status.cpp
r88 r123 26 26 log_function(Register_unit_Glue,FUNCTION,_name.c_str()); 27 27 28 // if (not PORT_READ(in_NRESET)) 29 // { 30 // for (uint32_t j=0; j<_param->_nb_gpr_read; j++) 31 // for (uint32_t i=0; i<_param->_nb_ooo_engine; i++) 32 // PORT_WRITE(out_GPR_READ_STATUS_VAL [i][j], 0); 33 // } 34 // else 28 if (PORT_READ(in_NRESET)) 35 29 { 36 30 for (uint32_t j=0; j<_param->_nb_gpr_read; j++) … … 49 43 } 50 44 } 45 else 46 { 47 for (uint32_t j=0; j<_param->_nb_gpr_read; j++) 48 for (uint32_t i=0; i<_param->_nb_ooo_engine; i++) 49 PORT_WRITE(out_GPR_READ_STATUS_VAL [i][j], 0); 50 } 51 51 52 52 log_end(Register_unit_Glue,FUNCTION); -
trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_Execute_loop/Execute_loop/Register_unit/Register_unit_Glue/src/Register_unit_Glue_genMealy_gpr_registerfile.cpp
r88 r123 26 26 log_function(Register_unit_Glue,FUNCTION,_name.c_str()); 27 27 28 // if (not PORT_READ(in_NRESET)) 29 // { 30 // for (uint32_t j=0; j<_param->_nb_gpr_write; j++) 31 // for (uint32_t i=0; i<_param->_nb_ooo_engine; i++) 32 // PORT_WRITE(out_GPR_WRITE_REGISTERFILE_VAL [i][j], 0); 33 // } 34 // else 28 if (PORT_READ(in_NRESET)) 35 29 { 36 30 for (uint32_t j=0; j<_param->_nb_gpr_write; j++) … … 48 42 } 49 43 } 44 else 45 { 46 for (uint32_t j=0; j<_param->_nb_gpr_write; j++) 47 for (uint32_t i=0; i<_param->_nb_ooo_engine; i++) 48 PORT_WRITE(out_GPR_WRITE_REGISTERFILE_VAL [i][j], 0); 49 } 50 50 51 51 log_end(Register_unit_Glue,FUNCTION); -
trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_Execute_loop/Execute_loop/Register_unit/Register_unit_Glue/src/Register_unit_Glue_genMealy_gpr_write.cpp
r88 r123 25 25 log_begin(Register_unit_Glue,FUNCTION); 26 26 log_function(Register_unit_Glue,FUNCTION,_name.c_str()); 27 // if (not PORT_READ(in_NRESET)) 28 // { 29 // for (uint32_t j=0; j<_param->_nb_gpr_write; j++) 30 // for (uint32_t i=0; i<_param->_nb_ooo_engine; i++) 31 // PORT_WRITE(out_GPR_WRITE_ACK [j], 0); 32 // } 33 // else 27 28 29 if (PORT_READ(in_NRESET)) 34 30 { 35 31 for (uint32_t j=0; j<_param->_nb_gpr_write; j++) … … 42 38 PORT_WRITE(out_GPR_WRITE_ACK [j],registerfile_ack and status_ack); 43 39 } 40 } 41 else 42 { 43 for (uint32_t j=0; j<_param->_nb_gpr_write; j++) 44 for (uint32_t i=0; i<_param->_nb_ooo_engine; i++) 45 PORT_WRITE(out_GPR_WRITE_ACK [j], 0); 44 46 } 45 47 -
trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_Execute_loop/Execute_loop/Register_unit/Register_unit_Glue/src/Register_unit_Glue_genMealy_gpr_write_status.cpp
r88 r123 26 26 log_function(Register_unit_Glue,FUNCTION,_name.c_str()); 27 27 28 // if (not PORT_READ(in_NRESET)) 29 // { 30 // for (uint32_t j=0; j<_param->_nb_gpr_write; j++) 31 // for (uint32_t i=0; i<_param->_nb_ooo_engine; i++) 32 // PORT_WRITE(out_GPR_WRITE_STATUS_VAL [i][j], 0); 33 // } 34 // else 28 if (PORT_READ(in_NRESET)) 35 29 { 36 30 for (uint32_t j=0; j<_param->_nb_gpr_write; j++) … … 48 42 } 49 43 } 44 else 45 { 46 for (uint32_t j=0; j<_param->_nb_gpr_write; j++) 47 for (uint32_t i=0; i<_param->_nb_ooo_engine; i++) 48 PORT_WRITE(out_GPR_WRITE_STATUS_VAL [i][j], 0); 49 } 50 50 51 51 52 log_end(Register_unit_Glue,FUNCTION); -
trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_Execute_loop/Execute_loop/Register_unit/Register_unit_Glue/src/Register_unit_Glue_genMealy_insert.cpp
r88 r123 26 26 log_function(Register_unit_Glue,FUNCTION,_name.c_str()); 27 27 28 if (PORT_READ(in_NRESET)) 29 { 28 30 for (uint32_t i=0; i<_param->_nb_ooo_engine; i++) 29 31 for (uint32_t j=0; j<_param->_nb_inst_insert_rob [i]; j++) … … 59 61 60 62 } 63 } 64 else 65 { 66 for (uint32_t i=0; i<_param->_nb_ooo_engine; i++) 67 for (uint32_t j=0; j<_param->_nb_inst_insert_rob [i]; j++) 68 { 69 PORT_WRITE(out_INSERT_ROB_ACK [i][j], 0); 70 PORT_WRITE(out_INSERT_ROB_GPR_STATUS_VAL [i][j], 0); 71 PORT_WRITE(out_INSERT_ROB_SPR_STATUS_VAL [i][j], 0); 72 } 73 } 61 74 62 75 log_end(Register_unit_Glue,FUNCTION); -
trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_Execute_loop/Execute_loop/Register_unit/Register_unit_Glue/src/Register_unit_Glue_genMealy_retire.cpp
r88 r123 27 27 log_function(Register_unit_Glue,FUNCTION,_name.c_str()); 28 28 29 if (PORT_READ(in_NRESET)) 30 { 29 31 for (uint32_t i=0; i<_param->_nb_ooo_engine; i++) 30 32 { … … 58 60 } 59 61 } 60 62 } 61 63 log_end(Register_unit_Glue,FUNCTION); 62 64 }; -
trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_Execute_loop/Execute_loop/Register_unit/Register_unit_Glue/src/Register_unit_Glue_genMealy_spr_read.cpp
r88 r123 26 26 log_function(Register_unit_Glue,FUNCTION,_name.c_str()); 27 27 28 // if (not PORT_READ(in_NRESET)) 29 // { 30 // for (uint32_t j=0; j<_param->_nb_spr_read; j++) 31 // PORT_WRITE(out_SPR_READ_ACK [j], 0); 32 // } 33 // else 28 if (PORT_READ(in_NRESET)) 34 29 { 35 30 for (uint32_t j=0; j<_param->_nb_spr_read; j++) … … 44 39 PORT_WRITE(out_SPR_READ_DATA_VAL [j], PORT_READ(in_SPR_READ_STATUS_DATA_VAL [ooo_engine_id][j])); 45 40 } 41 } 42 else 43 { 44 for (uint32_t j=0; j<_param->_nb_spr_read; j++) 45 PORT_WRITE(out_SPR_READ_ACK [j], 0); 46 46 } 47 47 -
trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_Execute_loop/Execute_loop/Register_unit/Register_unit_Glue/src/Register_unit_Glue_genMealy_spr_read_registerfile.cpp
r88 r123 26 26 log_function(Register_unit_Glue,FUNCTION,_name.c_str()); 27 27 28 // if (not PORT_READ(in_NRESET)) 29 // { 30 // for (uint32_t j=0; j<_param->_nb_spr_read; j++) 31 // for (uint32_t i=0; i<_param->_nb_ooo_engine; i++) 32 // PORT_WRITE(out_SPR_READ_REGISTERFILE_VAL [i][j],0); 33 // } 34 // else 28 if (PORT_READ(in_NRESET)) 35 29 { 36 30 for (uint32_t j=0; j<_param->_nb_spr_read; j++) … … 48 42 } 49 43 } 44 else 45 { 46 for (uint32_t j=0; j<_param->_nb_spr_read; j++) 47 for (uint32_t i=0; i<_param->_nb_ooo_engine; i++) 48 PORT_WRITE(out_SPR_READ_REGISTERFILE_VAL [i][j],0); 49 } 50 50 51 51 log_end(Register_unit_Glue,FUNCTION); -
trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_Execute_loop/Execute_loop/Register_unit/Register_unit_Glue/src/Register_unit_Glue_genMealy_spr_read_status.cpp
r88 r123 26 26 log_function(Register_unit_Glue,FUNCTION,_name.c_str()); 27 27 28 // if (not PORT_READ(in_NRESET)) 29 // { 30 // for (uint32_t j=0; j<_param->_nb_spr_read; j++) 31 // for (uint32_t i=0; i<_param->_nb_ooo_engine; i++) 32 // PORT_WRITE(out_SPR_READ_STATUS_VAL [i][j], 0); 33 // } 34 // else 28 if (PORT_READ(in_NRESET)) 35 29 { 36 30 for (uint32_t j=0; j<_param->_nb_spr_read; j++) … … 48 42 } 49 43 } 44 else 45 { 46 for (uint32_t j=0; j<_param->_nb_spr_read; j++) 47 for (uint32_t i=0; i<_param->_nb_ooo_engine; i++) 48 PORT_WRITE(out_SPR_READ_STATUS_VAL [i][j], 0); 49 } 50 50 51 51 log_end(Register_unit_Glue,FUNCTION); -
trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_Execute_loop/Execute_loop/Register_unit/Register_unit_Glue/src/Register_unit_Glue_genMealy_spr_registerfile.cpp
r88 r123 26 26 log_function(Register_unit_Glue,FUNCTION,_name.c_str()); 27 27 28 // if (not PORT_READ(in_NRESET)) 29 // { 30 // for (uint32_t j=0; j<_param->_nb_spr_write; j++) 31 // for (uint32_t i=0; i<_param->_nb_ooo_engine; i++) 32 // PORT_WRITE(out_SPR_WRITE_REGISTERFILE_VAL [i][j], 0); 33 // } 34 // else 28 if (PORT_READ(in_NRESET)) 35 29 { 36 30 for (uint32_t j=0; j<_param->_nb_spr_write; j++) … … 48 42 } 49 43 } 44 else 45 { 46 for (uint32_t j=0; j<_param->_nb_spr_write; j++) 47 for (uint32_t i=0; i<_param->_nb_ooo_engine; i++) 48 PORT_WRITE(out_SPR_WRITE_REGISTERFILE_VAL [i][j], 0); 49 } 50 50 51 51 log_end(Register_unit_Glue,FUNCTION); -
trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_Execute_loop/Execute_loop/Register_unit/Register_unit_Glue/src/Register_unit_Glue_genMealy_spr_write.cpp
r88 r123 26 26 log_function(Register_unit_Glue,FUNCTION,_name.c_str()); 27 27 28 // if (not PORT_READ(in_NRESET)) 29 // { 30 // for (uint32_t j=0; j<_param->_nb_spr_write; j++) 31 // for (uint32_t i=0; i<_param->_nb_ooo_engine; i++) 32 // PORT_WRITE(out_SPR_WRITE_ACK [j], 0); 33 // } 34 // else 28 if (PORT_READ(in_NRESET)) 35 29 { 36 30 for (uint32_t j=0; j<_param->_nb_spr_write; j++) … … 43 37 PORT_WRITE(out_SPR_WRITE_ACK [j],registerfile_ack and status_ack); 44 38 } 39 } 40 else 41 { 42 for (uint32_t j=0; j<_param->_nb_spr_write; j++) 43 for (uint32_t i=0; i<_param->_nb_ooo_engine; i++) 44 PORT_WRITE(out_SPR_WRITE_ACK [j], 0); 45 45 } 46 46 -
trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_Execute_loop/Execute_loop/Register_unit/Register_unit_Glue/src/Register_unit_Glue_genMealy_spr_write_status.cpp
r88 r123 26 26 log_function(Register_unit_Glue,FUNCTION,_name.c_str()); 27 27 28 // if (not PORT_READ(in_NRESET)) 29 // { 30 // for (uint32_t j=0; j<_param->_nb_spr_write; j++) 31 // for (uint32_t i=0; i<_param->_nb_ooo_engine; i++) 32 // PORT_WRITE(out_SPR_WRITE_STATUS_VAL [i][j], 0); 33 // } 34 // else 28 if (PORT_READ(in_NRESET)) 35 29 { 36 30 for (uint32_t j=0; j<_param->_nb_spr_write; j++) … … 48 42 } 49 43 } 44 else 45 { 46 for (uint32_t j=0; j<_param->_nb_spr_write; j++) 47 for (uint32_t i=0; i<_param->_nb_ooo_engine; i++) 48 PORT_WRITE(out_SPR_WRITE_STATUS_VAL [i][j], 0); 49 } 50 50 51 51 log_end(Register_unit_Glue,FUNCTION); -
trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_Execute_loop/Execute_loop/Register_unit/src/Register_unit.cpp
r88 r123 37 37 log_printf(FUNC,Register_unit,FUNCTION,"Begin"); 38 38 39 #if DEBUG_Register_unit == true40 log_printf(INFO,Register_unit,FUNCTION,_("<%s> Parameters"),_name.c_str());39 // #if DEBUG_Register_unit == true 40 // log_printf(INFO,Register_unit,FUNCTION,_("<%s> Parameters"),_name.c_str()); 41 41 42 std::cout << *param << std::endl;43 #endif42 // std::cout << *param << std::endl; 43 // #endif 44 44 45 45 log_printf(INFO,Register_unit,FUNCTION,"Allocation"); -
trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_Execute_loop/Execute_loop/src/Execute_loop.cpp
r88 r123 36 36 log_printf(FUNC,Execute_loop,FUNCTION,"Begin"); 37 37 38 #if DEBUG_Execute_loop == true39 log_printf(INFO,Execute_loop,FUNCTION,_("<%s> Parameters"),_name.c_str());38 // #if DEBUG_Execute_loop == true 39 // log_printf(INFO,Execute_loop,FUNCTION,_("<%s> Parameters"),_name.c_str()); 40 40 41 std::cout << *param << std::endl;42 #endif41 // std::cout << *param << std::endl; 42 // #endif 43 43 44 44 log_printf(INFO,Execute_loop,FUNCTION,"Allocation"); -
trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_Execute_loop/Execute_loop/src/Parameters_msg_error.cpp
r88 r123 9 9 #include "Behavioural/Core/Multi_Execute_loop/Execute_loop/include/Parameters.h" 10 10 #include <sstream> 11 #include <set> 11 12 12 13 namespace morpheo { … … 29 30 test.error(toString(_("Functionnal_unit [%d] must treat once instruction.\n"),i)); 30 31 32 std::set<uint32_t> link_load_store_unit_and_write_unit [_nb_load_store_unit]; 33 for (uint32_t i=0; i<_nb_load_store_unit; ++i) 34 link_load_store_unit_and_write_unit[i].clear(); 35 36 for (uint32_t i=0; i<_nb_execute_unit; i++) 37 if (_is_load_store_unit [i]) 38 { 39 uint32_t lsq = _translate_num_execute_unit[i]; 40 41 for (uint32_t j=0; j<_nb_execute_unit_port[i]; j++) 42 for (uint32_t k=0; k<_nb_write_unit; k++) 43 if (_execution_unit_to_write_unit_table_routing [i][j][k]) 44 { 45 if (link_load_store_unit_and_write_unit[lsq].find(k) != link_load_store_unit_and_write_unit[lsq].end()) 46 { 47 if (link_load_store_unit_and_write_unit[lsq].size() != 0) 48 test.error(toString(_("Can't connect Load Store Unit [%d] (port %d) with Write unit [%d], because it's already connected with Write unit [%d]"),lsq,j,k,*(link_load_store_unit_and_write_unit[lsq].begin()))); 49 50 link_load_store_unit_and_write_unit[lsq].insert(link_load_store_unit_and_write_unit[lsq].end(),k); 51 } 52 } 53 } 31 54 log_printf(FUNC,Execute_loop,FUNCTION,"End"); 32 55
Note: See TracChangeset
for help on using the changeset viewer.