Ignore:
Timestamp:
Dec 10, 2008, 7:31:39 PM (15 years ago)
Author:
rosiere
Message:

Almost complete design
with Test and test platform

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_Front_end/Front_end/Decod_unit/Decod/src/Decod.cpp

    r81 r88  
    3838    log_printf(FUNC,Decod,FUNCTION,"Begin");
    3939
     40#if DEBUG_Decod == true
     41    log_printf(INFO,Decod,FUNCTION,_("<%s> Parameters"),_name.c_str());
     42
     43    std::cout << *param << std::endl;
     44#endif   
     45
    4046    log_printf(INFO,Decod,FUNCTION,"Allocation");
    4147
     
    4753
    4854#ifdef STATISTICS
    49     if (_usage & USE_STATISTICS)
     55    if (usage_is_set(_usage,USE_STATISTICS))
    5056      {
    5157        log_printf(INFO,Decod,FUNCTION,"Allocation of statistics");
     
    5662
    5763#ifdef VHDL
    58     if (_usage & USE_VHDL)
     64    if (usage_is_set(_usage,USE_VHDL))
    5965      {
    6066        // generate the vhdl
     
    6672
    6773#ifdef SYSTEMC
    68     if (_usage & USE_SYSTEMC)
     74    if (usage_is_set(_usage,USE_SYSTEMC))
    6975      {
    7076        log_printf(INFO,Decod,FUNCTION,"Method - transition");
     
    95101            if (_param->_have_port_context_id)
    96102            sensitive << (*(in_IFETCH_CONTEXT_ID                  [i]));
    97             if (_param->_have_port_branch_update_prediction_id)
     103            if (_param->_have_port_depth)
    98104            sensitive << (*(in_IFETCH_BRANCH_UPDATE_PREDICTION_ID [i]));
    99105            if (_param->_have_port_depth)
     
    110116
    111117# ifdef SYSTEMCASS_SPECIFIC
     118        /*
    112119        // List dependency information
    113120
     
    162169              }
    163170
    164             if (_param->_have_port_depth)
    165               {
    166             for (uint32_t x=0; x<_param->_nb_context; x++)
    167               {
     171            for (uint32_t x=0; x<_param->_nb_context; x++)
     172              {
     173            if (_param->_have_port_depth[i])
     174              {
     175
    168176                (*(out_DECOD_DEPTH [i])) (*(in_CONTEXT_DECOD_ENABLE [x]));
    169177                (*(out_DECOD_DEPTH [i])) (*(in_CONTEXT_DEPTH        [x]));
     
    402410                if (_param->_have_port_context_id)
    403411                (*(out_PREDICT_MATCH_INST_IFETCH_PTR [i])) (*(in_IFETCH_CONTEXT_ID      [x]));
    404                 if (_param->_have_port_inst_ifetch_ptr)
     412                if (_param->_have_port_inst_ifetch_ptr[i])
    405413                (*(out_PREDICT_MATCH_INST_IFETCH_PTR [i])) (*(in_IFETCH_INST_IFETCH_PTR [x]));
    406414                for (uint32_t y=0; y<_param->_nb_inst_fetch [x]; y++)
     
    601609              }
    602610          }
    603        
     611        */
    604612# endif   
    605613       
     
    617625
    618626#ifdef STATISTICS
    619     if (_usage & USE_STATISTICS)
     627    if (usage_is_set(_usage,USE_STATISTICS))
    620628      {
    621629        statistics_deallocation();
Note: See TracChangeset for help on using the changeset viewer.