Changeset 129 for trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_OOO_Engine/OOO_Engine/Commit_unit/src
- Timestamp:
- Jun 29, 2009, 6:38:40 PM (15 years ago)
- Location:
- trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_OOO_Engine/OOO_Engine/Commit_unit/src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_OOO_Engine/OOO_Engine/Commit_unit/src/Commit_unit_genMealy_commit.cpp
r123 r129 45 45 for (uint32_t i=0; i<_param->_nb_inst_commit; i++) 46 46 { 47 commit_ack 47 commit_ack [i] = false; 48 48 49 49 // Test if have valid instruction … … 51 51 { 52 52 // packet_id number can 53 Tpacket_t packet_id = (_param->_have_port_rob_ptr 53 Tpacket_t packet_id = (_param->_have_port_rob_ptr)?PORT_READ(in_COMMIT_PACKET_ID [i]):0; 54 54 uint32_t num_bank = packet_id & _param->_mask_num_bank; 55 55 uint32_t num_bank_access = bank_nb_access [num_bank]; … … 59 59 { 60 60 // find 61 bank_nb_access 62 commit_ack 61 bank_nb_access [num_bank] ++; 62 commit_ack [i] = true; 63 63 64 64 internal_BANK_COMMIT_VAL [num_bank][num_bank_access] = true; -
trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_OOO_Engine/OOO_Engine/Commit_unit/src/Commit_unit_genMoore.cpp
r124 r129 30 30 // =================================================================== 31 31 { 32 uint32_t n b_scan_bank = 0; // last scan bank32 uint32_t num_scan_bank = 0; // last scan bank 33 33 bool can_continue = true; 34 34 … … 48 48 Tcontrol_t val = false; 49 49 50 for (uint32_t j=n b_scan_bank; j<_param->_nb_bank; j++)50 for (uint32_t j=num_scan_bank; j<_param->_nb_bank; j++) 51 51 { 52 n b_scan_bank ++;52 num_scan_bank ++; 53 53 54 54 // translate bank number … … 82 82 ); 83 83 84 event_nb_inst [front_end_id][context_id] ++; 85 84 86 can_continue &= (((state == ROB_STORE_OK ) or 85 87 (state == ROB_STORE_OK_WAIT_END ) or … … 90 92 (reg_EVENT_PACKET[front_end_id][context_id] == num_packet)) and 91 93 not ((reg_EVENT_NB_INST [front_end_id][context_id] > 0) and 92 (( ++event_nb_inst [front_end_id][context_id]) >= reg_EVENT_NB_INST [front_end_id][context_id]))94 ((event_nb_inst [front_end_id][context_id]) >= reg_EVENT_NB_INST [front_end_id][context_id])) 93 95 ); 94 96 … … 129 131 // Branchement must be send at the prediction unit 130 132 131 uint32_t n b_scan_bank = 0; // last scan bank133 uint32_t num_scan_bank = 0; // last scan bank 132 134 133 135 // for each port, find a valid branchement. … … 138 140 Tcontrol_t val = false; 139 141 140 for (uint32_t j=n b_scan_bank; j<_param->_nb_bank; j++)142 for (uint32_t j=num_scan_bank; j<_param->_nb_bank; j++) 141 143 { 142 n b_scan_bank ++;144 num_scan_bank ++; 143 145 144 146 // translate bank number
Note: See TracChangeset
for help on using the changeset viewer.