Ignore:
Timestamp:
Dec 10, 2008, 7:31:39 PM (16 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_Execute_loop/Execute_loop/Register_unit/src/Register_unit.cpp

    r81 r88  
    3737    log_printf(FUNC,Register_unit,FUNCTION,"Begin");
    3838
     39#if DEBUG_Register_unit == true
     40    log_printf(INFO,Register_unit,FUNCTION,_("<%s> Parameters"),_name.c_str());
     41
     42    std::cout << *param << std::endl;
     43#endif   
     44
    3945    log_printf(INFO,Register_unit,FUNCTION,"Allocation");
    4046    allocation (
     
    4551
    4652#ifdef STATISTICS
    47     log_printf(INFO,Register_unit,FUNCTION,"Allocation of statistics");
     53    if (usage_is_set(_usage,USE_STATISTICS))
     54      {
     55        log_printf(INFO,Register_unit,FUNCTION,_("<%s> : Allocation of statistics"),_name.c_str());
    4856
    49     // Allocation of statistics
    50     statistics_declaration(param_statistics);
     57        statistics_declaration(param_statistics);
     58      }
    5159#endif
    5260
    5361#ifdef VHDL
    54     // generate the vhdl
    55     log_printf(INFO,Register_unit,FUNCTION,"Generate the vhdl");
    56 
    57     vhdl();
     62    if (usage_is_set(_usage,USE_VHDL))
     63      {
     64        // generate the vhdl
     65        log_printf(INFO,Register_unit,FUNCTION,"Generate the vhdl");
     66       
     67        vhdl();
     68      }
    5869#endif
    5970
    6071#ifdef SYSTEMC
     72    if (usage_is_set(_usage,USE_SYSTEMC))
     73      {
    6174//#if defined(STATISTICS) or defined(VHDL_TESTBENCH)
    6275    log_printf(INFO,Register_unit,FUNCTION,"Method - transition");
     
    7083    // List dependency information
    7184#endif   
    72 
     85      }
    7386#endif
    7487    log_printf(FUNC,Register_unit,FUNCTION,"End");
     
    8295
    8396#ifdef STATISTICS
    84     log_printf(INFO,Register_unit,FUNCTION,"Generate Statistics file");
    85     delete _stat;
     97    if (usage_is_set(_usage,USE_STATISTICS))
     98      {
     99        log_printf(INFO,Register_unit,FUNCTION,"Generate Statistics file");
     100        delete _stat;
     101      }
    86102#endif
    87103
Note: See TracChangeset for help on using the changeset viewer.