Ignore:
Timestamp:
Dec 8, 2007, 5:12:36 PM (17 years ago)
Author:
rosiere
Message:

read_queue : systemC et vhdl ok !
queue : quelques petits modif pour avoir une queue de taille 1
nettoyage des fichiers *mkf*

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/IPs/systemC/processor/Morpheo/Behavioural/New_Component/src/New_Component.cpp

    r66 r68  
    22 * $Id$
    33 *
    4  * [ Description ]
     4 * [ Description ]
    55 *
    66 */
     
    4040
    4141#ifdef STATISTICS
    42     log_printf(INFO,@COMPONENT,FUNCTION,"Allocation of statistics");
    43 
    44     // Allocation of statistics
    45     _stat = new Statistics (static_cast<string>(_name),
    46                             param_statistics          ,
    47                             param);
     42    if (_usage & USE_STATISTICS)
     43      {
     44        log_printf(INFO,@COMPONENT,FUNCTION,"Allocation of statistics");
     45       
     46        // Allocation of statistics
     47        _stat = new Statistics (static_cast<string>(_name),
     48                                param_statistics          ,
     49                                param);
     50      }
    4851#endif
    4952
    5053#ifdef VHDL
    51     // generate the vhdl
    52     log_printf(INFO,@COMPONENT,FUNCTION,"Generate the vhdl");
    53 
    54     vhdl();
     54    if (_usage & USE_VHDL)
     55      {
     56        // generate the vhdl
     57        log_printf(INFO,@COMPONENT,FUNCTION,"Generate the vhdl");
     58       
     59        vhdl();
     60      }
    5561#endif
    5662
    5763#ifdef SYSTEMC
    58 //#if defined(STATISTICS) or defined(VHDL_TESTBENCH)
    59     log_printf(INFO,@COMPONENT,FUNCTION,"Method - transition");
     64    if (_usage & USE_SYSTEMC)
     65      {
     66        log_printf(INFO,@COMPONENT,FUNCTION,"Method - transition");
    6067
    61     SC_METHOD (transition);
    62     dont_initialize ();
    63     sensitive << (*(in_CLOCK)).pos();
    64 //#endif
    65 
    66 #ifdef SYSTEMCASS_SPECIFIC
    67     // List dependency information
    68 #endif   
    69 
     68        SC_METHOD (transition);
     69        dont_initialize ();
     70        sensitive << (*(in_CLOCK)).pos();
     71       
     72# ifdef SYSTEMCASS_SPECIFIC
     73        // List dependency information
     74# endif   
     75       
    7076#endif
     77      }
    7178    log_printf(FUNC,@COMPONENT,FUNCTION,"End");
    7279  };
    73  
     80   
    7481#undef  FUNCTION
    7582#define FUNCTION "@COMPONENT::~@COMPONENT"
     
    7986
    8087#ifdef STATISTICS
    81     log_printf(INFO,@COMPONENT,FUNCTION,"Generate Statistics file");
    82 
    83     _stat->generate_file(statistics(0));
    84     delete _stat;
     88    if (_usage & USE_STATISTICS)
     89      {
     90        log_printf(INFO,@COMPONENT,FUNCTION,"Generate Statistics file");
     91       
     92        _stat->generate_file(statistics(0));
     93        delete _stat;
     94      }
    8595#endif
    8696
Note: See TracChangeset for help on using the changeset viewer.