Changeset 86 for trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_Front_end/Front_end/Decod_unit/Decod/src/Decod_genMealy.cpp
- Timestamp:
- May 14, 2008, 7:08:56 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_Front_end/Front_end/Decod_unit/Decod/src/Decod_genMealy.cpp
r81 r86 27 27 // Initialization 28 28 //----------------------------------- 29 Tcontrol_t context_event_val ;29 Tcontrol_t context_event_val = false; 30 30 Tcontrol_t ifetch_ack [_param->_nb_context][_param->_max_nb_inst_fetch]; 31 31 for (uint32_t i=0; i<_param->_nb_context; i++) … … 79 79 ifetch_ack [x][y] = PORT_READ(in_DECOD_ACK [i]); // fetch_val and decod_enable and decod_ack 80 80 81 Tgeneral_data_t addr = PORT_READ(in_IFETCH_ADDRESS [x])+ 4*y;81 Tgeneral_data_t addr = PORT_READ(in_IFETCH_ADDRESS [x])+y; 82 82 83 83 _decod_instruction->_instruction = PORT_READ(in_IFETCH_INSTRUCTION [x][y]); … … 85 85 _decod_instruction->_address_previous = internal_CONTEXT_ADDRESS_PREVIOUS [x]; 86 86 _decod_instruction->_address = addr; //Compute the current address 87 _decod_instruction->_address_next = addr+ 4;87 _decod_instruction->_address_next = addr+1; 88 88 _decod_instruction->_is_delay_slot = internal_CONTEXT_IS_DELAY_SLOT [x]; 89 89 … … 94 94 log_printf(TRACE,Decod,FUNCTION," * address : %.8x",addr); 95 95 log_printf(TRACE,Decod,FUNCTION," * is_delay_slot : %d",internal_CONTEXT_IS_DELAY_SLOT [x]); 96 96 97 instruction_decod (_decod_instruction, _decod_param[x]); 97 98
Note: See TracChangeset
for help on using the changeset viewer.