Changeset 88 for 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
- Timestamp:
- Dec 10, 2008, 7:31:39 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
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
r81 r88 23 23 void Register_unit_Glue::genMealy_spr_write_status (void) 24 24 { 25 log_printf(FUNC,Register_unit_Glue,FUNCTION,"Begin"); 25 log_begin(Register_unit_Glue,FUNCTION); 26 log_function(Register_unit_Glue,FUNCTION,_name.c_str()); 26 27 27 for (uint32_t j=0; j<_param->_nb_spr_write; j++) 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 35 { 29 Tcontext_t ooo_engine_id = (_param->_have_port_ooo_engine_id == true)?PORT_READ(in_SPR_WRITE_OOO_ENGINE_ID[j]):0; 30 Tcontrol_t val = PORT_READ(in_SPR_WRITE_VAL [j]); 31 Tcontrol_t registerfile_ack = PORT_READ(in_SPR_WRITE_REGISTERFILE_ACK [ooo_engine_id][j]); 32 Tcontrol_t status_val = val and registerfile_ack; 33 34 for (uint32_t i=0; i<_param->_nb_ooo_engine; i++) 36 for (uint32_t j=0; j<_param->_nb_spr_write; j++) 35 37 { 36 Tcontrol_t id = (i == ooo_engine_id)?1:0; 37 PORT_WRITE(out_SPR_WRITE_STATUS_VAL [i][j], (id and status_val)); 38 Tcontext_t ooo_engine_id = (_param->_have_port_ooo_engine_id == true)?PORT_READ(in_SPR_WRITE_OOO_ENGINE_ID[j]):0; 39 Tcontrol_t val = PORT_READ(in_SPR_WRITE_VAL [j]); 40 Tcontrol_t registerfile_ack = PORT_READ(in_SPR_WRITE_REGISTERFILE_ACK [ooo_engine_id][j]); 41 Tcontrol_t status_val = val and registerfile_ack; 42 43 for (uint32_t i=0; i<_param->_nb_ooo_engine; i++) 44 { 45 Tcontrol_t id = (i == ooo_engine_id)?1:0; 46 PORT_WRITE(out_SPR_WRITE_STATUS_VAL [i][j], (id and status_val)); 47 } 38 48 } 39 49 } 40 50 41 log_ printf(FUNC,Register_unit_Glue,FUNCTION,"End");51 log_end(Register_unit_Glue,FUNCTION); 42 52 }; 43 53
Note: See TracChangeset
for help on using the changeset viewer.