Ignore:
Timestamp:
May 14, 2008, 7:08:56 PM (16 years ago)
Author:
rosiere
Message:

Decod :

  • Correct selftest
  • Set Instruction address on (32/64)-2 bits,
  • Decod Custom Instruction : valid and tested. (add an test to verify the decod information)
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  
    2727    // Initialization
    2828    //-----------------------------------
    29     Tcontrol_t context_event_val;
     29    Tcontrol_t context_event_val = false;
    3030    Tcontrol_t ifetch_ack [_param->_nb_context][_param->_max_nb_inst_fetch];
    3131    for (uint32_t i=0; i<_param->_nb_context; i++)
     
    7979                ifetch_ack [x][y] = PORT_READ(in_DECOD_ACK [i]); // fetch_val and decod_enable and decod_ack
    8080
    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;
    8282
    8383                _decod_instruction->_instruction      = PORT_READ(in_IFETCH_INSTRUCTION [x][y]);
     
    8585                _decod_instruction->_address_previous = internal_CONTEXT_ADDRESS_PREVIOUS [x];
    8686                _decod_instruction->_address          = addr; //Compute the current address
    87                 _decod_instruction->_address_next     = addr+4;
     87                _decod_instruction->_address_next     = addr+1;
    8888                _decod_instruction->_is_delay_slot    = internal_CONTEXT_IS_DELAY_SLOT [x];
    8989
     
    9494                log_printf(TRACE,Decod,FUNCTION,"  * address       : %.8x",addr);
    9595                log_printf(TRACE,Decod,FUNCTION,"  * is_delay_slot : %d",internal_CONTEXT_IS_DELAY_SLOT [x]);
     96
    9697                instruction_decod (_decod_instruction, _decod_param[x]);
    9798
Note: See TracChangeset for help on using the changeset viewer.